Skip to content

Instantly share code, notes, and snippets.

View intersel's full-sized avatar
😸

EpopE intersel

😸
View GitHub Profile
@mccabe615
mccabe615 / phpdangerousfuncs.md
Last active September 20, 2025 11:00
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
@christianhanvey
christianhanvey / modx-snippets.php
Last active September 5, 2025 07:08
Useful snippets for MODX Revo
Snippet: [[SnippetName]]
Chunk: [[$ChunkName]]
System Setting: [[++SettingName]]
TV: [[*fieldName/TvName]]
Link tag: [[~PageId? &paramName=`value`]]
Placeholder: [[+PlaceholderName]]
<?php