mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
17 lines
433 B
JavaScript
17 lines
433 B
JavaScript
// Detect It Easy: detection rule file
|
|
|
|
init("format", "pdf");
|
|
|
|
function detect() {
|
|
var list_creator = PDF.getValuesByKey("/Creator");
|
|
|
|
for (var i = 0; i < list_creator.length; i++) {
|
|
_setResult("tool", "Creator", "", list_creator[i]);
|
|
}
|
|
|
|
var list_producer = PDF.getValuesByKey("/Producer");
|
|
|
|
for (var i = 0; i < list_producer.length; i++) {
|
|
_setResult("tool", "Producer", "", list_producer[i]);
|
|
}
|
|
}
|