DECOMPRESS JAVASCRIPT
A typical JavaScript compressed with /packer/ starts with the following code:
`eval(function(p,a,c,k,e,r)`…
`eval` can simply be replaced by alert.
The eval
function evaluates a string argument that contains JavaScript. In most packers, eval
is used, followed by document.write
.
To decompress JavaScript, replace these methods by one of the following:
1. Replace eval
by alert
(The alert will simply print the code in a popup-window)
2. If the JavaScript appears after the <body>
element, you can add a <textarea>
like so:
`<textarea id="code"></textarea>`
Then, replace eval
(…); by document.getElementById("code").value=…;.