Page 1 of 1

Cannot login into server using wget.. Please help!

Posted: Mon May 09, 2011 1:08 am
by mukanga
I tried so many ways so far but i can't login into the server to get some webpages..
For example, i tried

Code: Select all

wget --post-data="spw=[my_spw]&id=148"www.hacker.org/challenge/chal.php
But at the end of the downloaded page it says "not logged in". I don't understand.. :?
I also tried to post-data with username and password, and whit the get method but none of them worked..
Can somebody help me?

Posted: Mon May 09, 2011 1:32 am
by CodeX
Looking here it sounds like you still need the user parameter e.g.
user=CodeX&spw=18468048cbf2b488b312288937ec0687&id=119

Posted: Mon May 09, 2011 3:25 am
by mukanga
That way it doesn't work to. I've tried to use option --no-cookies --header "Cookie: (data)" and it finally worked :D

Thank you anyway