LFGGGGGGG ITS FUCKIN WORKANSSSS
This commit is contained in:
@@ -1,11 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# set -e # faiulure is not tolerated here # failure is now an option
|
# set -e # faiulure is not tolerated here # failure is now an option
|
||||||
## easy to add ids~
|
## easy to add ids~
|
||||||
### CO:1C:6A is phone in bt pair mode
|
vendor_ids=('00:25:DF' '00:58:28' '00:C0:D4' '84:70:03') # real known vendor ids
|
||||||
### 71:D9:79 is common for testyin
|
## random macs for testing
|
||||||
### O1 is common and easier
|
# 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')
|
||||||
# vendor_ids=('00:25:DF' '00:58:28' '00:C0:D4' '84:70:03')
|
|
||||||
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')
|
|
||||||
webhook_file="/usr/share/DREAMMAKER/.discord_url"
|
webhook_file="/usr/share/DREAMMAKER/.discord_url"
|
||||||
tag_file="/usr/share/DREAMMAKER/.discord_tag"
|
tag_file="/usr/share/DREAMMAKER/.discord_tag"
|
||||||
username='[DЯΣΛMMΛKΣЯ]'
|
username='[DЯΣΛMMΛKΣЯ]'
|
||||||
@@ -23,6 +21,7 @@ send_discord_webhook() {
|
|||||||
|
|
||||||
while true; do #infinite loop
|
while true; do #infinite loop
|
||||||
# scan for those vendor ids
|
# scan for those vendor ids
|
||||||
|
## the ${vendor_ids[@]/#/ -e ^} evals to ^00:25:DF -e ^00:58:28 -e ^00:C0:D4 -e ^84:70:03 /#/ means "prepend next chars to start of sting"
|
||||||
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 ^}")
|
||||||
# -n is if length of string is non zero
|
# -n is if length of string is non zero
|
||||||
if [ -n "$blescan" ]; then
|
if [ -n "$blescan" ]; then
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e # faiulure is not tolerated here
|
set -e # faiulure is not tolerated here
|
||||||
## easy to add ids~
|
## easy to add ids~
|
||||||
### CO:1C:6A is phone in bt pair mode
|
vendor_ids=('00:25:DF' '00:58:28' '00:C0:D4' '84:70:03') # real world vendor ids
|
||||||
### 71:D9:79 is common for testyin
|
## random macs for testing
|
||||||
### O1 is common and easier
|
# 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')
|
||||||
vendor_ids=('00:25:DF' '00:58:28' '00:C0:D4' '84:70:03')
|
|
||||||
webhook_file="/usr/share/DREAMMAKER/.discord_url"
|
webhook_file="/usr/share/DREAMMAKER/.discord_url"
|
||||||
tag_file="/usr/share/DREAMMAKER/.discord_tag"
|
tag_file="/usr/share/DREAMMAKER/.discord_tag"
|
||||||
username='[DЯΣΛMMΛKΣЯ]'
|
username='[DЯΣΛMMΛKΣЯ]'
|
||||||
@@ -22,7 +21,8 @@ send_discord_webhook() {
|
|||||||
|
|
||||||
while true; do #infinite loop
|
while true; do #infinite loop
|
||||||
# scan for those vendor ids
|
# scan for those vendor ids
|
||||||
Blescan=$(eval "bluetoothctl -t 10 scan on | awk '{print \$3}' | grep ${vendor_ids[@]/#/ -e ^}"
|
## the ${vendor_ids[@]/#/ -e ^} evals to ^00:25:DF -e ^00:58:28 -e ^00:C0:D4 -e ^84:70:03 /#/ means "prepend next chars to start of sting"
|
||||||
|
blescan=$(eval "bluetoothctl -t 10 scan on | awk '{print \$3}' | grep ${vendor_ids[@]/#/ -e ^}")
|
||||||
if [ -n "$blescan" ]; then
|
if [ -n "$blescan" ]; then
|
||||||
# LE detected poweroff to cryptdisk and notify
|
# LE detected poweroff to cryptdisk and notify
|
||||||
# alert spammmm
|
# alert spammmm
|
||||||
|
|||||||
Reference in New Issue
Block a user