-
Notifications
You must be signed in to change notification settings - Fork 36
/
hackingteam_hunter
29 lines (26 loc) · 1.61 KB
/
hackingteam_hunter
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
#!/usr/bin/python2
# coding: utf-8
import shodan
print """
/$$$$$$$$ /$$ /$$$$$$ /$$ /$$ /$$ /$$$$$ /$$
|__ $$__/| $$ |_ $$_/| $$ | $$|__/ |__ $$ | $$
| $$ | $$$$$$$ /$$$$$$ | $$ /$$$$$$ /$$$$$$ | $$ /$$ /$$$$$$ /$$$$$$$ | $$ /$$$$$$ | $$$$$$$
| $$ | $$__ $$ /$$__ $$ | $$|_ $$_/ |____ $$| $$| $$ |____ $$| $$__ $$ | $$ /$$__ $$| $$__ $$
| $$ | $$ \ $$| $$$$$$$$ | $$ | $$ /$$$$$$$| $$| $$ /$$$$$$$| $$ \ $$ /$$ | $$| $$ \ $$| $$ \ $$
| $$ | $$ | $$| $$_____/ | $$ | $$ /$$ /$$__ $$| $$| $$ /$$__ $$| $$ | $$ | $$ | $$| $$ | $$| $$ | $$
| $$ | $$ | $$| $$$$$$$ /$$$$$$| $$$$/| $$$$$$$| $$| $$| $$$$$$$| $$ | $$ | $$$$$$/| $$$$$$/| $$$$$$$/
|__/ |__/ |__/ \_______/ |______/ \___/ \_______/|__/|__/ \_______/|__/ |__/ \______/ \______/ |_______/
Using the SHODAN API to identify HackingTeam C&C Servers.
"""
SHODAN_API_KEY = "" #API Key Here
api = shodan.Shodan(SHODAN_API_KEY)
try:
# Search Shodan
results = api.search('Apache/2.4.4 (Unix) OpenSSL/1.0.0g 290')
# Show the results
print '{+} ITALIANS FOUND: %s' % results['total']
for result in results['matches']:
print '{!} ITALIAN DISCOVERED: %s' % result['ip_str']
# hack(result['ip_str'].strip()) # h4v3 j00 th3 0bay w4r3z?!
except shodan.APIError, e:
print 'Error: %s' % e