Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos



Penetration Testing: Re: Password HTML form bruteforce

Re: Password HTML form bruteforce

From: Vladimir Parkhaev <vladimir_at_arobas.net>
Date: Fri, 19 Apr 2002 08:01:32 -0400

Quoting joh ket (johket_at_hotmail.com):
>
> So depending on the password I get redirected to a
> page...
>
> How should the primary and the secondary repsonse
> be configured?
>
> Or does somebody else have a better idea how to do
> this?
>

I always vote for rolling your own.... Here is a little skeleton script
that you can adapt to your needs depending on task in hand

#!/usr/bin/perl -w
use LWP::UserAgent;
use HTTP::Request::Common qw(POST);
use MIME::Base64 qw(encode_base64);
$|++;

$auth = 'Basic ' . encode_base64('foo:bar');
$ua = new LWP::UserAgent;

$req = POST 'http://server.domain.com', Authorization => $auth;
my $res = $ua->request($req);

($res->is_success)? print $res->as_string : die "Error: ", $res->status_line;
__END__

----------------------------------------------------------------------------
This list is provided by the SecurityFocus Security Intelligence Alert (SIA)
Service. For more information on SecurityFocus' SIA service which
automatically alerts you to the latest security vulnerabilities please see:
https://alerts.securityfocus.com/
Received on Apr 20 2002

[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]