DUMB SHIT MISCHIEF AND MALFEASANCE EDITION – Telegram
DUMB SHIT MISCHIEF AND MALFEASANCE EDITION
106 subscribers
2.61K photos
2.13K videos
16 files
140 links
Download Telegram
Couldn't even type for 5 minutes
DUBM SHIT'S MUSIC - RECOMPRESSED.zip
219.7 MB
Recompressed a bunch of the music I've sent here in the past. Enjoy
🎉2
DUMB SHIT MISCHIEF AND MALFEASANCE EDITION
Raspberry pi looking mighty smashable rn
Bash noscript I threw together to make my life (maybe yours too) slightly easier but not really. It configures a raspberry pi image into something slightly more useful
#!/usr/bin/env -S bash

runsdm() {
if [[ "$(whoami)" != "root" ]]; then
location="$(readlink -en ${BASH_SOURCE[0]})"
sudo -u root /usr/bin/env -S bash "$location" "$1"
return $?
fi

# Get the absolute path to where the noscript resides
pathtodir="$(dirname -- "$( readlink -en -- "$0")")"

# Check to make sure necessary files are present in the working dir
if [[ ! -f "$pathtodir/deb.torproject.org-keyring.gpg" ]]; then
echo -ne "> Missing torproject signing key, downloading...\n"
wget -qO- "https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc" | gpg --dearmor > "$pathtodir/deb.torproject.org-keyring.gpg"
fi

newname="fuckraspberrypi_$1"

cp -f "$1" "$newname" && \
sdm --customize "$newname" \
--extend --xmb 4096 \
--showapt \
--plugin user:"deluser=pi" \
--plugin user:"adduser=dropper|password=lmao" \
--plugin apps:"apps=apt-transport-https|apps=ntpsec" \
--plugin copyfile:"from=$pathtodir/tor.sources|to=/etc/apt/sources.list.d/" \
--plugin copyfile:"from=$pathtodir/deb.torproject.org-keyring.gpg|to=/usr/share/keyrings/" \
--plugin disables:"bluetooth|piwiz|triggerhappy" \
--plugin L10n:"host" \
--plugin network:"netman=nm|wifissid=fuck|wifipassword=shit|wificountry=US|noipv6" \
--plugin quietness:"consoleblank|noquiet=keep|nosplash=keep" \
--plugin serial:"disableshell" \
--reboot 600 2>&1 | tee -a "$pathtodir/sdm-FUCKRASPBERRYPI.log"

return $?
}

if [[ $# -ne 1 ]]; then
echo -ne "No image specified\n" >&2
exit
fi

runsdm $1
Fuck my chud life I wrote the .img to my usb instead of copying it
how the fuck