Skip to content

Instantly share code, notes, and snippets.

@qya
Last active February 24, 2019 14:17
Show Gist options
  • Save qya/16e995f0664849bfb2f0e2aba4c95874 to your computer and use it in GitHub Desktop.
Save qya/16e995f0664849bfb2f0e2aba4c95874 to your computer and use it in GitHub Desktop.
Simple Script to decode Obfuscated by JS
<?php
// Simple Script to decode Obfuscated by JS
$replace = 'STRING_NAME';
$arr = array(); //input Array of /nJS
$dat='name_script.txt';
$data = file_get_contents($dat);
$counter = count($arr);
$dap = '';
$i = 0;
while($i < $counter){
$data = str_replace($replace.'['.$i.']',"'$arr[$i]'",$data);
$i++;
}
echo $data;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment