initial commit via gitinitshit
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# [DЯΣΛMMΛKΣЯ]
|
||||||
|
## Automatic police alarm
|
||||||
|
## How does it work?
|
||||||
|
- Certin bits of cop kit constantly emit bluetooth low energy beacons
|
||||||
|
- Because we can look up the mac addresses, we can filter for those vendors
|
||||||
|
- Tazers
|
||||||
|
- Axon bodycamera
|
||||||
|
## Requires cryptsetup
|
||||||
|
## Instakll
|
||||||
|
`bash install_dreammaker.sh`
|
||||||
|
|
||||||
|
## LICENSE
|
||||||
|
[](./COPYING.txt)
|
||||||
|
**Do What the Fuck You Want to Public License (WTFPL)**
|
||||||
|
"Free as in freedom **AND** free as in free beer"
|
||||||
|
[WTFPL Home](https://www.wtfpl.net) ([Archive](https://web.archive.org/web/20251218082119/https://www.wtfpl.net/))
|
||||||
|
[WTFPL Local Copy](./COPYING.txt)
|
||||||
|
### Text
|
||||||
|
```
|
||||||
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||||
|
```
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=protecc from cops
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
# Points to your script
|
||||||
|
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,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e # faiulure is not tolerated here
|
||||||
|
vendor_ids=('00:25:DF' '00:58:28' '00:C0:D4' '84:70:03')
|
||||||
|
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
|
||||||
|
webhook "FUZZ" true& # 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
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
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 /usr/local/bin/dreammaker.sh ]; then
|
||||||
|
sudo rm /usr/local/bin/dreammaker.sh 2>/dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f /etc/systemd/system/dreammaker.service ]; then
|
||||||
|
sudo rm /etc/systemd/system/dreammaker.service 2>/dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
|
# install itt
|
||||||
|
echo "installing service"
|
||||||
|
sudo cp dreammaker.sh /usr/local/bin/dreammaker.sh
|
||||||
|
sudo chmod +x /usr/local/bin/dreammaker.sh
|
||||||
|
sudo cp dreammaker.service /etc/systemd/system/dreammaker.service
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
echo "all donesies :3"
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
Reference in New Issue
Block a user