12-21-2010, 07:24 PM
I'm trying to create a scanner , so check this :
With this :
$answer =~/([0-9a-f]{32}
I should get an md5 hash of the admin of course if it is vuln on the exploit that i have added !!
$host = $target . "/index.php?id=-999+exploit";
but i'm getting md5 hashes that doesnt exist , from vuln. sites and "not" vuln. sites !!!
Code:
$host = $target . "/index.php?id=-999+exploit1";
$res = $b->request(HTTP::Request->new(GET=>$host));
$answer = $res->content; if ($answer =~/([0-9a-f]{32})/){
print "[*] Results : $1\n";
print "**** Vulnerability found ! \n\n";
}
else{print "\n[-] Error\n";
}
$host = $target . "/index.php?id=-999+exploit2";
$res = $b->request(HTTP::Request->new(GET=>$host));
$answer = $res->content; if ($answer =~/([0-9a-f]{32})/){
print "[*] Results : $1\n";
print "**** Vulnerability found ! \n\n";
}
else{print "\n[-] Error\n";
}
With this :
$answer =~/([0-9a-f]{32}
I should get an md5 hash of the admin of course if it is vuln on the exploit that i have added !!
$host = $target . "/index.php?id=-999+exploit";
but i'm getting md5 hashes that doesnt exist , from vuln. sites and "not" vuln. sites !!!