Skip to main content
2 of 2
Commonmark migration

Variable Aliasing

This is probably one of the simplest yet (IMO) most important tricks to use, especially since it can reach so many languages.

Example:

print=alert;print("Hello World!") 

This will work in not only Javascript, but also Python, Ruby, etc. More examples later when I think of some others. Of course, comment suggestions/post edits are welcome.

Mama Fun Roll
  • 10k
  • 1
  • 38
  • 47