Join us at IRC!
Never in the field of human conflict was so much owed by so many to so few. - Winston Churchill
Friday, May 25, 2012
Navigation
Members Online
Total Online: 23
Web Spiders: 15
Guests Online: 22
Members Online: 1

Registered Members: 70208
Newest Member: andresuran
Latest Articles
View Thread

HellBound Hackers | Challenges | Timed Challenges

Author

Post Requests with Pyton (timed 2)

ninocass
Member



Posts: 45
Location: Ireland
Joined: 04.08.06
Rank:
God
Posted on 16-01-08 17:50
I have made a POST method in python for posting vars to a page here it is with some bits removed:


def postURL(url, values):
strSession = 'PHPSESSID=<BLAH>;fusion_user=<BLAH>'
dicH*****s = {'COOKIE': strSession}

req = urll***.Request(url, values, dicHeaders)
req.add_h****r('Referer', 'http://www.hellboundhackers.org/')
responce = urll***.urlopen(req)
the_page = responce.read()
return the_page


I can use this method to log into my blog, the returned content from the method is the admin view of the blog.

however when i try this on timed 2 i just get the initial page that displays the hash

any ideas?
Author

RE: Post Requests with Pyton (timed 2)

ninocass
Member



Posts: 45
Location: Ireland
Joined: 04.08.06
Rank:
God
Posted on 16-01-08 18:14
oh an im calling the method using

postURL("http://www.hellboundhackers.org/challenges/timed/timed2/index.php?","submit=Check&ans=" + logic(<blah>;) )

logic returns a string which is the answer

cheers for the help anyone im going mad!

EDIT:

I think the issue is to do with a get variable called "check" which is empty now sure how to include this in the python scblockedript

EDIT EDIT:

postURL("http://www.hellboundhackers.org/challenges/timed/timed2/index.php?check=","submit=Check&ans=" + logic(<blah>;) )


got i needed:



Edited by ninocass on 16-01-08 18:43
Author

RE: Post Requests with Pyton (timed 2)

shadowls
You Like this!



Posts: 836
Location: look behind you
Joined: 07.12.06
Rank:
Godlike
Posted on 04-03-08 02:05
every time i try to compile the code, i get an error. or am i supposed to compile it?


If you think my post are useful to you, please vote for them. Thank You


knowledge is powerful itself - SHADOWLS



Made by:agentmax69, but remastered by: KvK


Respects:
Mr_cheese
system_meltdown
rex
none none none www.google.com
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.