Join us at IRC!
It is the path of least resistance that makes rivers and men crooked. - Bj Palmer
Friday, May 25, 2012
Navigation
Members Online
Total Online: 39
Web Spiders: 16
Guests Online: 36
Members Online: 3

Registered Members: 70217
Newest Member: HyperFang8
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:
God
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 scblockedript 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]


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: 4190
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 15-06-08 14:04
Post a referer.




"The chowner of property." - Zeph
“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
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
http://bitsofspy.net
Author

RE: timed challenge in perl

clone4
Member



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


I'll try that, thanks :)


[img][/img]


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:
God
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]


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: 4190
Location: The Netherlands
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.




"The chowner of property." - Zeph
“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
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
http://bitsofspy.net
Author

RE: timed challenge in perl

rumburak
Member

Posts: 47
Location:
Joined: 24.07.07
Rank:
Elite
Posted on 15-06-08 19:20
You don't need the browser, anyway you need to save the cookie.
rumburak.biz
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.