Skip to content

Instantly share code, notes, and snippets.

@JavaScript-Packer
Created April 29, 2015 04:50
Show Gist options
  • Select an option

  • Save JavaScript-Packer/b7064f43cabefdca8e40 to your computer and use it in GitHub Desktop.

Select an option

Save JavaScript-Packer/b7064f43cabefdca8e40 to your computer and use it in GitHub Desktop.
Pass a command to function that can be easily obfuscated
var code = " alert( 'ScriptCompress.com' ); ";
var command="eval"; //command="\x65val";
function runner( Δ, ǃ ) { \u0065v\u0061l( ǃ )( Δ ) };
runner( code, command );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment