Follow us on Twitter!
Few are those who can see with their own eyes and hear with their own hearts. - Albert Einstein
Monday, April 21, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 25
Guests Online: 22
Members Online: 3

Registered Members: 82857
Newest Member: varshith_kh
Latest Articles
View Thread

HellBound Hackers | Challenges | Timed Challenges

Author

help with 2


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 17-10-07 11:40
I have just started learning python and I need some help. I have the answer but I do not know how to submit it.

Is this the right path to go:
req = urllib2.Request(url,Answer,dicHeaders)

Edited by rex_mundi on 26-03-13 01:26
Author

RE: help with #2


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 17-10-07 11:45
Code
req = urllib2.Request('url',values)


Author

RE: help with #2

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 17-10-07 14:05
Code
req = urllib2.Request('url', values)




@Mitz You forgot a space.

And yes; it's important.



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net
Author

RE: help with #2


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 21-04-08 01:51
I might as well bump this as I'm in the exact same place now.

This is my current failure
Code

values = urllib.urlencode ({'ans' : total,
                            'submit' : 'Check',
                            })


req = urllib2.Request(url, values)
response = urllib2.urlopen(req)





And with that Im getting a malformed request asking me to make sure no referer spoofing applications are active




Author

RE: help with #2


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 21-04-08 02:13
stdio wrote:
And with that Im getting a malformed request asking me to make sure no referer spoofing applications are active


That is because you are not including a referer in your header of your request.

Other than that, why don't you use the opener that I showed you how to build?

Build it then:

Code
resp = opener.open("http://www.hellboundhackers.org/challenges/timed/timed2/index.php?check", data)




Where data is your urlencoded data (ans, submit).




Edited by on 21-04-08 02:25
Author

RE: help with #2


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 21-04-08 02:27
Thanks I actually was trying that first, but for some reason couldnt get it to work, so turned here and was using the older way.

Hopefully with a few modifications then I can get it working.

Edit: yeah I looked at my original attempt and was missing 2 things, both trivial and stupid. Thanks again for the help.




Edited by on 21-04-08 02:33