37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
#!/bin/bash
|
|
set -e # faiulure is not tolerated here
|
|
## easy to add ids~
|
|
vendor_ids=('00:25:DF' '00:58:28' '00:C0:D4' '84:70:03')
|
|
|
|
send_discord_webhook() {
|
|
username="[DЯΣΛMMΛKΣЯ]"
|
|
webhook_url="$(cat /home/princesspi/.discord_url)"
|
|
tag="$(cat /home/princesspi/.discord_tag)"
|
|
message="$1 $(cat /home/princesspi/.discord_tag)"
|
|
|
|
curl -sS -X POST \
|
|
-H "Content-Type: application/json" \
|
|
-d "{\"username\":\"$username\",\"message\":\"$message\"}" \
|
|
"$webhook_url"
|
|
}
|
|
|
|
send_discord_webhook "FUZZiiii"
|
|
|
|
while true; do #infinite loop
|
|
# scan for those vendor ids
|
|
blescan=$(bluetoothctl -t 5 scan on | awk '{print $3}' | grep "${vendor_ids[@]/#/-e }")
|
|
if [ -n "$blescan" ]; then
|
|
# LE detected poweroff to cryptdisk and notify
|
|
# alert spammmm
|
|
for((i=0;i<10;i++)); do
|
|
send_discord_webhook "FUZZ" & # fork task to background to run more faster
|
|
done
|
|
# cryptsetup erase <device> # ion case you wanna nuke ur shit lmao
|
|
## these options are powerful, silent, fast, aND RIsky
|
|
poweroff --poweroff --force --no-wall # --no-sync
|
|
sleep 1
|
|
else
|
|
sleep 1
|
|
fi
|
|
done
|