Skip to main content

Some Commands Require SUDO Privileges
Note
  • Some Operations May Be Blocked Due to Firewall Rules.
  • Outbound Traffic is usually Disallowed using HTTP (TCP/80) and HTTPS (TCP/443) Protocols.
  • The Default Ports that the Services use Down Below Might be Blocked Or Filtered by IDS - Firewall.
Note
  • Server - Basic Queries to setup a Running Server.
  • Target - These Operations should be done on the Victim Machine.
  • Interactive - We Log into a Remote Machine via RDP - SSH etc..
  • Non Interactive - Commands run in their own Subshell and this Shell is not Interactive. Opens to Execute but closes Immediately.

Python Web Server

:: Requires [uploadserver] Package
:: HTTP Server
python3 -m uploadserver

:: HTTPS Server
:: Create a Self-Signed Certificate
openssl req -x509 -out server.pem -keyout server.pem -newkey rsa:2048 -nodes -sha256 -subj '/CN=server'

:: Start the Web Server
mkdir https && cd https
python3 -m uploadserver 443 --server-certificate /<OPENSSL [server.pem] Location>


FTP

:: Requires [pyftpdlib] Package 
:: Start The Server
python3 -m pyftpdlib --port 21


NGINX

Uses Port 80 By Default

:: Create Directory to Handle Uploaded Files
mkdir -p /var/www/uploads/CustomUploadDirectory

:: Change the Owner to [www-data]
chown -R www-data:www-data /var/www/uploads/CustomUploadDirectory

:: Create Nginx Configuration File [Lookup Configuration Tab]


SCP

:: Copy Local File to the Remote System
scp -P 22 "<File Name>" <Username>@<IP>:/<Output>