Command Injections Module Cheat Sheet
Command Injections Module Cheat Sheet
CHEAT SHEET
Injection Operators
Linux
Filtered Character Bypass
Code Description
Spaces
${IFS} Will be replaced with a space and a tab. Cannot be used in sub-shells (i.e. $())
Other Characters
Code Description
Character Insertion
$@ or \ Linux only
Case Manipulation
Reversed Commands
Encoded Commands
echo -n 'cat /etc/passwd | grep 33' | base64 Encode a string with base64
Windows
Filtered Character Bypass
Code Description
Spaces
Other Characters
Code Description
Character Insertion
^ Windows
only (CMD)
Case Manipulation
Reversed Commands
Encoded Commands
[Convert]::ToBase64String([System.Text.Encoding]::Unicode.GetBytes('whoami')) Encode a
string with
base64