god help me i fucking hate python I HATE IT
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=protecc from cops
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
# script path
|
||||
ExecStart=/usr/local/bin/DREAMMAKER.sh
|
||||
# Automatically restarts if the script fails
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
# This allows the service to start at boot
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
set -e # faiulure is not tolerated here
|
||||
## 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')
|
||||
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
|
||||
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
|
||||
for((i=0;i<10;i++)); do
|
||||
send_discord_webhook "FUZZ!!!" & # fork task to background to run more faster
|
||||
|
||||
# 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
|
||||
done
|
||||
fi
|
||||
done
|
||||
@@ -0,0 +1,64 @@
|
||||
#!/bin/bash
|
||||
webhook_file=/usr/share/DREAMMAKER/.discord_url
|
||||
tag_file=/usr/share/DREAMMAKER/.discord_tag
|
||||
script_file=/usr/local/bin/DREAMMAKER.sh
|
||||
service_file=/etc/systemd/system/DREAMMAKER.service
|
||||
store_path=/usr/share/DREAMMAKER
|
||||
|
||||
echo "installing [DЯΣΛMMΛKΣЯ]"
|
||||
# kill any running instanes
|
||||
echo "killing any running"
|
||||
sudo systemctl stop DREAMMAKER.service 2>/dev/null
|
||||
|
||||
echo "cleaning up"
|
||||
# see if wer need top nuke old filews
|
||||
if [ -f "$script_file" ]; then
|
||||
echo "Deleting existing $script_file"
|
||||
sudo rm -f "$script_file" 2>/dev/null
|
||||
fi
|
||||
|
||||
if [ -f "$service_file" ]; then
|
||||
echo "Deleting existing $service_file"
|
||||
sudo rm -f "$service_file" 2>/dev/null
|
||||
fi
|
||||
|
||||
if [ ! -d "$store_path" ]; then
|
||||
echo "Creating $store_path"
|
||||
sudo mkdir -p "$store_path"
|
||||
fi
|
||||
|
||||
if [ ! -f "$webhook_file" ]; then
|
||||
echo -e "Enter Discord Webhook URL\n\tRight click on server->server settings->integrations"
|
||||
read discord_webhook
|
||||
sudo bash -c "echo \"$discord_webhook\" > \"$webhook_file\""
|
||||
echo
|
||||
fi
|
||||
|
||||
if [ ! -f "$tag_file" ]; then
|
||||
echo -e "Enter Discord Member group to tag\n\tuse a backslash when tagging the roll like \\@notifications"
|
||||
read discord_tag_file
|
||||
sudo bash -c "echo \"$discord_tag_file\" > \"$tag_file\""
|
||||
echo
|
||||
fi
|
||||
|
||||
if [ ! $(which bluetoothctl) ]; then
|
||||
echo -e "\nERROR: bluetoothctl not found! Please install and try again.\n"
|
||||
fi
|
||||
|
||||
if [ ! $(which CURL) ]; then
|
||||
echo -e "\nERROR: curl not found! Please install and try again.\n"
|
||||
fi
|
||||
|
||||
# install itt
|
||||
echo "installing service"
|
||||
sudo cp DREAMMAKER.sh "$script_file"
|
||||
sudo chmod +x "$script_file"
|
||||
sudo cp DREAMMAKER.service "$service_file"
|
||||
echo
|
||||
|
||||
# enable it at boot and run
|
||||
echo "enabling [DЯΣΛMMΛKΣЯ] at boot and starting the service"
|
||||
sudo systemctl enable DREAMMAKER.service
|
||||
sudo systemctl start DREAMMAKER.service
|
||||
sudo systemctl status DREAMMAKER.service
|
||||
echo -e "\nall donesies :3 nytaa~\n"
|
||||
@@ -0,0 +1 @@
|
||||
they called me DREAMMAKER, they called me a sorceress, they called me Princess, they called me Delilah. is it real? is it real? is it real? how do i look? do i look alriht? tell me im pretty, a lovely sight. ive been fighting for anotehr day inside your mind.
|
||||
Reference in New Issue
Block a user