-
Notifications
You must be signed in to change notification settings - Fork 58
/
start.py
306 lines (282 loc) · 12.2 KB
/
start.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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
#!/usr/bin/python
import sys, time #"Preprocessor directives" because I'm used to C++
from subprocess import call
W = '\033[0m' # white (normal)
R = '\033[31m' # red
G = '\033[32m' # green #Variables for text colors. Saves me the trouble thank you!
O = '\033[33m' # orange
B = '\033[34m' # blue
P = '\033[35m' # purple
C = '\033[36m' # cyan
GR = '\033[37m' # gray
#Function for writing a D0x.
def dox():
print G + "Let's get started, shall we?" + W
print B + "If you don't know info, just leave a blank" + W
#First Name
name = raw_input("[>] First, give me a " + P + " FULL NAME: " + W)
text_file = open("Dox of %s" % name, 'a')
text_file.write("Name: %s" % name)
#Age
age = raw_input("[>] What is the " + P + "AGE " + W + "of this person? ")
text_file = open("Dox of %s" % name, 'a')
text_file.write("\nAge: %s" % age)
#Date of Birth
dob = raw_input("[>] What is the " + P + "DATE OF BIRTH?" + W + "(month/day/year): ")
text_file = open("Dox of %s" % name, 'a')
text_file.write("\nDate of Birth: %s" % dob)
#First Line of Address
faddress = raw_input("[>] Next, give me the first line of the " + P + "ADDRESS " + W + "(e.g 123-12 4th St.): ")
text_file = open("Dox of %s" % name, 'a')
text_file.write("\nFirst Line of Address: %s" % faddress)
#Second Line of Address
saddress = raw_input("[>] OK, if there is, give me a second line of the " + P + "ADDRESS " + W + "(e.g Apartment 4): ")
text_file = open("Dox of %s" % name, 'a')
text_file.write("\nSecond Line of Address: %s" % saddress)
#City and State
cands = raw_input("[>] OK, give me the " + P + "CITY and STATE " + W + "in this format: City, State Initials: ")
text_file = open("Dox of %s" % name, 'a')
text_file.write("\nCity and State: %s" % cands)
#ZIP Code
zipc = raw_input("[>] What's the " + P + "ZIP Code" + W + "? ")
text_file = open("Dox of %s" % name, 'a')
text_file.write("\nZIP Code: %s" % zipc)
#IPv4 Address
ipadd = raw_input("[>] Now, gimme the " + P + "IP address: " + W)
text_file = open("Dox of %s" % name, 'a')
text_file.write("\nIP Address: %s" % ipadd)
#Emails
print G + "This next part requires you to enter the emails of the victim. Once you are finished, enter " + R + "quit" + W
print B + "If you know the password, place in this format: " + GR + "user@email:password" + W
print B + "^ This applies for the Facebook, Twitter and Other Aliases! Please use account:password format!" + W
while True:
email = raw_input("[>] Give me an email! ")
if email == "quit":
break
else:
text_file = open("Dox of %s" % name, 'a')
text_file.write("\nEmail: %s" % email)
#Facebook
facebook = raw_input("[>] What about " + P + "Facebook? " + W + "Please give a link! ")
text_file = open("Dox of %s" % name, 'a')
text_file.write("\nFacebook: %s" % facebook)
#Twitter
twitter = raw_input("[>] Got " + P + "Twitter? " + W + "Please give a link! ")
text_file = open("Dox of %s" % name, 'a')
text_file.write("\nTwitter: %s" % twitter)
#Other aliases
print G + "OK if you got other aliases, such as LinkedIN, Instagram, Snapchat, Spotify, etc. you can also include!" + W
print B + "When you enter something, please format like so: Alias: user/link:optionalpassword" + W
print B + "Again, if you know the password, include that too! Enter" + R + "quit" + B + "when you are done!" + W
while True:
alias = raw_input("[>]")
if alias == "quit":
break
else:
text_file = open("Dox of %s" % name, 'a')
text_file.write("\n%s" % alias)
print G + "OK for this part, we will enter family information!" + W
print B + "If you choose not to, or you are done, again, enter " + R + "quit" + W
while True:
fam = raw_input("Choose (or quit): " + C + "\n[1]Mother\n[2]Father\n[3]Sibling\n[4]Other" + W + "\n[>]")
if fam == "quit":
break
elif fam == "1":
text_file = open("Dox of %s" % name, 'a')
text_file.write("\n\nINFORMATION OF MOTHER")
#Name
momname = raw_input("[>] What is the mother's " + P + "FULL NAME? " + W)
text_file.write("\nName of Mother: %s" % momname)
#Age
momage = raw_input("[>] What is the mother's " + P + "AGE? " + W)
text_file.write("\nAge of Mother: %s" % momage)
#DOB
dobmom = raw_input("[>] What is the mother's " + P + "DATE OF BIRTH? " + W + "(month/day/year): ")
text_file.write("\nDate of Birth of Mother: %s" % dobmom)
#Aliases
momfacebook = raw_input("[>] What about " + P + "Facebook? " + W + "Please give a link! ")
text_file.write("\nFacebook of Mother: %s" % momfacebook)
momtwitter = raw_input("[>] Got " + P + "Twitter? " + W + "Please give a link! ")
text_file.write("\nTwitter of Mother: %s" % momtwitter)
print G + "What other aliases, if available? Again, enter " + R + "quit" + W + "to exit."
while True:
momalias = raw_input("[>]")
if momalias == "quit":
break
else:
text_file = open("Dox of %s" % name, 'a')
text_file.write("\n%s" % momalias)
print "Any other members?"
elif fam == "2":
text_file = open("Dox of %s" % name, 'a')
text_file.write("\n\nINFORMATION OF FATHER")
#Name
dadname = raw_input("[>] What is the father's " + P + "FULL NAME? " + W)
text_file.write("\nName of Father: %s" % dadname)
#Age
dadage = raw_input("[>] What is the father's " + P + "AGE? " + W)
text_file.write("\nAge of Father: %s" % dadage)
#DOB
dobdad = raw_input("[>] What is the father's " + P + "DATE OF BIRTH? " + W + "(month/day/year): ")
text_file.write("\nDate of Birth of Father: %s" % dobdad)
#Aliases
dadfacebook = raw_input("[>] What about " + P + "Facebook? " + W + "Please give a link! ")
text_file.write("\nFacebook of Father: %s" % dadfacebook)
dadtwitter = raw_input("[>] Got " + P + "Twitter? " + W + "Please give a link! ")
text_file.write("\nTwitter of Father: %s" % dadtwitter)
print G + "What other aliases, if available? Again, enter " + R + "quit " + W + "to exit."
while True:
dadalias = raw_input("[>]")
if dadalias == "quit":
break
else:
text_file = open("Dox of %s" % name, 'a')
text_file.write("\n%s" % dadalias)
print "Any other members?"
elif fam == "3":
text_file = open("Dox of %s" % name, 'a')
text_file.write("\n\nINFORMATION OF SIBLING")
#Name
sibname = raw_input("[>] What is the sibling's " + P + "FULL NAME? " + W)
text_file.write("\nName of Sibling: %s" % sibname)
#Relationship
sibrel = raw_input("[>] What is the sibling's " + P + "RELATIONSHIP " + W + "to the victim? ")
text_file.write("\nRelationship to Victim: %s" % sibrel)
#Age
sibage = raw_input("[>] What is the sibling's " + P + "AGE? " + W)
text_file.write("\nAge of Sibling: %s" % sibage)
#DOB
dobsib = raw_input("[>] What is the sibling's " + P + "DATE OF BIRTH? " + W + "(month/day/year): ")
text_file.write("\nDate of Birth of Sibling: %s" % dobsib)
#Aliases
sibfacebook = raw_input("[>] What about " + P + "Facebook? " + W + "Please give a link! ")
text_file.write("\nFacebook of Sibling: %s" % sibfacebook)
sibtwitter = raw_input("[>] Got " + P + "Twitter? " + W + "Please give a link! ")
text_file.write("\nTwitter of Sibling: %s" % sibtwitter)
print G + "What other aliases, if available? Again, enter " + R + "quit " + W + "to exit."
while True:
sibalias = raw_input("[>]")
if sibalias == "quit":
break
else:
text_file = open("Dox of %s" % name, 'a')
text_file.write("\n%s" % sibalias)
print "Any other members?"
elif fam == "4":
text_file = open("Dox of %s" % name, 'a')
relofother = raw_input("[>] What is the relationship of this person to the vicim? ")
text_file.write("\n\nINFORMATION OF %s" % relofother)
#Name
othername = raw_input("[>] What is the person's " + P + "FULL NAME? " + W)
text_file.write("\nName of Person: %s" % othername)
#Age
otherage = raw_input("[>] What is the person's " + P + "AGE? " + W)
text_file.write("\nAge of Person: %s" % otherage)
#DOB
dobother = raw_input("[>] What is the person's " + P + "DATE OF BIRTH? " + W + "(month/day/year): ")
text_file.write("\nDate of Birth of Person: %s" % dobother)
#Aliases
otherfacebook = raw_input("[>] What about " + P + "Facebook? " + W + "Please give a link! ")
text_file.write("\nFacebook of Person: %s" % otherfacebook)
othertwitter = raw_input("[>] Got " + P + "Twitter? " + W + "Please give a link! ")
text_file.write("\nTwitter of Person: %s" % othertwitter)
print G + "What other aliases, if available? Again, enter " + R + "quit " + W + "to exit."
while True:
otheralias = raw_input("[>]")
if otheralias == "quit":
break
else:
text_file = open("Dox of %s" % name, 'a')
text_file.write("\n%s" % otheralias)
print "Any other members?"
print "OK, *whew* that was A LOT!"
print "Now, do you have any pictures or screenshots?"
while True:
pic = raw_input("\n[>] Paste the link here. Else, " + R + "quit: " + W)
if pic == "quit":
break
else:
text_file = open("Dox of %s" % name, 'a')
text_file.write("\nPictures/Screenshots: %s" % pic)
print "=========================================================="
print G + "That's it! Your D0x is complete. Check the folder where this program is contained." + W
print "=========================================================="
#Function for CUPP
def cupp():
try:
call(["chmod", "a+x", "cupp.py"])
print C + "----------------------------------------------------------------"
print "CUPP, or Common User Password Profiler, creates wordlists based"
print "on give information of a victim"
print "----------------------------------------------------------------" + W
time.sleep(5)
call(["./cupp.py","-i"])
except OSError:
help = input(R +"Something is missing. Consult Help? (y/n) " + W)
if help == "y":
call(["gedit", "help.txt"])
elif help == "n":
sys.exit()
#Function for theHarvester
def harvester():
try:
print C + "----------------------------------------------------------------"
print "TheHarvester is a Python script that utilizes popular search"
print "engines in order to pull out information of a specific target"
print "----------------------------------------------------------------" + W
time.sleep(5)
call(["./autoharvest.sh"])
except OSError:
help = input(R + "Something is missing. Consult Help? (y/n) " + W)
if help == "y":
call(["gedit", "help.txt"])
elif help == "n":
sys.exit()
#Function for NMap
def nmap():
try:
call(["chmod", "a+x", "autonmap.py"])
print C + "----------------------------------------------------------------"
print "NMap is an open-source tool for network exploration and security"
print "auditing. It is used to scan networks and systems"
print "----------------------------------------------------------------" + W
time.sleep(5)
call(["python", "autonmap.py"])
except OSError:
help = input(R + "Something is missing. Consult Help? (y/n) " + W)
if help == "y":
call(["gedit", "help.txt"])
elif help == "n":
sys.exit()
print G +" ========================================"
print" _____ ___ _ __ _ "
print" | __ \ / _ \ | | /_ | | "
print" | | | | | | |__ _| | _| | |_ "
print" | | | | | | \ \/ / |/ / | __|"
print" | |__| | |_| |> <| <| | |_ "
print" |_____/ \___//_/\_\_|\_\_|\__|"
print" "
print B + " Written By: ex0dus " + G
print" ======================================== " + W
print "[1] Write a D0x"
print "[2] Create a Wordlist using CUPP"
print "[3] Harvest Information"
print "[4] AutoNMap Menu"
print "[5] WTF is this? (aka Help)"
option = input(O +"[>] What do you want today? " + W)
if option == 1:
dox()
elif option == 2:
cupp()
elif option == 3:
harvester()
elif option == 4:
nmap()
elif option == 5:
print GR + "=========================================================="
print "Hello and welcome to D0xk1t. This is a tool I've created in python for the sole purpose of writing a D0x."
print "In the world of hacking, D0xing is viewed as script-kiddish AND illegal and harmful."
print "People often look down at those who write D0x. However, this tool is created not to harm."
print "Instead, it allows hackers and hacktivists to be able to practice their reconaissance and allow themselves and others to"
print "better protect themselves by not exposing too much of their information on the Internet."
print" ==========================================================" + W