Advertisement
dr-iman

Wp Job Manager Mass Scanner

Jun 13th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.16 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. import urllib2
  4. import sys
  5. import re
  6. import os
  7.  
  8.  
  9. wp_sites = []
  10. file = ""
  11.  
  12.  
  13. def unique(seq):
  14.     seen = set()
  15.     return [seen.add(x) or x for x in seq if x not in seen]
  16.  
  17.  
  18. def scan(url):
  19.     try:
  20.         print "Scanning !!! : "+str(url)
  21.         tester = urllib2.urlopen(str(url)+"/post-a-job/").read()
  22.         if('<form action="/post-a-job/" method="post" id="submit-job-form" class="job-manager-form" enctype="multipart/form-data">' in tester):
  23.             print "  Vuln => : "+str(url)+"/post-a-job/"
  24.             with open("Results.txt", "a") as f:
  25.                 f.write(url+"\n")
  26.     except:
  27.         pass
  28.  
  29. #Main
  30. try:
  31.     file = open(sys.argv[1]).readlines()
  32. except :
  33.     print "Usage : "+str(sys.argv[0])+" Exploit.py x.txt"
  34.     sys.exit(1)
  35. _=os.system("cls") , os.system('color c')
  36. print '''
  37.  
  38. __    __                                                      
  39. / / /\ \ \_ __         ###########################                                        
  40. \ \/  \/ / '_ \       # Developer : DR-IMAN     #                                
  41. \ /\ /| |_) |       # Site : Guardiran.org    #                                  
  42.  \/  \/ | .__/        # Tel : DarkCod3r         #                            
  43.         |_|           ###########################                                        
  44.   __        _                                                
  45.   \ \ ___ | |__     /\/\  __ _ _ __   __ _  __ _  ___ _ __  
  46.    \ \/ _ \| '_ \  /    \ / _` | '_ \ / _` |/ _` |/ _ \ '__|
  47. /\_/ / (_) | |_) | / /\/\ \ (_| | | | | (_| | (_| |  __/ |    
  48. \___/ \___/|_.__/  \/    \/\__,_|_| |_|\__,_|\__, |\___|_|    
  49.                                              |___/            
  50.   __            _       _ _                                  
  51.  /__\_  ___ __ | | ___ (_) |_ ___ _ __                        
  52. /_\ \ \/ / '_ \| |/ _ \| | __/ _ \ '__|                      
  53. //__  >  <| |_) | | (_) | | ||  __/ |                          
  54. \__/ /_/\_\ .__/|_|\___/|_|\__\___|_|                          
  55.          |_|                                                                  
  56.        
  57.         '''
  58. if(len(file) > 0):
  59.    
  60.    
  61.     for s in file:
  62.         s = s.rstrip()
  63.         scan(s)
  64.    
  65.    
  66.        
  67. print "Scan Result On Results.txt !"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement