Writing Filters

The forum for all discussion related to JavaScript Deobfuscator extension. It might not be as busy as the other forums but don't hesitate to come in and ask your question.
Locked
brock

Writing Filters

Post by brock »

How do I write a filter to make the JavaScript Deobfuscator ignore scripts that come from a specific directory ?

Say that I have a directory referenced from the website root as : /js/tinymce/current_version/tiny_mce.js

And I want to ignore all scripts that came from the TinyMCE distribution. All of those script are under /js/tinymce/

How do I write the filter for that ?

*/tinymce/*
*/tinymce
/tinymce*
tinymce*

I have tried several and do not seem to be able to filter out the tinymce scripts.

Steps I follow to try the different filter attempts :
I pause the deobfuscator
I change the filter
I clear the Compiled Scripts tab
I un-pause the deobfuscator
I shift-refresh the page that I am interested in.

Help ?

Thanks
--Brock
Wladimir Palant

Re: Writing Filters

Post by Wladimir Palant »

Deobfuscator filters aren't very flexible, for reasons of performance. You can ignore any script where address *starts* with a particular string. So your filter has to be:

Code: Select all

http://example.com/js/tinymce/
Where example.com is the website you are looking at.
brock

Re: Writing Filters

Post by brock »

Thank you !
That cleared up my understanding a lot !
And, it solved my problem.
--Brock
pavshinAN
Posts: 1
Joined: Thu Mar 28, 2013 5:00 pm
Location: Россия Москва
Contact:

Re: Writing Filters

Post by pavshinAN »

I clear the Compiled Scripts tab
I un-pause the deobfuscator
I shift-refresh the page that I am interested in.
sofroneclaudiu
Posts: 1
Joined: Tue Mar 10, 2015 2:42 pm
Contact:

Re: Writing Filters

Post by sofroneclaudiu »

When i use it?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Writing Filters

Post by mapx »

https://addons.mozilla.org/firefox/addo ... bfuscator/
This add-on shows you what JavaScript code runs on a web page, even if it is obfuscated and generated on the fly. Simply open JavaScript Deobfuscator from the Web Developer menu and watch the scripts being compiled/executed.
Locked