Author Topic: Does TrIDNet detect .js files?  (Read 11273 times)

nr2ae

  • Newbie
  • *
  • Posts: 5
Does TrIDNet detect .js files?
« on: September 11, 2007, 05:28:16 PM »
I try TrIDNet on some JavaScript (.js) files and it fails to identify it. And I look in the lastest defs and I didn't see anything like "js.trid.xml".

Does the definition exist or not (in case I miss it)?

If yes, can you tell me the name of the ????.trid.xml file so I can refine it?
If no, I can create and send you the definition. (I think I got about 10-20 .js files for the new definition).

Thank You

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 2743
    • Mark0's Home Page
Re: Does TrIDNet detect .js files?
« Reply #1 on: September 11, 2007, 05:47:32 PM »
Hi!

TrID indeed isn't really suite for (what basically are) text files. It can recognize some text based filetypes, when there are some common text parts at fixed positions. Instead, something very "free from" like a source code usually can be recognized with the current approach.
So, yes, JavaScript files aren't on the list of TrID's supported filetypes.

You are off course free to try to create a new def for them (as for any other filetype), but probably sooner or later, you'll find that TrIDScan will warn you that there aren't enough patterns anymore.

Thanks for your feedback,
Bye!

nr2ae

  • Newbie
  • *
  • Posts: 5
Re: Does TrIDNet detect .js files?
« Reply #2 on: September 12, 2007, 10:47:47 AM »
You're right. JavaScript files don't really have a pattern. I forgot about that.

Then, is there a way to create something like "Generic Text File" definition, so it can distinguish between text file and binary file?

Thanks again.

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 2743
    • Mark0's Home Page
Re: Does TrIDNet detect .js files?
« Reply #3 on: September 12, 2007, 07:58:51 PM »
Then, is there a way to create something like "Generic Text File" definition, so it can distinguish between text file and binary file?
Not really. TrID just warn that a file seems to be a text one, and that it's not really suited for that kind of files.

Bye!