SoFunction
Updated on 2025-03-08

eval(function(p,a,c,k,e,d) series decryption javascript programs

Quick decryption of js eval code

There is a piece of js code as follows:

eval(function(E,I,A,D,J,K,L,H){function C(A) The following content is omitted...

Decryption can be done by the following method:

Method 1:

Open Google Chrome, press F12, copy and paste the eval code in the Console window, press Enter to run, and then you will reach the source code.

Method 2:

Create a new html file and replace the above eval with output.
Note: The purpose of adding the xmp tag before and after is to complete the output of the html tag and does not do any escapes.

<html>
<head>
<title>evalDecryption</title>
</head>
<body>
<script type="text/javascript">
("<xmp>");
 
(function(E,I,A,D,J,K,L,H){function C(A)The following content is omitted。。。)
 
("</xmp>");
</script>
</body>
</html>

Method 3:

step:

1. Create a new html page, take the following code into it, and run it.

2. Paste the encrypted code into the text field, click Decrypt, OK!

Core code:

<script> 
a=62; 
function encode() { 
var code = ('code').value; 
code = (/[\r\n]+/g, ''); 
code = (/'/g, "\\'"); 
var tmp = (/\b(\w+)\b/g); 
(); 
var dict = []; 
var i, t = ''; 
for(var i=0; i<; i++) { 
if(tmp[i] != t) (t = tmp[i]); 
} 
var len = ; 
var ch; 
for(i=0; i<len; i++) { 
ch = num(i); 
code = (new RegExp('\\b'+dict[i]+'\\b','g'), ch); 
if(ch == dict[i]) dict[i] = ''; 
} 
('code').value = "eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?(c+29):(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\\\w+'};c=1};while(c--)if(k[c])p=(new RegExp('\\\\b'+e(c)+'\\\\b','g'),k[c]);return p}(" 
+ "'"+code+"',"+a+","+len+",'"+ ('|')+"'.split('|'),0,{}))"; 
} 

function num(c) { 
return(c<a?'':num(parseInt(c/a)))+((c=c%a)>35?(c+29):(36)); 
} 

function run() { 
eval(('code').value); 
} 

function decode() { 
var code = ('code').value; 
code = (/^eval/, ''); 
('code').value = eval(code); 
} 
</script> 


<textarea id=code cols=80 rows=20> 

</textarea><br> 
<input type=button onclick=encode() value=coding> 
<input type=button onclick=run() value=implement> 
<input type=button onclick=decode() value=decoding> 

Below is the code that can be run to view the effect


[Ctrl+A Select all Note:Introducing external Js requires refreshing the page before execution]

This is the article about the eval(function(p,a,c,k,e,d) series of decrypted javascript programs. For more related eval(function(p,a,c,k,e,d) decrypted content, please search for my previous articles or continue browsing the related articles below. I hope everyone will support me in the future!