Skip to content

Instantly share code, notes, and snippets.

@JavaScript-Packer
Last active December 23, 2018 11:24
Show Gist options
  • Select an option

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

Select an option

Save JavaScript-Packer/d82363449e055a5f0507 to your computer and use it in GitHub Desktop.
Turned/reversed the unpacker for WHAK compression algorithm and made it into a HTML entities encoder - http://www.whak.ca/packer/JavaScript.htm
var W,H,A,K;
H ="& < > " 
 '"[$="split"](" ");
A ="&<>\"\n'";W='<script>alert("www.WHAK.com");<\/script>';
K =0;for(K in A)W=W[$](A[K]).join(H[K]);alert(W);
@JavaScript-Packer

Copy link
Copy Markdown
Author

Minified

function HTM(W,H,A,K){H="&amp; &lt; &gt; &#34; &#10; &#39;"[x='split'](" ");A="&<>\"\n'"[x]("");K=0;for(K in A)W=W[x](A[K]).join(H[K]);return W}

@anuxraw

anuxraw commented Dec 23, 2018

Copy link
Copy Markdown

whak the website no longer works, so is there a backup?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment