Skip to content

Commit

Permalink
Extract Domain from DorksURL
Browse files Browse the repository at this point in the history
  • Loading branch information
anouarbensaad committed May 26, 2019
1 parent 7bf626e commit 266f19c
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions common/vx_dorks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import random
from common.colors import run,W,end,good,bad,que,info,bannerblue
from common.vxrequest import getrequest as vulnxget
from common.uri_converter import parsing_url as parsify
wp_contentdorks = {
'blaze' : 'inurl:"/wp-content/plugins/blaze-slide-show-for-wordpress/"',
'catpro' : 'inurl:"/wp-content/plugins/wp-catpro/"',
Expand Down Expand Up @@ -94,38 +95,43 @@ def WP_dorksconditions(exploitname,response):
if web not in webs:
webs.append(web)
for i in range(len(webs)):
print (' %s URL : %s ' %(good , webs[i]))
print (' %s URL : %s ' %(good , webs[i]))
print (' %s DOMAIN: %s ' %(good , parsify(webs[i])))
elif exploitname in wp_admindorks:
dorks = re.findall(re.compile(r'https?://+?\w+?[a-zA-Z0-9-_.]+?[a-zA-Z0-9-_.]?\w+\.\w+/?/wp-admin/\w+'),response)
if len(dorks) > 0:
for web in dorks:
if web not in webs:
webs.append(web)
for i in range(len(webs)):
print (' %s URL : %s ' %(good , webs[i]))
print (' %s URL : %s ' %(good , webs[i]))
print (' %s DOMAIN: %s ' %(good , parsify(webs[i])))
elif exploitname in wpajx:
dorks = re.findall(re.compile(r'https?://+?\w+?[a-zA-Z0-9-_.]+?[a-zA-Z0-9-_.]?\w+\.\w+/?/jm-ajax/upload_file/'),response)
if len(dorks) > 0:
for web in dorks:
if web not in webs:
webs.append(web)
for i in range(len(webs)):
print (' %s URL : %s ' %(good , webs[i]))
print (' %s URL : %s ' %(good , webs[i]))
print (' %s DOMAIN: %s ' %(good , parsify(webs[i])))
elif exploitname in wpindex:
dorks = re.findall(re.compile(r'https?://+?\w+?[a-zA-Z0-9-_.]+?[a-zA-Z0-9-_.]?\w+\.\w+/index.php/wp-json/wp/'),response)
if len(dorks) > 0:
for web in dorks:
if web not in webs:
webs.append(web)
for i in range(len(webs)):
print (' %s URL : %s ' %(good , webs[i]))
print (' %s URL : %s ' %(good , webs[i]))
print (' %s DOMAIN: %s ' %(good , parsify(webs[i])))
elif exploitname in joomla:
dorks = re.findall(re.compile(r'https?://+?\w+?[a-zA-Z0-9-_.]+?[a-zA-Z0-9-_.]?\w+\.\w+/index.php?option=com_jce'),response)
if len(dorks) > 0:
for web in dorks:
if web not in webs:
webs.append(web)
for i in range(len(webs)):
print (' %s URL : %s ' %(good , webs[i]))
print (' %s URL : %s ' %(good , webs[i]))
print (' %s DOMAIN: %s ' %(good , parsify(webs[i])))
else:
print(' %s No URL founds' %(bad))

0 comments on commit 266f19c

Please sign in to comment.