Skip to main content

Module bash_parser

Module bash_parser 

Source

Constants§

SHELL_SPAWNING_COMMANDS
Commands that can execute arbitrary code passed as a string argument.

Functions§

assert_single_statement
Validate that command is a single top-level bash statement.
detect_allowlist_bypass
Return the deduplicated allowlist entries that make a code_writer allowlist bypassable (see SHELL_SPAWNING_COMMANDS).
extract_command_texts
Collect the full text of every command node in the script.