-
Notifications
You must be signed in to change notification settings - Fork 33
/
gideon.py
218 lines (202 loc) · 8.73 KB
/
gideon.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 requests
from Core import nickF
from Core import decor
import os, sys
from Core import ts
from requests import get
from bs4 import BeautifulSoup
from colorama import Fore, init
from prettytable import PrettyTable
import urllib, json, os
import requests, os, urllib.request, json, random, time
print(decor.chsystem)
global system
system = int(input(f"{decor.lye}[Gideon/chooseSystem] >> "))
if system == 1:
os.system('cls')
elif system == 2:
os.system('clear')
else:
print(decor.lye + "UNKNOWN VALUE")
print(decor.banner)
while True:
print(decor.menu)
ans = int(input(f"{decor.lye}[Gideon/main] >> {decor.res}"))
if ans == 1 and system == 1:
os.system('cls')
nick = input(f"{decor.lye}Enter Nickname >> ")
print(f"{decor.lye} Messeagers and Soical Networks:")
nickF.osint(nickF.snm, nick)
print(f"{decor.lye} Videohostings:")
nickF.osint(nickF.vh, nick)
print(f"{decor.lye} Games:")
nickF.osint(nickF.games, nick)
print(f"{decor.lye} Forums:")
nickF.osint(nickF.forums, nick)
print(f"{decor.lye} Wallets:")
nickF.osint(nickF.money, nick)
print(f"{decor.lye} Other:")
nickF.osint(nickF.other, nick)
continue
elif ans == 1 and system == 2:
os.system('clear')
nick = input(f"{decor.lye}Enter Nickname >> ")
print(f"{decor.lye} Messeagers and Soical Networks:")
nickF.osint(nickF.snm, nick)
print(f"{decor.lye} Videohostings:")
nickF.osint(nickF.vh, nick)
print(f"{decor.lye} Games:")
nickF.osint(nickF.games, nick)
print(f"{decor.lye} Forums:")
nickF.osint(nickF.forums, nick)
print(f"{decor.lye} Wallets:")
nickF.osint(nickF.money, nick)
print(f"{decor.lye} Other:")
nickF.osint(nickF.other, nick)
continue
elif ans == 4:
break
elif ans == 2 and system == 1:
os.system('cls')
ip = input(f"{decor.lye}Enter IP >> ")
url = "https://ipinfo.io/" + ip + "/json"
info = urllib.request.urlopen(url)
ls = json.load(info)
res = rf'''{Fore.LIGHTGREEN_EX}
Ciry -> {ls['city']}
Region -> {ls["region"]}
Location -> {ls["loc"]}
Operator -> {ls["org"]}
'''
print(res)
page = get("https://iknowwhatyoudownload.com/en/peer/?ip=" + ip,
headers=ts.headers)
soup = BeautifulSoup(page.content, "html.parser")
table = soup.find(class_="table").find("tbody")
torrents = table.find_all("tr")
output = PrettyTable(["Name", "Category", "Size", "First seen", "Last seen"])
for torrent in torrents:
first, last = torrent.find_all(class_="date-column")
first, last = first.text, last.text
category = torrent.find(class_="category-column").text
name = torrent.find(class_="name-column").text.replace("\n", '')
size = torrent.find(class_="size-column").text
output.add_row([name, category, size, first, last])
print(f" {Fore.YELLOW}Found {len(torrents)} torrents... \n{Fore.LIGHTGREEN_EX}{output}{Fore.RESET}")
continue
elif ans == 2 and system == 2:
os.system('clear')
ip = input(f"{decor.lye}Enter IP >> ")
url = "https://ipinfo.io/" + ip + "/json"
info = urllib.request.urlopen(url)
ls = json.load(info)
res = rf'''{Fore.LIGHTGREEN_EX}
Ciry -> {ls['city']}
Region -> {ls["region"]}
Location -> {ls["loc"]}
Operator -> {ls["org"]}
'''
print(res)
page = get("https://iknowwhatyoudownload.com/en/peer/?ip=" + ip,
headers=ts.headers)
soup = BeautifulSoup(page.content, "html.parser")
table = soup.find(class_="table").find("tbody")
torrents = table.find_all("tr")
output = PrettyTable(["Name", "Category", "Size", "First seen", "Last seen"])
for torrent in torrents:
first, last = torrent.find_all(class_="date-column")
first, last = first.text, last.text
category = torrent.find(class_="category-column").text
name = torrent.find(class_="name-column").text.replace("\n", '')
size = torrent.find(class_="size-column").text
output.add_row([name, category, size, first, last])
print(f" {Fore.YELLOW}Found {len(torrents)} torrents... \n{Fore.LIGHTGREEN_EX}{output}{Fore.RESET}")
continue
elif ans == 3 and system == 1:
os.system('cls')
print(decor.sher_menu)
vari = input(f"{decor.lye}[Gideon/main/carNphone/category] >> {decor.res}")
if vari == "2":
car_num = input(f"{decor.lye}Enter Car Number(а111аа77) >> ")
try:
car_nums = car_num.upper()
nc = car_num.lower()
numb_car = nc[:6] + '.' + nc[6:]
a_h=requests.get("https://авто-история.рф/num/"+car_nums+"/")
km=requests.get("https://www.230km.ru/"+numb_car+".nomer")
an=requests.get("http://avto-nomer.ru/ru/gallery.php?fastsearch="+nc)
if a_h:
print("https://авто-история.рф/num/"+car_nums+"/")
if km:
print("https://www.230km.ru/"+numb_car+".nomer")
else:
print(f"{decor.lre}[no result]")
else:
print(f"{decor.lre}[no result]")
if len(nc)<8:
print(f"{decor.lre}[no result]")
else:
print("http://avto-nomer.ru/ru/gallery.php?fastsearch="+nc)
except:
print(f"{decor.lre}[no result]")
elif vari == "1":
phone = input(f"{decor.lre}Enter Phone Number >> ")
getInfo = "https://htmlweb.ru/geo/api.php?json&telcod=" + phone
try:
infoPhones = urllib.request.urlopen( getInfo )
except:
print(f"{decor.lre}[no result]")
infoPhone = json.load( infoPhones )
try:
print(decor.lye)
print(u"Country >>", infoPhone["country"]["name"])
print(u"Region >>", infoPhone["region"]["name"])
print(u"Operator >>", infoPhone["0"]["oper"])
print(u"City >>", infoPhone["0"]["name"])
print(decor.res)
except:
print(f"{decor.lre}On TOR to continue working")
elif ans == 3 and system == 2:
os.system('clear')
print(decor.sher_menu)
vari = input(f"{decor.lye}[Gideon/main/carNphone/category] >> {decor.res}")
if vari == "2":
car_num = input(f"{decor.lye}Enter Car Number(а111аа77) >> ")
try:
car_nums = car_num.upper()
nc = car_num.lower()
numb_car = nc[:6] + '.' + nc[6:]
a_h=requests.get("https://авто-история.рф/num/"+car_nums+"/")
km=requests.get("https://www.230km.ru/"+numb_car+".nomer")
an=requests.get("http://avto-nomer.ru/ru/gallery.php?fastsearch="+nc)
if a_h:
print("https://авто-история.рф/num/"+car_nums+"/")
if km:
print("https://www.230km.ru/"+numb_car+".nomer")
else:
print(f"{decor.lre}[no result]")
else:
print(f"{decor.lre}[no result]")
if len(nc)<8:
print(f"{decor.lre}[no result]")
else:
print("http://avto-nomer.ru/ru/gallery.php?fastsearch="+nc)
except:
print(f"{decor.lre}[no result]")
elif vari == "1":
phone = input(f"{decor.lye}Enter Phone Number >> ")
getInfo = "https://htmlweb.ru/geo/api.php?json&telcod=" + phone
try:
infoPhones = urllib.request.urlopen( getInfo )
except:
print(f"{decor.red}[no result]")
infoPhone = json.load( infoPhones )
try:
print(decor.lye)
print(u"Country >>", infoPhone["country"]["name"])
print(u"Region >>", infoPhone["region"]["name"])
print(u"Operator >>", infoPhone["0"]["oper"])
print(u"City >>", infoPhone["0"]["name"])
print(decor.res)
except:
print(f"{decor.lre}On TOR to continue working")