Join us at IRC!
Understanding is the answer, hatred is the problem, and hackers are the slaves abused and destroyed in the process of peace online - Deshouleres
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

Possible ? Bash with wget and awk/sed

CBO
Member

Posts: 15
Location: Germany
Joined: 23.05.06
Rank:
HBH Guru
Posted on 22-03-10 13:28
Hi,

I have a general question about the times challanges. I wan't to finish them using only command line tools like wget, sed, awk etc.
This seems to be possible in terms of speed. But I have the problem I can't get wget to login correctly and save the cookie. Maybe someone of you can help me with this.

Heres what I do:
wget --save-cookies cookie.txt --post-data='user_name=CBO=&user_pass=******&login=Login' http://www.hellboundhackers.org/index.php --referer=http://www.hellboundhackers.org/index.php -U 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2) Firefox/3.6'

I wan't to save cookies in cookie.txt.
Then I want to login with this cookie using:
wget --load-cookies cookie.txt http://www.hellboundhackers.org/challenges/timed/timed1/index.php


But no luck, I don't get logged in. Maybe hbh itself doesn't allow to access it with something like lynx or wget ? Or do I have to use another syntax to achieve this goal.

thx indeed

P.S. I know using bash might be a crazy idea, but I'm a bashlover and for a poc it just works and can be done fast.


0xcb0.com
Author

RE: works

CBO
Member

Posts: 15
Location: Germany
Joined: 23.05.06
Rank:
HBH Guru
Posted on 22-03-10 13:49
Ok my POC works, I only had a typo in the post string I gave to wget.
Thanks indeed ;)


0xcb0.com
Author

RE: Possible ? Bash with wget and awk/sed

wolfmankurd
Member



Posts: 1519
Location: UK
Joined: 30.05.05
Rank:
God
Posted on 22-03-10 14:22
Any time.


BY READING MY POST, YOU ACCEPT IT AS IS AND AGREE TO MY DISCLAIMER OF ALL WARRANTIES, EXPRESS OR IMPLIED, AS WELL AS DISCLAIMERS OF ALL LIABILITY, DIRECT, INDIRECT, CONSEQUENTIAL OR INCIDENTAL, THAT MAY ARISE FROM THE USE OF THIS (MIS)INFORMATION.


Widowmakr@hotmail.com http://LetsHackStuff.com
Author

RE: Possible ? Bash with wget and awk/sed

986
Member



Posts: 45
Location: Hungary
Joined: 18.01.08
Rank:
Hacker Level 2
Posted on 02-11-10 16:10
My problem is in using wget too:

wget -O - \
--load-cookies /tmp/cookie \
--referer 'http://www.hellboundhackers.org/challenges/timed/timed9/index.php' \
--post-data 'answer=XY&submit=Answer%21' \
http://www.hellboundhackers.org/challenges/timed/timed9/index.php \
| w3m -T text/html


If i run this code, than the site detects my identity, so the cookies are OK, but i get the 'challange' instead of the 'wrong answer' page. Is my post-data right, or what's missing...? o_O
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.