forked from bahatiphill/BillCipher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
billcipher.py
218 lines (186 loc) · 6.89 KB
/
billcipher.py
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
import socket
import os
import requests
import platform
def back():
print()
back = input('\033[92mDo you want to continue? [Yes/No]: ')
if back[0].upper() == 'Y':
print()
iseeverything()
elif back[0].upper() == 'N':
print('\033[92mRemember https://GitHackTools.blogspot.com')
exit
else:
print('\033[92m?')
exit
def clear():
if platform.system() == 'Windows':
os.system('cls')
else:
os.system('clear')
def bill():
clear()
print("""\033[93m ###### #####
# # # # # # # # ##### # # ###### #####
# # # # # # # # # # # # # #
###### # # # # # # # ###### ##### # #
# # # # # # # ##### # # # #####
# # # # # # # # # # # # # #
###### # ###### ###### ##### # # # # ###### # # 2.3
Information Gathering tool for a Website or IP address""")
print()
def banner():
print("""\033[96m
1) DNS Lookup 13) Host DNS Finder
2) Whois Lookup 14) Reserve IP Lookup
3) GeoIP Lookup 15) Email Gathering (use Infoga)
4) Subnet Lookup 16) Subdomain listing (use Sublist3r)
5) Port Scanner 17) Find Admin login site (use Breacher)
6) Page Links 18) Check and Bypass CloudFlare (use HatCloud)
7) Zone Transfer 19) Website Copier (use httrack)
8) HTTP Header 20) Host Info Scanner (use WhatWeb)
9) Host Finder 21) About BillCipher
10) IP-Locator 22) Fuck Out Of Here (Exit)
11) Find Shared DNS Servers
12) Get Robots.txt""")
print()
def iseeverything():
try:
what = input('\033[92mDo you want to collect information of a website or IP address? [website/IP]: ')
if what[0].upper() == 'W':
victim = input('Enter the website address: ')
banner()
elif what[0].upper() == 'I':
victim = input('Enter the IP address (or domain to get IP address of that domain): ')
victim = socket.gethostbyname(victim)
print('The IP address of target is:',victim)
banner()
else:
print('?')
iseeverything()
choose = input('What information would you like to collect? (1-20): ')
if choose == '1':
dnslook = 'https://api.hackertarget.com/dnslookup/?q='+victim
info = requests.get(dnslook)
print('\033[91m',info.text)
back()
elif choose == '2':
whois = 'https://api.hackertarget.com/whois/?q='+victim
info = requests.get(whois)
print('\033[91m',info.text)
back()
elif choose == '3':
ipgeo = 'https://api.hackertarget.com/geoip/?q='+victim
info = requests.get(ipgeo)
print('\033[91m',info.text)
back()
elif choose == '4':
subnet = 'http://api.hackertarget.com/subnetcalc/?q='+victim
info = requests.get(subnet)
print('\033[91m',info.text)
back()
elif choose == '5':
port = 'https://api.hackertarget.com/nmap/?q='+victim
info = requests.get(port)
print('\033[91m',info.text)
back()
elif choose == '6':
pagelink = 'https://api.hackertarget.com/pagelinks/?q='+victim
info = requests.get(pagelink)
print('\033[91m',info.text)
back()
elif choose == '7':
zone = 'https://api.hackertarget.com/zonetransfer/?q='+victim
info = requests.get(zone)
print('\033[91m',info.text)
back()
elif choose == '8':
header = 'https://api.hackertarget.com/httpheaders/?q='+victim
info = requests.get(header)
print('\033[91m',info.text)
back()
elif choose == '9':
host = 'https://api.hackertarget.com/hostsearch/?q='+victim
info = requests.get(host)
print('\033[91m',info.text)
back()
elif choose == '10':
iplt = 'https://ipinfo.io/'+victim+'/json'
info = requests.get(iplt)
print('\033[91m',info.text)
back()
elif choose == '11':
shared = 'https://api.hackertarget.com/findshareddns/?q='+victim
info = requests.get(shared)
print('\033[91m',info.text)
back()
elif choose == '12':
robots ='http://'+victim+'/robots.txt'
info = requests.get(robots)
print('\033[91m',info.text)
back()
elif choose == '13':
hostdns = 'https://api.hackertarget.com/mtr/?q='+victim
info = requests.get(hostdns)
print('\033[91m',info.text)
back()
elif choose == '14':
reserve = 'https://api.hackertarget.com/reverseiplookup/?q='+victim
info = requests.get(reserve)
print('\033[91m',info.text)
back()
elif choose == '15':
clear()
os.system('cd modules/Infoga && python3 infoga.py --domain '+victim)
back()
elif choose == '16':
clear()
os.system('cd modules/Sublist3r && python3 sublist3r.py -d '+victim)
back()
elif choose == '17':
clear()
os.system('cd modules/Breacher && python breacher.py -u '+victim)
back()
elif choose == '18':
clear()
os.system('ruby ./modules/HatCloud/hatcloud.rb -b '+victim)
back()
elif choose == '19':
os.system('cd websource && mkdir '+victim)
os.system('cd websource && cd '+victim+' && httrack '+victim)
print("The website source code was saved in folder 'websource'")
back()
elif choose == '20':
clear()
os.system('whatweb -v '+victim)
back()
elif choose == '21':
print("""\033[93mBillCipher 2.1 - Information Gathering of a Website or IP address
AUTHOR: https://GitHackTools.blogspot.com
https://twitter.com/SecureGF#
https://fb.com/TVT618
https://plus.google.com/+TVT618""")
back()
elif choose == '22':
exit
else:
print('?')
iseeverything()
except socket.gaierror:
print('Name or service unknown!\033[93m')
print()
iseeverything()
except UnboundLocalError:
print('The information you entered is incorrect')
print()
iseeverything()
except requests.exceptions.ConnectionError:
print('Your Internet Offline')
exit
except IndexError:
print('?')
print()
iseeverything()
bill()
iseeverything()