hdarwin

wechall.net_Training: Programming 1

Dec 28th, 2012
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. #!/usr/bin/env python
  2. import urllib2
  3. session = ""
  4. req = urllib2.Request("http://www.wechall.net/challenge/training/programming1/index.php?action=request")
  5. req.add_header("Cookie", "WC="+session)
  6. str = urllib2.urlopen(req).read()
  7. req = urllib2.Request("http://www.wechall.net/challenge/training/programming1/index.php?answer=" + str)
  8. req.add_header("Cookie", "WC="+session)
  9. print urllib2.urlopen(req).read()
Advertisement
Add Comment
Please, Sign In to add comment