Page 1 of 1

Writing Filters

PostPosted: Mon Jan 10, 2011 1:54 am
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

Re: Writing Filters

PostPosted: Mon Jan 10, 2011 11:08 am
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.

Re: Writing Filters

PostPosted: Mon Jan 10, 2011 12:07 pm
by brock
Thank you !
That cleared up my understanding a lot !
And, it solved my problem.
--Brock

Re: Writing Filters

PostPosted: Thu Mar 28, 2013 6:01 pm
by pavshinAN
I clear the Compiled Scripts tab
I un-pause the deobfuscator
I shift-refresh the page that I am interested in.

Re: Writing Filters

PostPosted: Thu Mar 19, 2015 3:06 pm
by sofroneclaudiu
When i use it?

Re: Writing Filters

PostPosted: Thu Mar 19, 2015 3:18 pm
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.