Post Captain
- karma-fusebox
- Posts: 23
- Joined: Fri Mar 06, 2009 1:37 pm
Post Captain
just solved this one by simply using the infamous javascript/xsrf-thingy...
( http://www.hacker.org/forum/viewtopic.php?p=10478#10478 )
i think there is hardly any more ugly approach.. so what is the real way to POST data to websites?
( http://www.hacker.org/forum/viewtopic.php?p=10478#10478 )
i think there is hardly any more ugly approach.. so what is the real way to POST data to websites?
- karma-fusebox
- Posts: 23
- Joined: Fri Mar 06, 2009 1:37 pm
Doing it with curl probably would have been the easiest choice here, since it were only one line.
But I did it with a few lines of Python for my convenience:
Of course you would have to replace the x's with your submit pw, if you wanted to use it.
But I did it with a few lines of Python for my convenience:
Code: Select all
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib
url = "http://www.hacker.org/challenge/chal.php"
data = {"answer": "marmelade", "id": "27", "go": "Submit", "name": "PeterS", "spw": "xxxxxxxxxxxxxxxxxxxxxxxxxxx"}
print urllib.urlopen(url, urllib.urlencode(data)).read()
-
- Posts: 4
- Joined: Mon Oct 26, 2009 6:06 am
- Location: Las Vegas, NV
Ah, this challenge is so much easier using today's browsers, e.g. using Chrome's built-in developer tools: right-click the submit button, choose »Inspect Element«, double-click on the »GET« in the HTML code, write »POST«, press the submit button as usual.
The same probably applies for Firefox in combination with some web developer extensions.
The same probably applies for Firefox in combination with some web developer extensions.
-
- Posts: 17
- Joined: Thu Apr 21, 2011 3:08 am