From c029c0ffde943696b95aa3a66cddf92ec78779f6 Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Sun, 26 Apr 2026 21:11:23 -0600 Subject: [PATCH] thiiiink i fixed both sh --- ... (# Edit conflict 2026-04-26 ynhps1C #).sh | 41 +++++++++++++++++++ .../BASH_Script_Linux/DREAMMAKER-DEMO.sh | 5 ++- .../BASH_Script_Linux/DREAMMAKER.sh | 3 +- implementations/BASH_Script_Linux/scratch.md | 16 ++++++++ 4 files changed, 61 insertions(+), 4 deletions(-) create mode 100644 implementations/BASH_Script_Linux/DREAMMAKER-DEMO (# Edit conflict 2026-04-26 ynhps1C #).sh create mode 100644 implementations/BASH_Script_Linux/scratch.md diff --git a/implementations/BASH_Script_Linux/DREAMMAKER-DEMO (# Edit conflict 2026-04-26 ynhps1C #).sh b/implementations/BASH_Script_Linux/DREAMMAKER-DEMO (# Edit conflict 2026-04-26 ynhps1C #).sh new file mode 100644 index 0000000..54e8629 --- /dev/null +++ b/implementations/BASH_Script_Linux/DREAMMAKER-DEMO (# Edit conflict 2026-04-26 ynhps1C #).sh @@ -0,0 +1,41 @@ +#!/bin/bash +# set -e # faiulure is not tolerated here # failure is now an option +## easy to add ids~ +### CO:1C:6A is phone in bt pair mode +### 71:D9:79 is common for testyin +### O1 is common and easier +vendor_ids=('00:25:DF' '00:58:28' '00:C0:D4' '84:70:03' 'CO:1C:6A') +webhook_file="/usr/share/DREAMMAKER/.discord_url" +tag_file="/usr/share/DREAMMAKER/.discord_tag" +username='[DЯΣΛMMΛKΣЯ]' + +send_discord_webhook() { + webhook_url="$(cat \"$webhook_file\")" + tag="$(cat \"$tag_file\")" + + # send the webhook post + curl -sS -X POST \ + -H "Content-Type: application/json" \ + -d "{\"username\":\"$username\",\"content\":\"$1 $tag\"}" \ + "$webhook_url" +} + +while true; do #infinite loop + # scan for those vendor ids + ## the /#/ in the bash expansion is to signal beginning of a string + blescan=$(eval "bluetoothctl -t 10 scan on | awk '{print \$3}' | grep ${vendor_ids[@]/#/}") + + 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 + echo -e "\e[32m\n\nSAW ONE JUST NOW AT `date`\n\n\e[0m" + sleep 5 + + # cryptsetup erase # ion case you wanna nuke ur shit lmao + ## these options are powerful, silent, fast, aND RIsky + # poweroff --poweroff --force --no-wall # --no-sync + done + fi +done diff --git a/implementations/BASH_Script_Linux/DREAMMAKER-DEMO.sh b/implementations/BASH_Script_Linux/DREAMMAKER-DEMO.sh index 857fcdf..ec1c026 100644 --- a/implementations/BASH_Script_Linux/DREAMMAKER-DEMO.sh +++ b/implementations/BASH_Script_Linux/DREAMMAKER-DEMO.sh @@ -22,8 +22,9 @@ send_discord_webhook() { while true; do #infinite loop # scan for those vendor ids - blescan=$(eval "bluetoothctl -t 10 scan on | awk '{print \$3}' | grep ${vendor_ids[@]/#/-e }") - + ## eval "vendor_ids=('00:25:DF' '00:58:28' '00:C0:D4' '84:70:03' 'CO:1C:6A' '01' '02' '03' '04' '05' '06' '07' '08' '09' '0B' '77' '99'); while true; do bluetoothctl -t 10 scan on | awk '{print \$3}' | grep ${vendor_ids[@]/#/ -e ^} 2>/dev/null; done" + blescan=$(eval "bluetoothctl -t 10 scan on | awk '{print \$3}' | grep ${vendor_ids[@]/#/ -e ^}" + # -n is if length of string is non zero if [ -n "$blescan" ]; then # LE detected poweroff to cryptdisk and notify # alert spammmm diff --git a/implementations/BASH_Script_Linux/DREAMMAKER.sh b/implementations/BASH_Script_Linux/DREAMMAKER.sh index 613b290..5bf1966 100644 --- a/implementations/BASH_Script_Linux/DREAMMAKER.sh +++ b/implementations/BASH_Script_Linux/DREAMMAKER.sh @@ -22,8 +22,7 @@ send_discord_webhook() { while true; do #infinite loop # scan for those vendor ids - blescan=$(eval "bluetoothctl -t 10 scan on | awk '{print \$3}' | grep ${vendor_ids[@]/#/-e }") - + Blescan=$(eval "bluetoothctl -t 10 scan on | awk '{print \$3}' | grep ${vendor_ids[@]/#/ -e ^}" if [ -n "$blescan" ]; then # LE detected poweroff to cryptdisk and notify # alert spammmm diff --git a/implementations/BASH_Script_Linux/scratch.md b/implementations/BASH_Script_Linux/scratch.md new file mode 100644 index 0000000..05295c5 --- /dev/null +++ b/implementations/BASH_Script_Linux/scratch.md @@ -0,0 +1,16 @@ +# scratch +eval "bluetoothctl -t 10 scan on | awk '{print \$3}' | grep ${vendor_ids[@]/#/}" + +vendor_ids=('00:25:DF' '00:58:28' '00:C0:D4' '84:70:03' 'CO:1C:6A' '01' '0B' '77' '99'); while true; do bluetoothctl -t 60 scan on | awk '{print $3}' | grep ${vendor_ids[@]/#/ -e }; done + +vendor_ids=('00:25:DF' '00:58:28' '00:C0:D4' '84:70:03' 'CO:1C:6A' '01' '02' '03' '04' '05' '06' '07' '08' '09' '0B' '77' '99'); while true; do bluetoothctl -t 10 scan on | awk '{print $3}' | grep ${vendor_ids[@]/#/ -e ^} 2>/dev/null; done + +grep ${vendor_ids[@]/#/ -e ^} evals to each vendor id preepended with "-e ^" like "-e ^00:58:28" + +WORKING +eval "vendor_ids=('00:25:DF' '00:58:28' '00:C0:D4' '84:70:03' 'CO:1C:6A' '01' '02' '03' '04' '05' '06' '07' '08' '09' '0B' '77' '99'); while true; do bluetoothctl -t 10 scan on | awk '{print \$3}' | grep ${vendor_ids[@]/#/ -e ^} 2>/dev/null; done" + +vendor_ids=('00:25:DF' '00:58:28' '00:C0:D4' '84:70:03' 'CO:1C:6A' '01' '02' '03' '04' '05' '06' '07' '08' '09' '0B' '77' '99' '0A' '0B' '0C' '0D' '0E' '0F' 'AB' 'C0'); while true; do blescan=$(eval "bluetoothctl -t 10 scan on | awk '{print \$3}' | grep ${vendor_ids[@]/#/ -e ^}"); echo -n $blescan; done + +WORKING IMPROVED +do blescan=$(eval "bluetoothctl -t 10 scan on | awk '{print \$3}' | grep ${vendor_ids[@]/#/ -e ^}" \ No newline at end of file