MCPcopy Index your code
hub / github.com/jaykali/hackerpro / wppluginscan

Function wppluginscan

hackerpro.py:490–521  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

488
489
490def wppluginscan():
491 Notfound = [404, 401, 400, 403, 406, 301]
492 sitesfile = raw_input("sites file : ")
493 filepath = raw_input("Plugins File : ")
494
495 def scan(site, dir):
496 global resp
497 try:
498 conn = httplib.HTTPConnection(site)
499 conn.request('HEAD', "/wp-content/plugins/" + dir)
500 resp = conn.getresponse().status
501 except(), message:
502 print "Cant Connect :", message
503 pass
504
505 def timer():
506 now = time.localtime(time.time())
507 return time.asctime(now)
508
509 def main():
510 sites = open(sitesfile).readlines()
511 plugins = open(filepath).readlines()
512 for site in sites:
513 site = site.rstrip()
514 for plugin in plugins:
515 plugin = plugin.rstrip()
516 scan(site, plugin)
517 if resp not in Notfound:
518 print "+----------------------------------------+"
519 print "| current site :" + site
520 print "| Found Plugin : " + plugin
521 print "| Result:", resp
522
523
524def sqlmap():

Callers 1

webhackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected