Advertisement
inj3ctor_m4

Joomla & Wordpress Founder v1.0

Oct 1st, 2014
742
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.94 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. #[Python] Joomla & Wordpress Founder v1.0
  4. #By INJ3CTOR_M4 // facebook.com/H4ck19
  5. #Greets To : All Friend'z
  6.  
  7. import re, urllib, urllib2, os, sys
  8. from urlparse import urlparse
  9. from platform import system
  10.  
  11. if system() == 'Linux':
  12.     os.system('clear')
  13. if system() == 'Windows':
  14.     os.system('cls')
  15.  
  16. logo = '''
  17.    ____  _                ______           __    __            
  18.   / __ )(_)___  ____ _   / ____/________ _/ /_  / /_  ___  _____
  19.  / __  / / __ \/ __ `/  / / __/ ___/ __ `/ __ \/ __ \/ _ \/ ___/
  20. / /_/ / / / / / /_/ /  / /_/ / /  / /_/ / /_/ / /_/ /  __/ /  _
  21. /_____/_/_/ /_/\__, /   \____/_/   \__,_/_.___/_.___/\___/_/  (_)
  22.              /____/                                            
  23.  
  24. '''
  25.    
  26. def Bing_it(ip):
  27.     alllinks = []
  28.     i = 1
  29.     while (i <= 1000):
  30.         bing = urllib2.urlopen('http://www.bing.com/search?q='+urllib.quote_plus('ip:'+ip)+'&first='+str(i)).read()
  31.         if re.search('"sw_next"', bing):
  32.             urls = re.findall('<h2><a href="(.*?)"', bing)
  33.             for url in urls:
  34.                 url = urlparse(url)
  35.                 alllinks.append(url.scheme+"://"+url.netloc+"/")
  36.             i = i + 10
  37.         else:
  38.             urls = re.findall('<h2><a href="(.*?)"', bing)
  39.             for url in urls:
  40.                 url = urlparse(url)
  41.                 alllinks.append(url.scheme+"://"+url.netloc+"/")
  42.             break
  43.     final = list(set(alllinks))
  44.     print '\nFound : '+str(len(final))+' Unique Domain.'
  45.     script = raw_input("\nScript? # ")
  46.     if script == 'wordpress':
  47.         for url in final:
  48.             try:
  49.                 wpcheck = urllib2.urlopen(url+'wp-login.php').getcode()
  50.                 if wpcheck == 200:
  51.                     print (url)
  52.             except :
  53.                 pass
  54.     elif script == 'joomla':
  55.         for url in final:
  56.             try:
  57.                 jomcheck = urllib2.urlopen(url+'administrator/').read()
  58.                 if re.search('Joomla!', jomcheck):
  59.                     print (url)
  60.             except :
  61.                 pass
  62.  
  63. print (logo)
  64. try:
  65.     ip = sys.argv[1]
  66.     print '\n\n\t\t[+] Grabbing '+ip+' begun\n\n'
  67.     Bing_it(ip)
  68.  
  69. except IndexError:
  70.     print '\t\tUsage: python '+sys.argv[0]+' [127.0.0.1]\n'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement