flozz / p0wny-shell

Single-file PHP shell
https://blog.flozz.fr/2020/01/21/p0wny-shell-un-shell-php-simple-mais-trop-efficace/
Do What The F*ck You Want To Public License
2.18k stars 638 forks source link

Select a working execution function if disabled functions are present #32

Closed cli-ish closed 1 year ago

cli-ish commented 1 year ago

I just read the README.md file which says that every PR should have a issue before it is created. Since I have already created the PR, I will still explain why this is a good improvement.

Some servers disable functions for security reasons, but leave some open because they don`t know them or use only certain functions. For these cases, the exec function could be blocked, but shell_exec could be allowed. So the idea would be to go through a list of possible aqiuvalente so that we can still execute commands.

My PR https://github.com/flozz/p0wny-shell/pull/31

Again i am sorry, that i did the order wrong :)

flozz commented 1 year ago

Thank you for this improvement, you are right it is a very good idea to test multiple way to run commands :)

Again i am sorry, that i did the order wrong :)

no problem ;)

flozz commented 1 year ago

The PR was merged and released as v2023.05.10 :)