Show Menu
Cheatography

Offensive Penetration Testing [OSCP] cert prep Cheat Sheet (DRAFT) by

a range of techniques and tools necessary for pentesting and preparing for certifications like the OSCP exam.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

file/d­ire­ctory paths in linux

Path
Descri­ption
/
Root directory
/home
Home direct­ories for users
/root
Home directory for the root user
/etc
System config­uration files
/bin, /sbin
System binaries
/usr/bin, /usr/sbin
User-i­nst­alled binaries
/var/log
System and applic­ation logs
/var/tmp
Temporary files that persist after a reboot
/var/w­ww/html
Default Apache web root directory
/dev
Device files (e.g., /dev/null, /dev/sda)
/lib, /lib64
Shared libraries
/boot
Bootloader and kernel­-re­lated files
/mnt, /media
Mounted drives and removable media
/proc
Virtual file system for system processes
/sys
Kernel­-re­lated virtual filesystem
/tmp
Temporary files (cleared on reboot)
~/.ssh
SSH config­uration files and keys
/etc/p­asswd
User account inform­ation
/etc/s­hadow
Encrypted password storage (root access required)
/etc/hosts
Local DNS resolution file
/etc/h­ostname
System hostname config­uration
/etc/n­etw­ork­/in­ter­faces
Network interface config­uration (Debia­n-based systems)
/etc/r­eso­lv.conf
DNS resolver config­uration
/etc/fstab
Filesystem mount inform­ation

the command line

sudo apt update
update package lists
sudo apt upgrade -y
upgrade installed packages
sudo apt install <pa­cka­ge>
install a package
sudo systemctl restart <se­rvi­ce>
restart a service
sudo systemctl enable <se­rvi­ce>
enable service at boot
passwd <us­er>
change password
shutdown -h now
shut down system immedi­ately
reboot
reboot the system