vanry/javascript-unpacker

Unpack javascript packed from http://dean.edwards.name/packer/

Installs: 2 076

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 1

Forks: 14

pkg:composer/vanry/javascript-unpacker

1.1.0 2016-12-06 05:19 UTC

This package is auto-updated.

Last update: 2025-09-24 17:44:51 UTC


README

PHP Javascript Unpacker

use JavascriptUnpacker\JavascriptUnpacker;

$source = "eval(function(p,a,c,k,e,r){e=String;if(!''.replace(/^/,String)){while(c--)r[c]=k[c]||c;k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('0.1(\'2 3\');',4,4,'console|log|hello|world'.split('|'),0,{}))";

$unpacker = new JavascriptUnpacker;

echo $unpacker->unpack($source);