SHARE
TWEET

Untitled

a guest Aug 12th, 2016 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Index: scripts/2011/default_ssh_credentials.nasl
  2. ===================================================================
  3. --- scripts/2011/default_ssh_credentials.nasl   (Revision 3827)
  4. +++ scripts/2011/default_ssh_credentials.nasl   (Arbeitskopie)
  5. @@ -68,9 +68,22 @@
  6.  
  7.  if( ! soc = open_sock_tcp( port ) ) exit( 0 );
  8.  
  9. -user = rand_str( length:8 );
  10. -pass = rand_str( length:8 );
  11. +banner = ssh_hack_get_server_version( socket:soc );
  12.  
  13. +if( "cisco" >< tolower( banner ) )
  14. +{
  15. +  user = "Anonymous";
  16. +  pass = "";
  17. +}
  18. +else
  19. +{
  20. +  user = rand_str( length:8 );
  21. +  pass = rand_str( length:8 );
  22. +}
  23. +
  24. +close( soc );
  25. +if( ! soc = open_sock_tcp( port ) ) exit( 0 );
  26. +
  27.  login = ssh_login( socket:soc, login:user, password:pass, pub:NULL, priv:NULL, passphrase:NULL );
  28.  
  29.  if( login == 0 )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top