Created
July 29, 2012 20:08
-
-
Save poizan42/3201591 to your computer and use it in GitHub Desktop.
javascript quine-bomb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a1="function a() { p='a1=\"'+a1.replace(/\\\\/g,'\\\\\\\\').replace(/\"/g,'\\\\\"')+'\"; a2=\"'+a2+'\";'+a1+a2;"; | |
a2="document.write('<script>' + p + '</'+'script>');document.write('<script>' + p + '</'+'script>')}a()"; | |
function a() { | |
p='a1="'+a1.replace(/\\/g,'\\\\').replace(/"/g,'\\"')+'"; a2="'+a2+'";'+a1+a2; | |
document.write('<script>' + p + '</'+'script>'); | |
document.write('<script>' + p + '</'+'script>') | |
}a() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment