Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import urllib2
- session = ""
- req = urllib2.Request("http://www.wechall.net/challenge/training/programming1/index.php?action=request")
- req.add_header("Cookie", "WC="+session)
- str = urllib2.urlopen(req).read()
- req = urllib2.Request("http://www.wechall.net/challenge/training/programming1/index.php?answer=" + str)
- req.add_header("Cookie", "WC="+session)
- print urllib2.urlopen(req).read()
Advertisement
Add Comment
Please, Sign In to add comment