Skip to content

Instantly share code, notes, and snippets.

@xenophy
Created December 18, 2011 00:25
Show Gist options
  • Save xenophy/1491909 to your computer and use it in GitHub Desktop.
Save xenophy/1491909 to your computer and use it in GitHub Desktop.
alert 'ABC' JavaScript Obfuscator Sample.
var _0xaaef=["\x6F","\x61","\x3D","\x69","\x68","\x5F","\x72","\x63","\x65","\x66","\x24","\x74","\x5D","\x78","\x38","\x5B","\x6D","\x41","\x53","\x43","\x64","\x72","\x67","\x6E",""],_0x1c81=[_0xaaef[-~-~[]*-~-~[]*-~-~[]-~{}]+_0xaaef[-~-~[]*-~-~[]-~{}-~{}]+_0xaaef[+[]]+_0xaaef[-~-~[]*-~-~[]*-~-~[]+-~-~[]-~{}+-~-~[]+-~-~[]-~{}]+_0xaaef[-~-~[]*-~-~[]*-~-~[]+-~-~[]-~{}-~{}+-~-~[]-~{}+-~-~[]-~{}-~{}]+_0xaaef[-~-~[]*-~-~[]]+_0xaaef[-~[]]+_0xaaef[-~-~[]*-~-~[]-~{}-~{}]+_0xaaef[-~-~[]*-~-~[]*-~-~[]+-~-~[]-~{}-~{}+-~-~[]-~{}+-~-~[]-~{}-~{}]+_0xaaef[+[]]+_0xaaef[-~-~[]*-~-~[]*-~-~[]+-~-~[]+-~-~[]-~{}+-~-~[]-~{}+-~-~[]-~{}-~{}]+_0xaaef[-~-~[]*-~-~[]*-~-~[]],_0xaaef[-~-~[]*-~-~[]*-~-~[]+-~-~[]-~{}+-~-~[]-~{}+-~-~[]-~{}-~{}]+_0xaaef[-~-~[]*-~-~[]*-~-~[]+-~-~[]-~{}]+_0xaaef[-~-~[]*-~-~[]*-~-~[]+-~-~[]+-~-~[]-~{}+-~-~[]+-~-~[]+-~-~[]+-~-~[]]+_0xaaef[-~-~[]-~{}]+_0xaaef[-~-~[]*-~-~[]*-~-~[]+-~-~[]+-~-~[]-~{}-~{}+-~-~[]-~{}+-~-~[]+-~-~[]+-~-~[]]+_0xaaef[-~-~[]*-~-~[]*-~-~[]+-~-~[]+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~{}])[_0x1c81[-~-~[]]](-~{})+(!!{}+_0x1c81[-~-~[]-~{}])[_0x1c81[-~-~[]]](-~-~[])+({}+_0x1c81[-~-~[]-~{}])[_0x1c81[-~-~[]]](-~-~[]*-~-~[]-~{})+(!!{}+_0x1c81[-~-~[]-~{}])[_0x1c81[-~-~[]]](+[])+({}+_0x1c81[-~-~[]-~{}])[_0x1c81[-~-~[]]](-~{})+(!!{}+_0x1c81[-~-~[]-~{}])[_0x1c81[-~-~[]]](-~{})][({}+_0x1c81[-~-~[]-~{}])[_0x1c81[-~-~[]]](-~-~[]*-~-~[]-~{})+({}+_0x1c81[-~-~[]-~{}])[_0x1c81[-~-~[]]](-~{})+({}.$+_0x1c81[-~-~[]-~{}])[_0x1c81[-~-~[]]](-~{})+(!{}+_0x1c81[-~-~[]-~{}])[_0x1c81[-~-~[]]](-~-~[]-~{})+(!!{}+_0x1c81[-~-~[]-~{}])[_0x1c81[-~-~[]]](+[])+(!!{}+_0x1c81[-~-~[]-~{}])[_0x1c81[-~-~[]]](-~{})+(!!{}+_0x1c81[-~-~[]-~{}])[_0x1c81[-~-~[]]](-~-~[])+({}+_0x1c81[-~-~[]-~{}])[_0x1c81[-~-~[]]](-~-~[]*-~-~[]-~{})+(!!{}+_0x1c81[-~-~[]-~{}])[_0x1c81[-~-~[]]](+[])+({}+_0x1c81[-~-~[]-~{}])[_0x1c81[-~-~[]]](-~{})+(!!{}+_0x1c81[-~-~[]-~{}])[_0x1c81[-~-~[]]](-~{})](_0x1c81[-~{}+-~-~[]*-~-~[]+-~-~[]-~{}]+_0x1c81[(-~[])]+_0x1c81[-~-~[]*-~-~[]]+(+[])+_0x1c81[-~-~[]*-~-~[]+-~-~[]-~{}]+(-~[])+_0x1c81[-~-~[]*-~-~[]+-~-~[]]+(-~[])+_0x1c81[-~{}+-~-~[]*-~-~[]+-~-~[]-~{}-~{}]+(+[])+_0x1c81[-~-~[]*-~-~[]+-~-~[]-~{}]+(+[])+_0x1c81[-~-~[]*-~-~[]-~{}]+";alert($$(-~-~[]*-~-~[]*-~-~[]*-~-~[]*-~-~[]*-~-~[]+-~-~[]+~{})+$$(-~-~[]*-~-~[]*-~-~[]*-~-~[]*-~-~[]*-~-~[]+-~-~[])+$$(-~-~[]*-~-~[]*-~-~[]*-~-~[]*-~-~[]*-~-~[]+-~-~[]-~{}));")()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment