Files
metasploit-gs/lib/msf/core/payload
jvoisin b7fff5926b Use php_preamble/php_system_block instead of system in payloads/singles/php/
The `php_preamble`/`php_system_block` combo has builtin low-hanging evasion for
PHP's `disabled_functions` configuration (eg. `system` might not be available
but `shell_exec` is), so use it instead of hardcoding `system`.

This commit also brings modules/payloads/singles/php/reverse_perl.rb's style
more in line with the other uses of `php_preamble`/`php_system_block`.

Oh, and it makes lib/msf/core/payload/php.rb work on older Ruby version as
well.

Co-authored-by: Valentin Lobstein <88535377+Chocapikk@users.noreply.github.com>
2024-09-18 12:40:55 +02:00
..
2021-01-05 14:59:46 +00:00
2020-12-07 10:31:45 +00:00
2020-12-07 10:31:45 +00:00
2024-01-06 15:54:49 -05:00
2020-12-07 10:31:45 +00:00
2024-01-10 16:19:21 -05:00
2020-12-07 10:31:45 +00:00
2024-01-06 15:54:49 -05:00
2024-01-06 15:54:49 -05:00
2024-01-06 15:54:49 -05:00
2020-12-07 10:31:45 +00:00
2020-12-07 10:31:45 +00:00
2022-11-05 15:42:45 -04:00
2020-12-07 10:31:45 +00:00
2020-12-07 10:31:45 +00:00
2020-12-07 10:31:45 +00:00