-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpanda.py
executable file
·82 lines (80 loc) · 2.51 KB
/
panda.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
#!/usr/bin/python
#This code is completly legal for use for eductional purpose.
#No Evil Activities must be performed.
#Use of the generated password file is allowed with any of the bruteforce utility.
#>x-c0der is watching you<
# +=======================================|
# ||
# || x-c0der
# || do not copy
# || private c0de.
# || http://x-c0der.yzi.me
# || i will irritate the frauders
# ||
# +=======================================|
import sys
import array
import string
plus = '\033[92m'"[ + ] "'\033[0m'
minus = '\033[93m'"[ - ] "'\033[0m'
star = '\033[94m'"[ * ] "'\033[0m'
ques = '\033[95m'"[ ? ] "'\033[0m'
banner = '''
||---> x-c0der's
||---> bruteforcing password file generator
||---> method social engineering :>
||---> its always about hacking :)
||---> mailto:[email protected]
'''
wrn = []
wrn.append(star+"Copying the code and changing the description wont make you a c0der. :)")
wrn.append(star+"The quiter You become, The More You Are Able to Hear")
wrn.append(star+"Answer Most of the questions so that chances of password match would be more.")
wrn.append(star+"Press Ctrl+C anytime to create the password file of whatever you answered")
print banner
for text in wrn:
print text
#CODE BEGINS HERE
def pass_file():
global passfilename
passfilename = str(raw_input(ques+"Enter The Name of Password File you want to create: "))
global passfile
passfile = open(passfilename+".pass","w")
if not passfile:
print minus+"Could Not Create File. Please reenter or check folder permissions"
pass_file()
def victim_name():
fname = str(raw_input(ques+"Enter the first name of the victim: "))
lname = str(raw_input(ques+"Enter the last name of the victim: "))
if fname == "" and lname == "":
print minus+"This is required. Please Enter appropriate Value"
victim_name()
else:
passwd.append(fname)
passwd.append(lname)
def victim_sex():
sex = raw_input(ques+"Victim's sex [M/F]: ")
if(sex != 'M' and sex != "m" and sex != "F" and sex != "f"):
print minus+"Please enter the value as required mentioned inside square brackets"
victim_sex()
else:
return False
#---------------------------------
def exit():
print plus+"Total Passwords Created: %d" % len(passwd)
print star+"Writing Passwords to %s.pass !!!" % passfilename
for password in passwd:
passfile.write(password+"\n")
sys.exit(1)
try:
print "\n"
passwd = []
pass_file()
victim_name()
victim_sex()
exit()
except KeyboardInterrupt:
print "\n"
print minus+"Keyboard Interrupt"
exit()
#---------------------------------