-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathip-straw.py
More file actions
executable file
·85 lines (75 loc) · 2.58 KB
/
Copy pathip-straw.py
File metadata and controls
executable file
·85 lines (75 loc) · 2.58 KB
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
#!/usr/bin/env python3
import os, json, sys, time
from colored import fg, attr
import requests
import pyfiglet
#Colors
GR = fg('green')
RE = fg('red')
YE = fg('yellow')
DIM = attr('dim')
BOL = attr('bold')
PU = fg('orange_4b')
RES = attr('reset')
LOAD = BOL + YE + '*' + RES
print(DIM + PU + pyfiglet.figlet_format('IP - Straw') + RES)
print('----- By github.com/jamesarems (c) 2020\n\n')
def botscout(ip):
print('\n[' + LOAD + '] Scanning botscout + ABUSE (botscout.com) ')
link = "https://iplists.firehol.org/files/botscout_30d.ipset"
val = requests.get(link).text
if ip in val:
print( RE + '+++ Found' + RES )
sblam(ip)
def sblam(ip):
print('\n[' + LOAD + '] Scanning Sblam + ABUSE (sblam.com) ')
link = "https://iplists.firehol.org/files/sblam.ipset"
val = requests.get(link).text
if ip in val:
print( RE + '+++ Found' + RES )
stopForum(ip)
def stopForum(ip):
print('\n[' + LOAD + '] Scanning StopForum + ABUSE (stopforumspam.com) ')
link = "https://iplists.firehol.org/files/stopforumspam_30d.ipset"
val = requests.get(link).text
if ip in val:
print( RE + '+++ Found' + RES )
sockProxy(ip)
def sockProxy(ip):
print('\n[' + LOAD + '] Scanning SockProxy + Proxy ')
link = "https://iplists.firehol.org/files/socks_proxy_30d.ipset"
val = requests.get(link).text
if ip in val:
print( RE + '+++ Found' + RES )
badBot(ip)
def badBot(ip):
print('\n[' + LOAD + '] Scanning BadBots + ATTACKS ')
link = "https://iplists.firehol.org/files/bi_badbots_0_1d.ipset"
val = requests.get(link).text
if ip in val:
print( RE + '+++ Found' + RES )
haleySSH(ip)
def haleySSH(ip):
print('\n[' + LOAD + '] Scanning haleySSH + ATTACKS ')
link = "https://iplists.firehol.org/files/haley_ssh.ipset"
val = requests.get(link).text
if ip in val:
print( RE + '+++ Found' + RES )
try:
print('[ ' + LOAD + ' ] Processing '+ GR + sys.argv[1] + RES + '\n')
res = requests.get('http://ip-api.com/json/'+ sys.argv[1]).json()
if res['status'] == "success":
print('Findings are,')
print('COUNTRY : '+ res['country'])
print('REGION : '+ res['region'])
print('REGION NAME : '+ res['regionName'])
print('CITY : '+ res['city'])
print('ZIP : '+ res['zip'])
print('ISP : '+ res['isp'])
print('ZONE : '+ res['timezone'])
print('ORGANIZATION : '+ res['org'])
botscout(sys.argv[1])
else:
print('Sorry, No result found')
except:
print('No value \n - Usage : ' + YE + sys.argv[0] + ' ip-address' + RES)