Connection

Client

VPN

openvpn <config file>.ovpn
openvpn --config <ovpn file> --auth-user-pass <creds file>    #creds are username and password separated by a line break

SSH

ssh <user>@<ip> -p <port>
ssh <user>@<ip> -i <path to private key>

Create a private key

ssh-keygen -t <rsa/dsa/ecsda> -f <file>
chmod 600 <file>

SCP

Transfer remote file or folder to local

scp <user>@<host>:<filepath> <local path>
scp -i <pkey> <user>@<host>:<filepath> <local path>
scp -r <user>@<host>:<folder> <local path>

Transfer local file or folder to remote

Transfer from remote to remote

HTTP

Generic Ports

If the connection is established but we're unable to execute commands try to manually invoke the shell command

File Download

Download

Download recursive

Useful when executing commands in limited shells\filtered inputs that don't allow "/". All files within the remote server's working folder will be transferred to the target without having to specify the full URLs

File Upload

POST upload

Server

Require impacketfor python 2/3. See https://github.com/SecureAuthCorp/impacket

HTTP

SimpleHttpServerWithFileUploads

FTP

SMB

Remote desktop

rdesktop

xfreerdp

VNC

Press F8 to use options such as copy between remote and local clipboard, send ctrl+alt+del to remote machine and remove popups

Last updated