Skip to main content
Commonmark migration
Source Link

Variable Aliasing

#Variable Aliasing ThisThis 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.

#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.

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.

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

#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.