Skip to content

Commit 266f19c

Browse files
committed
Extract Domain from DorksURL
1 parent 7bf626e commit 266f19c

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

common/vx_dorks.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import random
55
from common.colors import run,W,end,good,bad,que,info,bannerblue
66
from common.vxrequest import getrequest as vulnxget
7+
from common.uri_converter import parsing_url as parsify
78
wp_contentdorks = {
89
'blaze' : 'inurl:"/wp-content/plugins/blaze-slide-show-for-wordpress/"',
910
'catpro' : 'inurl:"/wp-content/plugins/wp-catpro/"',
@@ -94,38 +95,43 @@ def WP_dorksconditions(exploitname,response):
9495
if web not in webs:
9596
webs.append(web)
9697
for i in range(len(webs)):
97-
print (' %s URL : %s ' %(good , webs[i]))
98+
print (' %s URL : %s ' %(good , webs[i]))
99+
print (' %s DOMAIN: %s ' %(good , parsify(webs[i])))
98100
elif exploitname in wp_admindorks:
99101
dorks = re.findall(re.compile(r'https?://+?\w+?[a-zA-Z0-9-_.]+?[a-zA-Z0-9-_.]?\w+\.\w+/?/wp-admin/\w+'),response)
100102
if len(dorks) > 0:
101103
for web in dorks:
102104
if web not in webs:
103105
webs.append(web)
104106
for i in range(len(webs)):
105-
print (' %s URL : %s ' %(good , webs[i]))
107+
print (' %s URL : %s ' %(good , webs[i]))
108+
print (' %s DOMAIN: %s ' %(good , parsify(webs[i])))
106109
elif exploitname in wpajx:
107110
dorks = re.findall(re.compile(r'https?://+?\w+?[a-zA-Z0-9-_.]+?[a-zA-Z0-9-_.]?\w+\.\w+/?/jm-ajax/upload_file/'),response)
108111
if len(dorks) > 0:
109112
for web in dorks:
110113
if web not in webs:
111114
webs.append(web)
112115
for i in range(len(webs)):
113-
print (' %s URL : %s ' %(good , webs[i]))
116+
print (' %s URL : %s ' %(good , webs[i]))
117+
print (' %s DOMAIN: %s ' %(good , parsify(webs[i])))
114118
elif exploitname in wpindex:
115119
dorks = re.findall(re.compile(r'https?://+?\w+?[a-zA-Z0-9-_.]+?[a-zA-Z0-9-_.]?\w+\.\w+/index.php/wp-json/wp/'),response)
116120
if len(dorks) > 0:
117121
for web in dorks:
118122
if web not in webs:
119123
webs.append(web)
120124
for i in range(len(webs)):
121-
print (' %s URL : %s ' %(good , webs[i]))
125+
print (' %s URL : %s ' %(good , webs[i]))
126+
print (' %s DOMAIN: %s ' %(good , parsify(webs[i])))
122127
elif exploitname in joomla:
123128
dorks = re.findall(re.compile(r'https?://+?\w+?[a-zA-Z0-9-_.]+?[a-zA-Z0-9-_.]?\w+\.\w+/index.php?option=com_jce'),response)
124129
if len(dorks) > 0:
125130
for web in dorks:
126131
if web not in webs:
127132
webs.append(web)
128133
for i in range(len(webs)):
129-
print (' %s URL : %s ' %(good , webs[i]))
134+
print (' %s URL : %s ' %(good , webs[i]))
135+
print (' %s DOMAIN: %s ' %(good , parsify(webs[i])))
130136
else:
131137
print(' %s No URL founds' %(bad))

0 commit comments

Comments
 (0)