-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathradare
131 lines (107 loc) · 3.89 KB
/
radare
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#!/bin/bash
## Project Name: RadareEye v1
## Coded & Owned By @souravbaghz
## https://souravbaghz.github.io
## "Copying someone's code doesn't make you coder"
##Colors Used ##
bold="\e[1m"
yellow="\e[93m"
red="\e[31m"
reset="\e[0m"
blink="\e[5m"
redbg="\e[41m"
green="\e[1;32m"
greenbg="\e[1;42m"
black="\e[30m"
target="$1"
## Banner ##
banner(){
clear
echo -e "${green}
██████╗ █████╗ ██████╗ █████╗ ██████╗ ███████╗███████╗██╗ ██╗███████╗
██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔════╝╚██╗ ██╔╝██╔════╝
██████╔╝███████║██║ ██║███████║██████╔╝█████╗ █████╗ ╚████╔╝ █████╗
██╔══██╗██╔══██║██║ ██║██╔══██║██╔══██╗██╔══╝ ██╔══╝ ╚██╔╝ ██╔══╝
██║ ██║██║ ██║██████╔╝██║ ██║██║ ██║███████╗███████╗ ██║ ███████╗
╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚═╝ ╚══════╝
${greenbg}${yellow}.:.:.: Coded By @souravbaghz :.:.:.${reset}
"
}
if [ -z "$target" ]
then
echo "[!] You didn't gave any target mac addrress"
echo " Usage: ./$0 <macaddress> <option> "
echo "";
echo " Available options are:- ";
echo " -blue Bluetooth RadareEye";
echo " -ble BLE RadareEye ";
echo " -wifi Wifi RadareEye";
echo " -h This Help Menu With Banner";
exit 1
fi
# Command Input ##############
command(){
echo
read -p "[+]Command you want to trigger? :" cmd
echo "=====================================================[$target]=="
}
# Bluetooth radare ##############
blueradare(){
command
while :
do macaddr=$(hcitool scan | grep -w "$target" | awk '{print $1}')
if [[ $macaddr == $target ]];
then echo -e "[${red}!${reset}]Your target discovered in range!";
sleep 0.2
$cmd;
else echo -e "[${red}!${reset}]Out of range now..."
fi
done
}
# BLE radare ##############
bleradare(){
command
while :
do macaddr=$(timeout -s SIGINT 15s hcitool lescan | grep -w "$target" | tail -1 |awk '{print $1}')
if [[ $macaddr == $target ]];
then echo -e "[${red}!${reset}]Your target discovered in range!";
sleep 0.2
$cmd;
else echo -e "[${red}!${reset}]Out of range now..."
fi
done
}
# Wifi radare ##############
wifiradare(){
command
while :
do macaddr=$(iw wlan0 scan | grep -w "$target" | awk '{print $2}' | cut -c 1-17)
if [[ $macaddr == $target ]];
then echo -e "[${red}!${reset}]Your target discovered in range!";
sleep 0.2
$cmd;
else echo -e "[${red}!${reset}]Out of range now..."
fi
done
}
banner
case "$2" in
-blue) echo "[+]Running Bluetooth RadareEye... .:.Press CTRL+C to Stop.:."
blueradare
;;
-ble) echo "[+]Running BLE RadareEye... .:.Press CTRL+C to Stop.:."
bleradare
;;
-wifi) echo "[+]Running Wifi RadareEye... .:.Press CTRL+C to Stop.:."
wifiradare
;;
* | -h) echo "=========================================================================="
echo " Usage: ./$0 <macaddress> <option>";
echo "";
echo " Available options are:- ";
echo " -blue Bluetooth RadareEye";
echo " -ble BLE RadareEye ";
echo " -wifi Wifi RadareEye";
echo " -h This Help Menu";
;;
esac