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