Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

68
Views
Parse & Deobfuscate js operations

Im trying to deobfuscate a js in order for me to understand it better. To do so im trying to replace variable declarations/operations etc with the correct values (values are stored in objects & arrays). I have been trying to use esprima and uglifyjs in order to parse and interpret the operations but the parsing is way too detailed to be parsed for my use case. Chrome/Firefox have a similar feature in their debugger where they show the value of the variable at the time the debugger stopped. Is there some way to step through the js line by line and see what variable changes/gets declared. Or is there a really simple js parsing library that doesnt parse as detailed as esprima in order to automatically execute the js line by line to get the info needed

ex:

function a(arg){
    var b = arg << 8;
    b++;
    b += b*4;
    if(b > 5){console.log("b is greater 5");}
}
a(5);

could be simplified to

function a(5){
    var b = 1280;
    b++;
    b += 1281*4;
    if(6405 > 5){console.log("b is greater 5");}
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!