Advertisement
Guest User

Untitled

a guest
Apr 30th, 2014
588
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.23 KB | None | 0 0
  1. import requests,re
  2. d = {
  3.     "0":"50",
  4.     "1":"125",
  5.     "2":"115",
  6.     "3":"100",
  7.     "4":"50",
  8.     "5":"150",
  9.     "6":"150",
  10.     "7":"150",
  11.     "8":"175",
  12.     "9":"225",
  13.     "10":"250",
  14.     "11":"450",
  15.     "12":"200",
  16.     "13":"325",
  17.     "14":"350",
  18.     "15":"450",
  19.     "16":"470",
  20.     "17":"485",
  21.     "18":"500",
  22.     "19":"525",
  23.     "20":"500",
  24.     "21":"600",
  25.     "22":"800",
  26.     "23":"875",
  27.     "24":"2250",
  28.     "25":"2675",
  29.     "26":"2700",
  30.     "27":"2700",
  31.     "28":"2150",
  32.     "29":"2600",
  33.     "30":"2950",
  34.     "31":"3000",
  35.     "32":"2125",
  36.     "33":"2200",
  37.     "34":"2225",
  38.     "35":"3300",
  39.     "36":"1850",
  40.     "37":"1900",
  41.     "38":"2050",
  42.     "39":"2050",
  43.     "40":"275",
  44.     "41":"875",
  45.     "42":"875",
  46.     "43":"1000",
  47.     "44":"1750",
  48.     "45":"3300",
  49.     "46":"5050",
  50.     "47":"6200",
  51.     "48":"135",
  52.     "49":"200",
  53.     "50":"250",
  54.     "51":"325",
  55.     "52":"550",
  56.     "53":"1450",
  57.     "54":"1350",
  58.     "55":"1400",
  59.    
  60.    
  61. }
  62. url="http://challenges.wargame.vn/200-doto_8a89b5cb130e8e18259b1ec13595c39c/";
  63. cookie=dict(PHPSESSID='7fafttgg618sc2dl9tl3q4v216')
  64. for i in xrange(1,31):
  65.     r=requests.get(url,cookies=cookie)
  66.     print r.text
  67.     m = re.search('img src=\'items/(.+?)\.png\'', r.text)
  68.     payload = {'gold': d[m.group(1)]}
  69.     r=requests.post(url,data=payload,cookies=cookie)
  70.     print r.text
  71. #OK OK, your FLAG lah: 0x3004{wanna_play_doto_with_me?}.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement