Sodamhan.com

TL;DR

nxc ssh

Pentest and exploit SSH servers. See also: hydra. More information: https://www.netexec.wiki/ssh-protocol.

  • Spray the specified password against a list of usernames on the specified target:

nxc ssh 192.168.178.2 -u path/to/usernames.txt -p password

  • Search for valid credentials by trying out every combination in the specified lists of usernames and passwords:

nxc ssh 192.168.178.2 -u path/to/usernames.txt -p path/to/passwords.txt

  • Use the specified private key for authentication, using the supplied password as the key’s passphrase:

nxc ssh 192.186.178.2 -u path/to/usernames.txt -p password --key-file path/to/id_rsa

  • Try a combination of username and password on a number of targets:

nxc ssh 192.168.178.0/24 -u username -p password

  • Check for sudo privileges on a successful login:

nxc ssh 192.168.178.2 -u username -p path/to/passwords.txt --sudo-check

This document was created using the contents of the tldr project.