Follow us on Twitter!
Understanding is the answer, hatred is the problem, and hackers are the slaves abused and destroyed in the process of peace online - Deshouleres
Wednesday, April 16, 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: 19
Guests Online: 17
Members Online: 2

Registered Members: 82807
Newest Member: Black Hawk
Latest Articles
View Thread

HellBound Hackers | Challenges | Timed Challenges

Author

Post Requests with Pyton (timed 2)


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
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:

Code

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)


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
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>Wink )

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 script

EDIT EDIT:

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


got i needed:



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

RE: Post Requests with Pyton (timed 2)

shadowls
You Like this!



Posts: 840
Location:
Joined: 07.12.06
Rank:
God
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


i41.tinypic.com/mjwz7t.jpg

Made by:agentmax69, but remastered by: KvK


Coffee
None None