Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hhhrrrttt222111
GitHub Repository: hhhrrrttt222111/Dorkify
Path: blob/master/Modules/wordpress.py
810 views
1
import time
2
import sys
3
4
import core.search_url as search_url
5
import core.logo as logo
6
import core.colors as colors
7
import core.mods as mods
8
9
10
def wordpress():
11
12
def wp_menu():
13
global ch
14
mods.clear_screen()
15
logo.dorkify_logo()
16
17
print(f'''
18
CHOOSE OPTION :
19
20
{colors.bcolors.OKBLUE}[~]{colors.bcolors.ENDC} WP sites that are running the Wordfence WAF [1]
21
{colors.bcolors.OKBLUE}[~]{colors.bcolors.ENDC} Search for WP configuration files [2]
22
{colors.bcolors.OKBLUE}[~]{colors.bcolors.ENDC} Finds config files for MySQL, ABSPATH, WP [3]
23
{colors.bcolors.OKBLUE}[~]{colors.bcolors.ENDC} Search for backed-up database.sql files [4]
24
{colors.bcolors.OKBLUE}[~]{colors.bcolors.ENDC} Log information for vulnerable WP sites [5]
25
{colors.bcolors.OKBLUE}[~]{colors.bcolors.ENDC} Debug log in vulnerable WP sites [6]
26
{colors.bcolors.OKBLUE}[~]{colors.bcolors.ENDC} SQL dump files of WP sites [7]
27
{colors.bcolors.OKBLUE}[~]{colors.bcolors.ENDC} Webshell Upload. WordPress Levo-Slideshow [8]
28
{colors.bcolors.OKBLUE}[~]{colors.bcolors.ENDC} MAC OS X WP Information [9]
29
{colors.bcolors.OKBLUE}[~]{colors.bcolors.ENDC} wp-config Database password of vulnerable WP sites [10]
30
{colors.bcolors.OKBLUE}[~]{colors.bcolors.ENDC} Find vulnerable wp-config.php files [11]
31
{colors.bcolors.OKBLUE}[~]{colors.bcolors.ENDC} Search for misconfigured WP sites [12]
32
{colors.bcolors.OKBLUE}[~]{colors.bcolors.ENDC} Search for sensitive data, db in public folders [13]
33
34
''')
35
36
ch = int(input(" --> "))
37
print('\n\n')
38
39
wp_menu()
40
41
if ch == 1:
42
q = 'filetype:ini "wordfence"'
43
print('\n Searching...\n')
44
time.sleep(1)
45
search_url.url_search(q)
46
47
elif ch == 2:
48
q = 'intext:DB_PASSWORD || intext:"MySQL hostname" ext:txt'
49
print('\n Searching...\n')
50
time.sleep(1)
51
search_url.url_search(q)
52
53
elif ch == 3:
54
q = 'inurl:"-wp13.txt"'
55
print('\n Searching...\n')
56
time.sleep(1)
57
search_url.url_search(q)
58
59
elif ch == 4:
60
q = 'inurl:"/wp-content/wpclone-temp/wpclone_backup/"'
61
print('\n Searching...\n')
62
time.sleep(1)
63
search_url.url_search(q)
64
65
elif ch == 5:
66
q = 'inurl:log -intext:log ext:log inurl:wp-'
67
print('\n Searching...\n')
68
time.sleep(1)
69
search_url.url_search(q)
70
71
elif ch == 6:
72
q = 'inurl:wp-content/debug.log'
73
print('\n Searching...\n')
74
time.sleep(1)
75
search_url.url_search(q)
76
77
elif ch == 7:
78
q = 'filetype:sql intext:wp_users phpmyadmin'
79
print('\n Searching...\n')
80
time.sleep(1)
81
search_url.url_search(q)
82
83
elif ch == 8:
84
q = 'inurl:"/wp-content/uploads/levoslideshow/"'
85
print('\n Searching...\n')
86
time.sleep(1)
87
search_url.url_search(q)
88
89
elif ch == 9:
90
q = 'intitle:Index of /__MACOSX'
91
print('\n Searching...\n')
92
time.sleep(1)
93
search_url.url_search(q)
94
95
elif ch == 10:
96
q = '''inurl:wp-config -intext:wp-config "'DB_PASSWORD'"'''
97
print('\n Searching...\n')
98
time.sleep(1)
99
search_url.url_search(q)
100
101
elif ch == 11:
102
q = 'inurl:wp-admin/admin-ajax.php inurl:wp-config.php'
103
print('\n Searching...\n')
104
time.sleep(1)
105
search_url.url_search(q)
106
107
elif ch == 12:
108
q = 'inurl:wp-admin/ intext:css/'
109
print('\n Searching...\n')
110
time.sleep(1)
111
search_url.url_search(q)
112
113
elif ch == 13:
114
q = 'inurl:/wp-content/wpbackitup_backups'
115
print('\n Searching...\n')
116
time.sleep(1)
117
search_url.url_search(q)
118
119
else:
120
print('INVALID OPTION \n TRY AGAIN')
121
sys.exit()
122
123
124