Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Perl LWP

Name: Perl Help 2010-10-01 0:04

Okay, so I'm trying to submit the md5 hash to a website. the problem is that when I run it, instead of submitting the hash, the program is submitting some other data. How do I make it submit only the hash, am I parsing something wrong?
use HTTP::Request::Common qw(POST); 
use LWP::UserAgent;

$hash='098f6bcd4621d373cade4e832627b4f6';


 
$ua = LWP::UserAgent->new(); 
my $req = POST 'http://www.md5crack.com/crackmd5.php', [
 maxlength=> '2048',
 name=> 'term',
 size=>'55',
 title=>'md5 hash to crack',
 value=> 'test',
 name=>'crackbtn',
 type=>'submit',
 value=>'Crack that hash baby!',

];
$content = $ua->request($req)->as_string;

print "Content-type: text/html\n\n";
print $content;

Name: Anonymous 2010-10-01 0:30

0/10

Name: Anonymous 2010-10-01 0:42

$content = $ua->request($req)->as_string;
Lord ah God I hate Perl's bolted on objects

Also >>1-chan, you fail for lack of code tags and indentation?
No, I'm not gonna help you either, though I know what you are doing wrong.

Name: Anonymous 2010-10-01 0:49

You know what I'm doing wrong but you won't help because I didn't format the code... Is there a better way to define an asshole?

Name: Anonymous 2010-10-01 0:51

>>4
You must be new.

Name: Anonymous 2010-10-01 1:46

>>1
Why do you declare the $hash but never do anything with it?

Name: Anonymous 2010-10-01 3:24

>>4
You post code with absolutely no formatting... is there a better way to define a brain-damaged programmer?

Name: Anonymous 2010-10-01 3:25


 value=> 'test',
 value=>'Crack that hash baby!',


riiiiiiight.

>>3
You hate... what? There is nothing wrong with how LWP implements requests and it's pretty much the best way to do it in my opinion.

Name: Anonymous 2010-10-01 6:34

Damnit, I hoped all the dumb guys are alredy gone to python

Name: Anonymous 2010-10-01 7:29

alredy
python

IHBT.

Name: Anonymous 2010-10-01 10:54

>>10

Python. When your last chance is typo hunting.

Name: VIPPER 2010-10-02 12:53

JEWS

Don't change these.
Name: Email:
Entire Thread Thread List