-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdork.py
139 lines (113 loc) · 3.59 KB
/
dork.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
# mengedit nama author dan mereupload nya tidak akan membuat mu jago kawan
# recode + reupload ntah dimana saja = lammer lo kntl, belajar makanya biar bisa
# coded by root@x-krypt0n-x
# 1 march - 10 march 2021
import sys
import time
import os
# custom speed strings
def slow(s):
for c in s + '\n' :
sys.stdout.write(c)
sys.stdout.flush()
time.sleep(4. / 100)
def med(s):
for c in s + '\n' :
sys.stdout.write(c)
sys.stdout.flush()
time.sleep(2. / 100)
def fast(s):
for c in s + '\n' :
sys.stdout.write(c)
sys.stdout.flush()
time.sleep(1. / 170)
try:
from googlesearch import search
except ImportError:
fast("[!] you mush install google ..")
med("[*] wait a moment, this program will install the module ...")
os.system("pip3 install google")
time.sleep(3)
med("[*] done ...")
def banner():
print("""
____ _ _ _____ _
| _ \ ___ _ __| | _(_)_ __ __ |_ _|__ ___ | |___
| | | |/ _ \| '__| |/ / | '_ \ / _` || |/ _ \ / _ \| / __|
| |_| | (_) | | | <| | | | | (_| || | (_) | (_) | \__ \\
|____/ \___/|_| |_|\_\_|_| |_|\__, ||_|\___/ \___/|_|___/
|___/
""")
def clear(): #clear function XD
if sys.platform.startswith('linux'):
os.system('clear')
elif sys.platform.startswith('freebsd'):
os.system('clear')
else:
os.system('cls')
# check python version
if sys.version.startswith("3"):
slow("[!] python3 detected ...")
time.sleep(3)
else:
slow("[x] you must be run using python3 ...")
time.sleep(3)
sys.exit(1)
# print starting XD
slow('[!] starting ... ')
time.sleep(2)
clear()
time.sleep(1)
banner()
med("""
===============================================================================
[*] coded by root@x-krypt0n-x [*]
[*] Copyright 2020 SystemOfPekalongan [*]
[*] just simple tools to make your life easier [*]
[*] Thanks to ArdiRNN, not heker, warwer, jeager [*]
[*] https://github.com/UnknownSec666 disuruh bang jeg nambahin link github [*]
===============================================================================""")
time.sleep(2)
try:
namefile = input("\n[?] want to save the dork result file (Y/N) ").strip()
dork = ("")
except KeyboardInterrupt:
print ("\n[!] you press ctrl + c")
time.sleep(0.5)
print("\n[!] exit")
sys.exit(1)
def savefile(namefile):
file = open((dork) + ".txt", "a")
file.write(str(namefile))
file.write("\n")
file.close()
if namefile.startswith("y" or "Y"):
print("[!] input filename without extension")
dork = input("[?] enter the file name : ")
savefile(namefile)
else:
print ("[*] file not saved \n")
def akhir():
try:
dork = input("\n[*] enter your dork : ")
uneed = input("[?] how much do you need : ")
print ("\n ")
requ = 0
for results in search(dork, tld="com", lang="en", num=int(uneed), start=0, stop=None, pause=2):
print ("[*]", results)
time.sleep(0.1)
requ += 1.
if requ >= int(uneed):
break
namefile = (results)
savefile(namefile)
time.sleep(0.1)
except KeyboardInterrupt:
print ("\n")
print ("[!] you press ctrl + c ... !")
print ("[!] exit ..")
time.sleep(0.5)
sys.exit(1)
slow("[!] done ... ")
sys.exit()
akhir()