ekasyahwan

JCE

Mar 30th, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.05 KB | None | 0 0
  1. import socket
  2. from urlparse import urlparse
  3. import  time, urllib2, re,  httplib
  4. #Coded By r0ckin
  5. #h4ckhouse.blogspot.com
  6. print 'Com_jce Server Scanner Coded By r0ckin     [email protected]'
  7. file2=open('jce.txt','a')
  8.  
  9.  
  10.  
  11. def check(site) :
  12.  try  :
  13.  
  14.   w  = urllib2.urlopen(site).read()
  15.  except urllib2.URLError, (err):
  16.               pass
  17.  except socket.error , v :
  18.             pass
  19.  except urllib2.HTTPError, err:
  20.           pass
  21.  except IOError, e:
  22.              pass
  23.  except httplib.IncompleteRead ,e:
  24.   pass
  25.  else :
  26.    if re.findall('Image Manager',w) :
  27.     ox=  urlparse(site)
  28.     print 'w00t ! ! Com_jce Found In   =>       ' + ox[1]
  29.     file2.write(ox[1]+'\n')
  30.    
  31. def xlol(site):
  32.         try:
  33.            
  34.             urllib2.urlopen(site)
  35.  
  36.         except urllib2.URLError, (err):
  37.               pass
  38.         except socket.error , v :
  39.             pass
  40.         except urllib2.HTTPError, err:
  41.           pass
  42.         except IOError, e:
  43.              pass
  44.         else:
  45.             check(site)
  46. def bing_it(ip):
  47.  
  48.      page  = 0
  49.      while(page <= 200):
  50.       try :
  51.           bing      = "http://www.bing.com/search?q=ip%3A"+ip+"+index.php?option=com_&first="+str(page)
  52.  
  53.           openbing  = urllib2.urlopen(bing)
  54.  
  55.           readbing = openbing.read()
  56.           findbing = re.findall('<div class="sb_tlst"><h3><a href="(.*?)" h=',readbing)
  57.  
  58.           for i in range(len(findbing)):
  59.               x=findbing[i]
  60.               global o
  61.               o=  urlparse(x)
  62.               y = o[2].replace('/index.php','')
  63.               print 'checking ' + o[1]
  64.               check('http://'+o[1]+y+'/index.php?option=com_jce&task=plugin&plugin=imgmanager&file=imgmanager&version=1576&cid=20')
  65.              
  66.  
  67.           page = page + 10
  68.       except httplib.IncompleteRead ,e:
  69.         pass  
  70.       except urllib2.URLError, (err):
  71.               pass
  72.       except socket.error , v :
  73.             pass
  74.       except urllib2.HTTPError, err:
  75.           pass
  76.       except IOError, e:
  77.              pass
  78.  
  79.  
  80. Xip = raw_input('IP :')
  81.  
  82. bing_it(Xip)
Add Comment
Please, Sign In to add comment