Linux


Sudo

sudo -l

Enumeration

Script

LinPeas

Linux Smart Enumeration

Metasploit

Docker

File

Classic

  • /etc/passwd & /etc/shadow

  • /www/html/var/www/srv/html/usr/share/*

  • /home/user/.ssh

  • /etc/cron.d

  • /opt/

  • /usr/local/bin

  • /etc/nginx/sites-available/default

  • /etc/apache2/sites-enabled/000-default.conf

Proc

/proc/ contains useful information about the processes that are currently running

directory
description

/proc/PID/cmdline

Command line arguments.

/proc/PID/cwd

Link to the current working directory.

/proc/PID/environ

Values of environment variables.

/proc/PID/exe

Link to the executable of this process.

/proc/PID/fd

Directory, which contains all file descriptors.

Command

Reverse Shell

Server

reSH

Source

Netcat

Mkfifo

Dev

Python

TTY Support

rlwrap

rlwrap is a 'readline wrapper', a small utility that uses the GNU Readline library to allow the editing of keyboard input for any command. For when you cannot spawn a proper TTY source

source

Privilege Escalation

FTP

Port: 21

File transfer protocol (FTP) is an Internet tool provided by TCP/IP. It helps to transfer files from one computer to another by providing access to directories or folders on remote computers

Scan

Download all files

Gdbserver

Port: 1337

Gdbserver is a computer program that makes it possible to remotely debug other programs. You need to have a copy of the program you want to debug put onto the target system.

Command Injection

GTFOBins - Bypass local security restrictions

Network

Netstat

Scan Port

Scan Ip

Port Forwarding

Chisel

SSH

SCP

Download File

Upload File

Upload peda

Last updated