Commit graph

60 commits

Author SHA1 Message Date
github-actions[bot]
bccd5785c1 style: auto-format JavaScript files in db directories 2026-01-06 18:25:46 +00:00
DosX
e03cd0ad6d Reorder and add script includes in db/_init
Moved 'includeScript' calls for '_runtime_helpers' and 'language' to the top of the file for better initialization order. No functional changes to logic.
2025-12-15 18:28:58 +03:00
DosX
e45715b251 Improve input validation in meta and result functions
Enhanced the meta function to use named parameters and provide clearer error messages for missing detection type. Added error handling in result for missing detection name. Default values are now set using String() for consistency.
2025-12-13 15:48:01 +03:00
DosX
afcecaab66 Refactor and modularize runtime helpers
Moved all prototype and helper functions from db/_init to a new db/_runtime_helpers file for better modularity and maintainability. Updated db/_init to include the new helpers script and removed duplicate code. No functional changes to detection logic.
2025-10-01 22:56:11 +03:00
Kaens
19f41a7877 Update _init
.includes should now work for Strings too
2025-09-30 18:07:44 +02:00
DosX
cdaeca1a5e
Fix _init
Always-false statement fix
2025-09-23 11:33:50 +03:00
Kaens
ac48e85d5f Update _init
Array.prototype.includes added (again?) to extend Qt5
2025-09-23 09:47:05 +02:00
DosX
33711a0407 Add standard DiE-JS framework header to db files
Added a standard header comment to all db framework and detection rule files, indicating they are part of the Detect It Easy (DiE-JS) framework and warning against unauthorized changes. This improves consistency and clarifies file purpose for maintainers.
2025-08-27 23:21:24 +03:00
DosX
1f049ce2c2 Global restandardization: init(...) -> meta(...) 2025-08-27 22:58:17 +03:00
DosX
38cc47f07e Refactor and improve code style and consistency
Standardized semicolon usage, improved code formatting, and enhanced readability across multiple files. Replaced direct property access with a function call in Alienyze.1.sg, and made minor logic and style improvements in chunkparsers and read. These changes improve maintainability and code quality without altering core functionality.
2025-07-27 00:57:51 +03:00
DosX
13b88a21cb Standardize version string casing and minor code cleanups
Updated various detection scripts to use consistent uppercase 'X' in version strings (e.g., '1.1x' to '1.1X') for standardization. Minor formatting and code cleanups were applied, including compacting switch cases, fixing indentation, and correcting return statements. Also, moved and changed permissions for CodeSafe.2.sg to db_extra/PE/CodeSafe.2.sg.
2025-07-24 12:26:22 +03:00
DosX
363222b4b4 special_db -> dbs_special && _init refactored 2025-07-12 21:26:21 +03:00
DosX
4035d7db58 Add support for language version in detection init
Introduces a new sLangVersion parameter to the detection initialization and result functions, allowing the version of the programming language to be specified and passed to _setLang. This enhances detection granularity for language-specific features.
2025-07-01 18:11:14 +03:00
DosX
4c263055df Refactor detection logic and add language support
Removed redundant code and unreachable returns in _FixDetects.9.sg. Updated _init to support an optional language parameter, ensuring language is set during result processing and variables are properly reset.
2025-07-01 17:34:57 +03:00
Kaens
5b7b58b8cc db/read and _init fixes
...due to something that happened during the codebase update
2025-06-25 15:33:43 +02:00
DosX
895de049a3 db refactoring 2025-06-23 23:55:04 +03:00
Kaens
2b3cac6289 *TGA *MUAP98 +Sting.replaceAll
- image.TGA.1.sg improved against the ridiculously scary real world & is now in shorthand; the assumed charset is now explicit
 - db/bytecodeparsers MUAP98 endless recursion fault fixed, tests tightened
 - replaceAll added for String type in db/_init
2025-06-23 12:59:09 +02:00
DosX
7c87b76157 UPX detection update && _init fix 2025-06-23 00:28:02 +03:00
Kaens
c689e4e17b +bytecodeparsers *soundchips *_init
- db/soundchips is going to be just a database of sorts
 - db/bytecodeparsers created with the explicit purpose of handling bytecode parsing needed for the detections of some tougher stuff.
Has a uniform syntax.
Currently hosts MUAP98 and MXDRV parsers.

 - db/_init now has Number.prototype.clamp() as in C++
2025-05-30 21:36:31 +02:00
DosX
aa655dce45 Database update 2025-05-06 21:24:51 +03:00
Kaens
9226c34c09 read:+funSampleName *_init
_init:
 - there's no reason to String() when you can just "";
 - "append" String proto extension got a proper description and a more intuitive length check;
 - other small stuff
2025-05-06 15:47:30 +02:00
horsicq
d35fa9aa77 Update file(s): 2025-04-27 2025-04-27 02:41:59 +02:00
DosX
0ab6f655df Update _init 2025-04-14 00:14:14 +03:00
DosX
8a06bc15d6 New DB caching engine (beta!) 2025-04-01 14:49:38 +03:00
DosX
206cfc7547 Database update 2024-11-20 21:16:02 +03:00
DosX
cee76dd31a Update _init 2024-11-17 19:05:56 +03:00
DosX
c63f1ad1df Database update 2024-11-17 19:01:24 +03:00
DosX
faeeafed28 _debug module 2024-11-13 15:59:13 +03:00
DosX
9edd0b4b90 Database update 2024-11-12 20:31:41 +03:00
DosX
fd5d281708 Hotfix 2024-11-12 19:22:37 +03:00
DosX
db5fa12ad3 Hotfix 2024-11-12 19:04:23 +03:00
DosX
3c40c45434 Code review 2024-11-07 15:02:19 +03:00
DosX
89eb6829c4 Update _init 2024-11-07 14:46:52 +03:00
DosX
a65144b3bb Update _init 2024-11-07 14:45:42 +03:00
DosX
4b92713286 fix.js result, #1 2024-11-07 00:17:07 +03:00
DosX
df025d3d24 Update _init 2024-11-06 18:10:34 +03:00
DosX
969d96ed3f debug(...): debug -> dev-output 2024-07-05 14:42:54 +03:00
Kay Kokh (~DosX)
5bebd7e108 1 == true; 0 == false 2024-05-15 12:59:27 +03:00
Kay Kokh (~DosX)
a11a7d9ed8 IT WAS BAD IDEA. 2024-05-15 12:38:24 +03:00
DosX
9537b419e1 Database update 2024-05-04 00:00:35 +03:00
DosX
34c4450b04 pyhton version detection 2024-04-26 21:45:57 +03:00
Jason Hood
9f979df178 Remove trailing whitespace 2024-04-24 11:58:00 +10:00
DosX
60b7a4c578 Database update 2024-04-21 22:20:48 +03:00
DosX
a650b3f394 New language detection for PE 2024-04-21 21:35:48 +03:00
DosX
6c622c56d0 Script optimization 2024-04-06 18:32:56 +03:00
horsicq
598ce25de0 Update file(s): 2024-03-14 2024-03-14 00:34:28 +01:00
horsicq
2805ceeeff Update file(s): 2024-03-12 2024-03-12 08:42:22 +01:00
horsicq
7a623b30fe Update file(s): 2024-03-11 2024-03-11 07:55:15 +01:00
horsicq
cf73c79ac1 Update file(s): 2024-03-01 2024-03-01 00:09:07 +01:00
horsicq
db5d97ae2a Update file(s): 2024-02-16 2024-02-16 17:39:41 +01:00