2016-11-28 10:42:58 +00:00
|
|
|
/**
|
|
|
|
* Type definition for a CatConf.
|
|
|
|
*
|
|
|
|
* @typedef {Object} CatConf
|
|
|
|
* @property {string} name - The display name for the category
|
|
|
|
* @property {string[]} ops - A list of the operations to be included in this category
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Categories of operations.
|
|
|
|
*
|
|
|
|
* @author n1474335 [n1474335@gmail.com]
|
|
|
|
* @copyright Crown Copyright 2016
|
|
|
|
* @license Apache-2.0
|
|
|
|
*
|
|
|
|
* @constant
|
|
|
|
* @type {CatConf[]}
|
|
|
|
*/
|
2016-12-31 17:12:39 +00:00
|
|
|
var Categories = [
|
2016-11-28 10:42:58 +00:00
|
|
|
{
|
|
|
|
name: "Favourites",
|
|
|
|
ops: []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Data format",
|
|
|
|
ops: [
|
|
|
|
"To Hexdump",
|
|
|
|
"From Hexdump",
|
|
|
|
"To Hex",
|
|
|
|
"From Hex",
|
|
|
|
"To Charcode",
|
|
|
|
"From Charcode",
|
|
|
|
"To Decimal",
|
|
|
|
"From Decimal",
|
|
|
|
"To Binary",
|
|
|
|
"From Binary",
|
|
|
|
"To Base64",
|
|
|
|
"From Base64",
|
|
|
|
"Show Base64 offsets",
|
|
|
|
"To Base32",
|
|
|
|
"From Base32",
|
2017-02-10 13:31:59 -05:00
|
|
|
"To Base58",
|
|
|
|
"From Base58",
|
2016-11-28 10:42:58 +00:00
|
|
|
"To Base",
|
|
|
|
"From Base",
|
|
|
|
"To HTML Entity",
|
|
|
|
"From HTML Entity",
|
|
|
|
"URL Encode",
|
|
|
|
"URL Decode",
|
|
|
|
"Unescape Unicode Characters",
|
|
|
|
"To Quoted Printable",
|
|
|
|
"From Quoted Printable",
|
|
|
|
"To Punycode",
|
|
|
|
"From Punycode",
|
|
|
|
"To Hex Content",
|
|
|
|
"From Hex Content",
|
|
|
|
"PEM to Hex",
|
|
|
|
"Hex to PEM",
|
|
|
|
"Parse ASN.1 hex string",
|
|
|
|
"Change IP format",
|
|
|
|
"Text encoding",
|
|
|
|
"Swap endianness",
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Encryption / Encoding",
|
|
|
|
ops: [
|
|
|
|
"AES Encrypt",
|
|
|
|
"AES Decrypt",
|
|
|
|
"Blowfish Encrypt",
|
|
|
|
"Blowfish Decrypt",
|
|
|
|
"DES Encrypt",
|
|
|
|
"DES Decrypt",
|
|
|
|
"Triple DES Encrypt",
|
|
|
|
"Triple DES Decrypt",
|
|
|
|
"Rabbit Encrypt",
|
|
|
|
"Rabbit Decrypt",
|
|
|
|
"RC4",
|
|
|
|
"RC4 Drop",
|
|
|
|
"ROT13",
|
2016-12-03 10:19:26 +00:00
|
|
|
"ROT47",
|
2016-11-28 10:42:58 +00:00
|
|
|
"XOR",
|
|
|
|
"XOR Brute Force",
|
2016-12-08 00:34:41 +00:00
|
|
|
"Vigenère Encode",
|
|
|
|
"Vigenère Decode",
|
2017-02-07 14:20:34 +00:00
|
|
|
"To Morse Code",
|
|
|
|
"From Morse Code",
|
2017-02-08 17:29:50 +00:00
|
|
|
"Affine Cipher Encode",
|
|
|
|
"Affine Cipher Decode",
|
|
|
|
"Atbash Cipher",
|
2016-12-21 14:09:46 +00:00
|
|
|
"Substitute",
|
2016-11-28 10:42:58 +00:00
|
|
|
"Derive PBKDF2 key",
|
|
|
|
"Derive EVP key",
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Public Key",
|
|
|
|
ops: [
|
|
|
|
"Parse X.509 certificate",
|
|
|
|
"Parse ASN.1 hex string",
|
|
|
|
"PEM to Hex",
|
|
|
|
"Hex to PEM",
|
|
|
|
"Hex to Object Identifier",
|
|
|
|
"Object Identifier to Hex",
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Logical operations",
|
|
|
|
ops: [
|
|
|
|
"XOR",
|
|
|
|
"XOR Brute Force",
|
|
|
|
"OR",
|
|
|
|
"NOT",
|
|
|
|
"AND",
|
|
|
|
"ADD",
|
|
|
|
"SUB",
|
|
|
|
"Rotate left",
|
|
|
|
"Rotate right",
|
|
|
|
"ROT13",
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Networking",
|
|
|
|
ops: [
|
|
|
|
"Strip HTTP headers",
|
|
|
|
"Parse User Agent",
|
|
|
|
"Parse IP range",
|
|
|
|
"Parse IPv6 address",
|
2017-02-18 16:13:19 +00:00
|
|
|
"Parse IPv4 header",
|
2016-11-28 10:42:58 +00:00
|
|
|
"Parse URI",
|
|
|
|
"URL Encode",
|
|
|
|
"URL Decode",
|
|
|
|
"Format MAC addresses",
|
|
|
|
"Change IP format",
|
|
|
|
"Group IP addresses",
|
2017-02-10 11:57:23 +00:00
|
|
|
"Encode NetBIOS Name",
|
|
|
|
"Decode NetBIOS Name",
|
2016-11-28 10:42:58 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Language",
|
|
|
|
ops: [
|
|
|
|
"Text encoding",
|
|
|
|
"Unescape Unicode Characters",
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Utils",
|
|
|
|
ops: [
|
|
|
|
"Diff",
|
|
|
|
"Remove whitespace",
|
|
|
|
"Remove null bytes",
|
|
|
|
"To Upper case",
|
|
|
|
"To Lower case",
|
|
|
|
"Add line numbers",
|
|
|
|
"Remove line numbers",
|
|
|
|
"Reverse",
|
|
|
|
"Sort",
|
|
|
|
"Unique",
|
|
|
|
"Split",
|
2016-12-17 01:53:06 +01:00
|
|
|
"Filter",
|
2016-11-28 10:42:58 +00:00
|
|
|
"Count occurrences",
|
|
|
|
"Expand alphabet range",
|
|
|
|
"Parse escaped string",
|
|
|
|
"Drop bytes",
|
|
|
|
"Take bytes",
|
|
|
|
"Pad lines",
|
|
|
|
"Find / Replace",
|
|
|
|
"Regular expression",
|
|
|
|
"Offset checker",
|
|
|
|
"Convert distance",
|
|
|
|
"Convert area",
|
|
|
|
"Convert mass",
|
|
|
|
"Convert speed",
|
|
|
|
"Convert data units",
|
|
|
|
"Parse UNIX file permissions",
|
|
|
|
"Swap endianness",
|
|
|
|
"Parse colour code",
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Date / Time",
|
|
|
|
ops: [
|
|
|
|
"Parse DateTime",
|
|
|
|
"Translate DateTime Format",
|
|
|
|
"From UNIX Timestamp",
|
|
|
|
"To UNIX Timestamp",
|
|
|
|
"Extract dates",
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Extractors",
|
|
|
|
ops: [
|
|
|
|
"Strings",
|
|
|
|
"Extract IP addresses",
|
|
|
|
"Extract email addresses",
|
|
|
|
"Extract MAC addresses",
|
|
|
|
"Extract URLs",
|
|
|
|
"Extract domains",
|
|
|
|
"Extract file paths",
|
|
|
|
"Extract dates",
|
|
|
|
"Regular expression",
|
2016-11-29 19:28:07 +01:00
|
|
|
"XPath expression",
|
2016-12-02 12:49:49 +01:00
|
|
|
"CSS selector",
|
2016-11-28 10:42:58 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Compression",
|
|
|
|
ops: [
|
|
|
|
"Raw Deflate",
|
|
|
|
"Raw Inflate",
|
|
|
|
"Zlib Deflate",
|
|
|
|
"Zlib Inflate",
|
|
|
|
"Gzip",
|
|
|
|
"Gunzip",
|
|
|
|
"Zip",
|
|
|
|
"Unzip",
|
|
|
|
"Bzip2 Decompress",
|
2017-02-08 00:05:52 -05:00
|
|
|
"Tar",
|
|
|
|
"Untar",
|
2016-11-28 10:42:58 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Hashing",
|
|
|
|
ops: [
|
|
|
|
"Analyse hash",
|
|
|
|
"Generate all hashes",
|
2017-01-16 16:40:43 +00:00
|
|
|
"MD2",
|
|
|
|
"MD4",
|
2016-11-28 10:42:58 +00:00
|
|
|
"MD5",
|
2017-01-16 16:40:43 +00:00
|
|
|
"SHA0",
|
2016-11-28 10:42:58 +00:00
|
|
|
"SHA1",
|
|
|
|
"SHA224",
|
|
|
|
"SHA256",
|
|
|
|
"SHA384",
|
|
|
|
"SHA512",
|
|
|
|
"SHA3",
|
|
|
|
"RIPEMD-160",
|
|
|
|
"HMAC",
|
2017-01-17 15:52:24 +00:00
|
|
|
"Fletcher-8 Checksum",
|
2016-11-28 10:42:58 +00:00
|
|
|
"Fletcher-16 Checksum",
|
2017-01-17 15:52:24 +00:00
|
|
|
"Fletcher-32 Checksum",
|
|
|
|
"Fletcher-64 Checksum",
|
2016-11-28 10:42:58 +00:00
|
|
|
"Adler-32 Checksum",
|
|
|
|
"CRC-32 Checksum",
|
|
|
|
"TCP/IP Checksum",
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Code tidy",
|
|
|
|
ops: [
|
|
|
|
"Syntax highlighter",
|
|
|
|
"Generic Code Beautify",
|
|
|
|
"JavaScript Parser",
|
|
|
|
"JavaScript Beautify",
|
|
|
|
"JavaScript Minify",
|
|
|
|
"JSON Beautify",
|
|
|
|
"JSON Minify",
|
|
|
|
"XML Beautify",
|
|
|
|
"XML Minify",
|
|
|
|
"SQL Beautify",
|
|
|
|
"SQL Minify",
|
|
|
|
"CSS Beautify",
|
|
|
|
"CSS Minify",
|
2016-12-20 18:49:25 +00:00
|
|
|
"XPath expression",
|
|
|
|
"CSS selector",
|
2016-11-28 10:42:58 +00:00
|
|
|
"Strip HTML tags",
|
|
|
|
"Diff",
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Other",
|
|
|
|
ops: [
|
|
|
|
"Entropy",
|
|
|
|
"Frequency distribution",
|
|
|
|
"Detect File Type",
|
|
|
|
"Scan for Embedded Files",
|
|
|
|
"Generate UUID",
|
|
|
|
"Numberwang",
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Flow control",
|
|
|
|
ops: [
|
|
|
|
"Fork",
|
|
|
|
"Merge",
|
|
|
|
"Jump",
|
|
|
|
"Conditional Jump",
|
|
|
|
"Return",
|
2017-02-14 14:46:35 -05:00
|
|
|
"Wait",
|
2016-11-28 10:42:58 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
];
|