Follow us on Twitter!
One mans freedom fighter, another's terrorist.
Friday, April 25, 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: 23
Guests Online: 19
Members Online: 4

Registered Members: 82906
Newest Member: ilija
Latest Articles
View Thread

HellBound Hackers | Challenges | Timed Challenges

Author

timed challenge in perl

clone4
Member



Posts: 586
Location: He is back and he's bad!
Joined: 25.11.07
Rank:
Mad User
Posted on 15-06-08 14:03
So i started to write some code to finish timed challenge 1. I've already got the code to get the b64 string, decrypt it and return it. Nothing tough, but now I've been stuck on one problem for quite a while; To access the timed challenges folder, you have to be logged in, so I wrote quite simple script to just post the info on the server :


use LWP::UserAgent;
use HTTP::Cookies;

$agent = LWP::UserAgent->new;
$agent->agent('Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.13) Gecko/0000000000 Mandriva/2.0.0.13-1.1mdv2008.0 (2008.0) Firefox/2.0.0.13');

my $request = HTTP::Request->new(POST => 'http://www.hellboundhackers.org/index.php');
$request->content_type('application/x-www-form-urlencoded');
$request->content('user_name=clone4&user_pass=tryme&login=Login');

$respond = $agent->request($request);
print $respond->as_string;



but I always get the infamous malformed request page... I've already tried 3 different modules ( including LWP::UserAgent, HTTP::Request and HTTP::Request::Common) and altered the code many times, but nothing worked so far, any ideas why I get the error page? Do I have to Include any other information in the POST request ?

Thanks for any help...


[img][/img]img164.imageshack.us/img164/5713/perlvl0.jpg

clone4.freehostia.com/ubuntu_3.png
spyware - "They see me trollin'..."
<yaragn> ever seen that movie? The Matrix?
<yaragn> with those green lines of flying text?
<yaragn> *THAT'S* Perl

clone_4@hotmail.com
Author

RE: timed challenge in perl

spyware
Member



Posts: 4192
Location:
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 15-06-08 14:04
Post a referer.



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
[center]�Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?� - Ebert[/ce
Author

RE: timed challenge in perl

clone4
Member



Posts: 586
Location: He is back and he's bad!
Joined: 25.11.07
Rank:
Mad User
Posted on 15-06-08 14:06
spyware wrote:
Post a referer.


I'll try that, thanks Smile


[img][/img]img164.imageshack.us/img164/5713/perlvl0.jpg

clone4.freehostia.com/ubuntu_3.png
spyware - "They see me trollin'..."
<yaragn> ever seen that movie? The Matrix?
<yaragn> with those green lines of flying text?
<yaragn> *THAT'S* Perl

clone_4@hotmail.com
Author

RE: timed challenge in perl

clone4
Member



Posts: 586
Location: He is back and he's bad!
Joined: 25.11.07
Rank:
Mad User
Posted on 15-06-08 14:22
moshbat wrote:
Why don't you just set your HBH cookie?


not sure what you mean....



[img][/img]img164.imageshack.us/img164/5713/perlvl0.jpg

clone4.freehostia.com/ubuntu_3.png
spyware - "They see me trollin'..."
<yaragn> ever seen that movie? The Matrix?
<yaragn> with those green lines of flying text?
<yaragn> *THAT'S* Perl

clone_4@hotmail.com
Author

RE: timed challenge in perl

spyware
Member



Posts: 4192
Location:
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 15-06-08 14:28
clone4 wrote:
not sure what you mean....


Think he means that you should check your header when you post in firefox, and copy that to perl.



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
[center]�Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?� - Ebert[/ce
Author

RE: timed challenge in perl


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 15-06-08 19:20
You don't need the browser, anyway you need to save the cookie.