Skip to content

Latest commit

History

History
54 lines (39 loc) 路 1.05 KB

File metadata and controls

54 lines (39 loc) 路 1.05 KB

馃搨 Simple-PHP-Web-Shell

https://github.com/artyuum/Simple-PHP-Web-Shell/blob/master/index.php

馃搨 PHP HTTP Server

php -S <host ip>:<port>

馃搨 phpinfo

disable_functions = disabled commands

system
exec
shell_exec
passthru
popen
proc_open
pcntl_exec

馃搨 upload-bypasses

https://github.com/six2dez/pentest-book/blob/master/enumeration/web/upload-bypasses.md

We can attempt to upload the .htaccess file to configure the server to execute our custom file extensions as PHP scripts.

# The uploaded file may not be visible in the upload directory.
echo "AddType application/x-httpd-php <custom file extension>" > .htaccess
# example
echo "AddType application/x-httpd-php .abc" > .htaccess

馃搨 Single-file PHP shell

Combine bypass, such as phar

https://github.com/flozz/p0wny-shell/tree/master

馃搨 Joomla webshell plugin for RCE

https://github.com/p0dalirius/Joomla-webshell-plugin