Advertisement
matrixcoder

WPscan multi

Sep 11th, 2014
745
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.36 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. #  >>>>>>>>> bismallah <<<<<<<<<<
  4. # Coded by MatriX Coder | [email protected]
  5. # You are free to edit my code and to remove my rights :D
  6. # But it won't make you the coder
  7. # Greetz to fallega team | www.dev-tun.tn
  8.  
  9. '''
  10. this is simple script that
  11. enables multi scan in wpscan
  12. '''
  13.  
  14. import sys , os , subprocess
  15. from platform import system
  16.  
  17. if system() == 'Linux':
  18.     os.system('clear')
  19. if system() == 'Windows':
  20.     os.system('cls')
  21.    
  22. logo = '''
  23.  
  24. _       ______                      
  25. | |     / / __ \______________ _____    | ----| WPscan Multi |----
  26. | | /| / / /_/ / ___/ ___/ __ `/ __ \  | Author : MatriX Coder
  27. | |/ |/ / ____(__  ) /__/ /_/ / / / /   | FB : www.fb.com/matrixcoder2
  28. |__/|__/_/   /____/\___/\__,_/_/ /_/    | Blog : www.matrixcoder.co.vu
  29.                                    
  30. '''
  31.  
  32. # checks if wpscan.rb exists
  33. s = os.path.isfile('wpscan.rb')
  34. if not s == True:
  35.     print 'wpscan.rb not found check it please !'
  36.     exit()
  37.  
  38. print logo
  39.  
  40. try:
  41.     def lob(site):
  42.         site = site.rstrip()
  43.         scansite = 'ruby wpscan.rb --url %s' % site
  44.         p = subprocess.Popen(scansite, shell=True, stderr=subprocess.PIPE)
  45.         out = p.stderr.read(1)
  46.         print out
  47.        
  48.     file1 = open(sys.argv[1] , 'r')
  49.     sites = file1.readlines()
  50.     for site in sites:
  51.         lob(site)
  52.  
  53. except IndexError:
  54.     print "[*] Usage : python "+sys.argv[0]+" wp.txt"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement