Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05-01-2024, 08:19
chants chants is offline
VIP
 
Join Date: Jul 2016
Posts: 826
Rept. Given: 47
Rept. Rcvd 50 Times in 31 Posts
Thanks Given: 737
Thanks Rcvd at 1,140 Times in 529 Posts
chants Reputation: 51
Reversing/decompiling React or other JS apps

So I know without jsx files and still having map files, there is an npm package
Quote:
https://www.npmjs.com/package/source-map
otherwise I know about the Chrome devtools Source tab.

Are there any good tools for a generic Javascript reversing workflow. I use the term decompile loosely here but with typescript and so many powerful and ubiquitous frameworks, this is starting to get interesting. Of course there are tools to unminify and reformat Javascript and the browser dev tools are helpful but it seems we haven't seen anything with a more automated and better level of sophistication. Which is really useful when looking for security vulnerabilities which are likely common place in modern web apps.
Reply With Quote
  #2  
Old 05-02-2024, 12:04
NON NON is offline
Banned User
 
Join Date: Sep 2023
Posts: 77
Rept. Given: 2
Rept. Rcvd 2 Times in 2 Posts
Thanks Given: 30
Thanks Rcvd at 21 Times in 16 Posts
NON Reputation: 2
Quote:
Originally Posted by chants View Post
So I know without jsx files and still having map files, there is an npm package otherwise I know about the Chrome devtools Source tab.

Are there any good tools for a generic Javascript reversing workflow. I use the term decompile loosely here but with typescript and so many powerful and ubiquitous frameworks, this is starting to get interesting. Of course there are tools to unminify and reformat Javascript and the browser dev tools are helpful but it seems we haven't seen anything with a more automated and better level of sophistication. Which is really useful when looking for security vulnerabilities which are likely common place in modern web apps.
Tyro... To get you started...
JavaScript Reverse Engineering Toolkit (JSRETK)
https://github.com/SeanPesce/JSRETK

Web Application Reverse Engineering Practical Example
https://medium.com/@nenadborovanin/web-application-reverse-engineering-practical-example-e31836aab472

7 Tips for reverse engineering minified TypeScript/JavaScript

https://dev.to/jurooravec/7-tips-for-reverse-engineering-minified-typescript-javascript-4p64
Reply With Quote
  #3  
Old 05-02-2024, 15:09
chants chants is offline
VIP
 
Join Date: Jul 2016
Posts: 826
Rept. Given: 47
Rept. Rcvd 50 Times in 31 Posts
Thanks Given: 737
Thanks Rcvd at 1,140 Times in 529 Posts
chants Reputation: 51
There is a Javascript VMP too:
Quote:
https://jsvmp.com/
though I've not seen much interesting work in this area for devirtualization. Protecting Javascript is difficult snd minifying just makes it harder to read and strips symbols, but doesn't actually solve the security issue.

I'm guessing ECMAScript standard might directly start addressing this at some point possibly even by adding an opcode variant of the language. This will regardless likely become a large reverse engineering area soon as HTML5 has become feature rich, countless advanced frameworks like HTMX and React, Flutter, others have come about. Cloud databases like firebase or mongoDB are everywhere, etc. Meanwhile traditional desktop apps are on the decline and many are moving to the web. All office productivity software is on the web now pretty much.

There is much reason to start thinking about this topic. This area has changed so much and do rapidly in the past 10 years, it's near impossible to keep up with it in detail.
Reply With Quote
The Following User Says Thank You to chants For This Useful Post:
niculaita (05-07-2024)
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mac apps reversing nocturo General Discussion 1 04-03-2023 00:36
Decompiling the mov compiler chants General Discussion 3 12-08-2016 21:16
VB3 decompiling wasq General Discussion 23 05-23-2005 02:30
decompiling back to C++? Rhodium General Discussion 44 10-11-2004 08:30


All times are GMT +8. The time now is 21:56.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )