Skip to content

Instantly share code, notes, and snippets.

@jfstenuit
Last active November 23, 2021 15:03
Show Gist options
  • Save jfstenuit/305be2bf83743c8c935afff7aaaf283b to your computer and use it in GitHub Desktop.
Save jfstenuit/305be2bf83743c8c935afff7aaaf283b to your computer and use it in GitHub Desktop.
How to unpack/unobfuscate <script>eval(function(p,a,c,k,e,d) ...

So you have an HTML file that starts with <script>eval(function(p,a,c,k,e,d) ...

This is quite heasy to de-obfuscate

Just replace the <script>eval( part with the following HTML code :

<!DOCTYPE html>
<html>
<head><title>debug</title>
</head>
<body>
 <textarea cols="80" rows="25" id="debug">
 </textarea>

<script type="text/javascript">
document.getElementById("debug").innerHTML=(

Close your code with :

 ;
</script>
</body>
</html> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment