This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
[ -f ~/.local/etc/baseline_pkg.list ] || exit 1 | |
# Generate ~/.local/etc/current_pkg.list | |
apt list --installed 2>/dev/null | awk -F/ '{print $1}' > ~/.local/etc/current_pkg.list | |
# Remove any packages not included in ~/.local/etc/baseline_pkg.list | |
for i in $(diff -y ~/.local/etc/baseline_pkg.list ~/.local/etc/current_pkg.list | awk -- '{if($1==">") print $2}'); do | |
echo -n "Removing ${i}... " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo airmon-ng start wlan0 | |
sudo airodump-ng wlan0mon | |
SCREEN 1: sudo airodump-ng [ --bssid xx:xx:xx:xx:xx:xx | --essid $ESSID ] -c $CHAN --write $LOG wlan0mon | |
SCREEN 2: sudo airreplay-ng --deauth 10 [ -a xx:xx:xx:xx:xx:xx | -e $ESSID ] -c yy:yy:yy:yy:yy:yy wlan0mon | |
cat $WORDLIST | aircrack-ng $LOG.cap [ -b xx:xx:xx:xx:xx:xx | -e $ESSID ] -w - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
od -An -x -w6 < /dev/urandom | tr -d ' ' | cut -b1-10 | tr [:lower:] [:upper:] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Update alsa config file with new BD_ADDR | |
# Backup original | |
# Create a new config file if one doesn't exist | |
usage() { | |
echo "Usage: $0 xx:xx:xx:xx:xx:xx" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bluetooth Audio | |
# Install bluealsa and allow 'pi' to access | |
sudo apt install bluealsa | |
sudo systemctl start bluealsa | |
sudo usermod -G bluetooth -a pi | |
### reboot ### | |
# Scan, pair, trust and connect | |
bluetoothctl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user | |
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dev tun | |
proto udp | |
ping 10 | |
ping-restart 120 | |
remote-random |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
systemctl stop transmission-daemon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
systemctl start transmission-daemon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
iptables -F | |
iptables -A INPUT -i $dev -m state --state ESTABLISHED,RELATED -j ACCEPT | |
iptables -A INPUT -i $dev -j DROP |