Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib, urllib2, time
- req = urllib2.Request("http://www.thisislegal.com/rand.php")
- code = urllib2.urlopen(req).readline()[39:48]
- req = urllib2.Request("http://www.thisislegal.com/challenge/p1&code="+code)
- session = "PHPSESSID=;TILSESSID="
- req.add_header("Cookie", session)
- urllib2.urlopen(req)
Advertisement
Add Comment
Please, Sign In to add comment