Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 09-08-2021, 13:53
Mendax47 Mendax47 is online now
Family
 
Join Date: Jun 2016
Location: Earth..
Posts: 162
Rept. Given: 8
Rept. Rcvd 5 Times in 5 Posts
Thanks Given: 429
Thanks Rcvd at 209 Times in 81 Posts
Mendax47 Reputation: 5
Question anyone know how to debug chrome extention independently (not using google chrome)

I am recently doing some experiments with Grammarly google chrome extension. you can bypass the premium popup because this popup is not server-side. at the first time login, it receives some JSON which includes your subscription plan, and use it to restrict your membership.. but the main problem is I can't find the exact main root when it first store the JSON object as a javascript object in the window object and read it from there... so I need a good debugger.
Reply With Quote
  #2  
Old 09-09-2021, 19:49
DominicCummings DominicCummings is offline
Friend
 
Join Date: Mar 2021
Posts: 12
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 23
Thanks Rcvd at 14 Times in 6 Posts
DominicCummings Reputation: 0
Why do you have to be not in google chrome? What happens if you toggle on debug mode -- https://developer.chrome.com/docs/extensions/mv3/tut_debugging/? If it detects dev tools there are workarounds (for anti-anti-debugging). What about Chrome's extension source viewer? (link: https://chrome.google.com/webstore/detail/chrome-extension-source-v/jifpbeccnghkjeaalbbjmodiffmgedin)

I understand that to use it you:

• Click on the yellow CRX button, and choose "Download"
• Extract the zip file.
• Read the source code, and change it.
• Visit chrome://extensions/
•  Enable Developer mode, by activating the switch in the upper-right corner.
•  Click on the "Load unpacked extension" button.
•  Select the folder of your extension (there should be a manifest.json).
• Confirm, and load the modded one. That should let you get by anti-anti-debug if present.
Reply With Quote
The Following User Says Thank You to DominicCummings For This Useful Post:
niculaita (09-11-2021)
  #3  
Old 09-14-2021, 19:23
sh3dow sh3dow is offline
Family
 
Join Date: Oct 2014
Posts: 111
Rept. Given: 100
Rept. Rcvd 77 Times in 22 Posts
Thanks Given: 316
Thanks Rcvd at 135 Times in 46 Posts
sh3dow Reputation: 77
Assuming you don't want a standalone debugger [I don't think there is one for debugging chrome extensions without using chrome] but a debugger that leverage chrome to debug the JavaScript code.

there is webstorm from jetbrains which has a very good debugger that leverage any Chromium-based browsers to debug javascript
https://www.jetbrains.com/help/webstorm/debugging-javascript-in-chrome.html
https://blog.jetbrains.com/webstorm/2018/01/debugging-javascript-with-webstorm-2017-3/

there is also Chrome Debugging for VS Code
https://code.visualstudio.com/blogs/2016/02/23/introducing-chrome-debugger-for-vs-code

Also you can arm your chrome devtools with extensions to enhance your experience and improve chrome developer tools

Last edited by sh3dow; 09-14-2021 at 19:54.
Reply With Quote
Reply

Thread Tools
Display Modes

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



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


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX
( 1998 - 2021 )