Skip to content

Instantly share code, notes, and snippets.

View bartdenhoed's full-sized avatar

Bart den Hoed bartdenhoed

View GitHub Profile
@mccabe615
mccabe615 / phpdangerousfuncs.md
Last active July 24, 2024 07:20
Dangerous PHP Functions

Command Execution

exec           - Returns last line of commands output
passthru       - Passes commands output directly to the browser
system         - Passes commands output directly to the browser and returns last line
shell_exec     - Returns commands output
\`\` (backticks) - Same as shell_exec()
popen          - Opens read or write pipe to process of a command
proc_open      - Similar to popen() but greater degree of control
pcntl_exec - Executes a program