2017-03-23 18:52:20 +01:00
import FlowControl from "../FlowControl.js" ;
import Base from "../operations/Base.js" ;
import Base58 from "../operations/Base58.js" ;
import Base64 from "../operations/Base64.js" ;
import BitwiseOp from "../operations/BitwiseOp.js" ;
import ByteRepr from "../operations/ByteRepr.js" ;
import CharEnc from "../operations/CharEnc.js" ;
import Checksum from "../operations/Checksum.js" ;
import Cipher from "../operations/Cipher.js" ;
import Code from "../operations/Code.js" ;
import Compress from "../operations/Compress.js" ;
import Convert from "../operations/Convert.js" ;
import DateTime from "../operations/DateTime.js" ;
import Endian from "../operations/Endian.js" ;
import Entropy from "../operations/Entropy.js" ;
import Extract from "../operations/Extract.js" ;
import FileType from "../operations/FileType.js" ;
import Hash from "../operations/Hash.js" ;
import Hexdump from "../operations/Hexdump.js" ;
import HTML from "../operations/HTML.js" ;
import HTTP from "../operations/HTTP.js" ;
import IP from "../operations/IP.js" ;
import JS from "../operations/JS.js" ;
import MAC from "../operations/MAC.js" ;
import MorseCode from "../operations/MorseCode.js" ;
import NetBIOS from "../operations/NetBIOS.js" ;
import Numberwang from "../operations/Numberwang.js" ;
import OS from "../operations/OS.js" ;
import PublicKey from "../operations/PublicKey.js" ;
import Punycode from "../operations/Punycode.js" ;
import QuotedPrintable from "../operations/QuotedPrintable.js" ;
import Rotate from "../operations/Rotate.js" ;
import SeqUtils from "../operations/SeqUtils.js" ;
import StrUtils from "../operations/StrUtils.js" ;
import Tidy from "../operations/Tidy.js" ;
import Unicode from "../operations/Unicode.js" ;
import URL _ from "../operations/URL.js" ;
import UUID from "../operations/UUID.js" ;
2016-11-28 11:42:58 +01:00
/ * *
* Type definition for an OpConf .
*
* @ typedef { Object } OpConf
* @ property { html } description - A description of the operation with optional HTML tags
* @ property { Function } run - The function which can be called the run the operation
2017-01-31 19:24:56 +01:00
* @ property { string } inputType
* @ property { string } outputType
2016-11-28 11:42:58 +01:00
* @ property { Function | boolean } [ highlight ] - A function to calculate the highlight offset , or true
* if the offset does not change
2017-01-31 19:24:56 +01:00
* @ property { Function | boolean } [ highlightReverse ] - A function to calculate the highlight offset
2016-11-28 11:42:58 +01:00
* in reverse , or true if the offset does not change
2017-01-31 19:24:56 +01:00
* @ property { boolean } [ flowControl ] - True if the operation is for Flow Control
2016-11-28 11:42:58 +01:00
* @ property { ArgConf [ ] } [ args ] - A list of configuration objects for the arguments
* /
2017-02-08 12:51:37 +01:00
2016-11-28 11:42:58 +01:00
/ * *
* Type definition for an ArgConf .
*
* @ typedef { Object } ArgConf
* @ property { string } name - The display name of the argument
* @ property { string } type - The data type of the argument
* @ property { * } value
2017-01-31 19:24:56 +01:00
* @ property { number [ ] } [ disableArgs ] - A list of the indices of the operation ' s arguments which
2016-11-28 11:42:58 +01:00
* should be toggled on or off when this argument is changed
* @ property { boolean } [ disabled ] - Whether or not this argument starts off disabled
* /
/ * *
* Operation configuration objects .
*
* @ author n1474335 [ n1474335 @ gmail . com ]
* @ copyright Crown Copyright 2016
* @ license Apache - 2.0
*
* @ constant
* @ type { Object . < string , OpConf > }
* /
2017-03-23 18:52:20 +01:00
const OperationConfig = {
2016-11-28 11:42:58 +01:00
"Fork" : {
description : "Split the input data up based on the specified delimiter and run all subsequent operations on each branch separately.<br><br>For example, to decode multiple Base64 strings, enter them all on separate lines then add the 'Fork' and 'From Base64' operations to the recipe. Each string will be decoded separately." ,
2017-01-31 19:24:56 +01:00
run : FlowControl . runFork ,
inputType : "string" ,
outputType : "string" ,
flowControl : true ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Split delimiter" ,
2017-01-31 19:24:56 +01:00
type : "binaryShortString" ,
2016-11-28 11:42:58 +01:00
value : FlowControl . FORK _DELIM
} ,
{
name : "Merge delimiter" ,
2017-01-31 19:24:56 +01:00
type : "binaryShortString" ,
2016-11-28 11:42:58 +01:00
value : FlowControl . MERGE _DELIM
2017-01-16 16:58:38 +01:00
} ,
{
name : "Ignore errors" ,
type : "boolean" ,
value : FlowControl . FORK _IGNORE _ERRORS
2016-11-28 11:42:58 +01:00
}
]
} ,
"Merge" : {
description : "Consolidate all branches back into a single trunk. The opposite of Fork." ,
2017-01-31 19:24:56 +01:00
run : FlowControl . runMerge ,
inputType : "string" ,
outputType : "string" ,
flowControl : true ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"Jump" : {
description : "Jump forwards or backwards over the specified number of operations." ,
2017-01-31 19:24:56 +01:00
run : FlowControl . runJump ,
inputType : "string" ,
outputType : "string" ,
flowControl : true ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Number of operations to jump over" ,
type : "number" ,
value : FlowControl . JUMP _NUM
} ,
{
name : "Maximum jumps (if jumping backwards)" ,
type : "number" ,
value : FlowControl . MAX _JUMPS
}
]
} ,
"Conditional Jump" : {
description : "Conditionally jump forwards or backwards over the specified number of operations based on whether the data matches the specified regular expression." ,
2017-01-31 19:24:56 +01:00
run : FlowControl . runCondJump ,
inputType : "string" ,
outputType : "string" ,
flowControl : true ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Match (regex)" ,
type : "string" ,
value : ""
} ,
{
name : "Number of operations to jump over if match found" ,
type : "number" ,
value : FlowControl . JUMP _NUM
} ,
{
name : "Maximum jumps (if jumping backwards)" ,
type : "number" ,
value : FlowControl . MAX _JUMPS
}
]
} ,
"Return" : {
description : "End execution of operations at this point in the recipe." ,
2017-01-31 19:24:56 +01:00
run : FlowControl . runReturn ,
inputType : "string" ,
outputType : "string" ,
flowControl : true ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"From Base64" : {
description : "Base64 is a notation for encoding arbitrary byte data using a restricted set of symbols that can be conveniently used by humans and processed by computers.<br><br>This operation decodes data from an ASCII Base64 string back into its raw format.<br><br>e.g. <code>aGVsbG8=</code> becomes <code>hello</code>" ,
2017-01-31 19:24:56 +01:00
run : Base64 . runFrom ,
highlight : Base64 . highlightFrom ,
highlightReverse : Base64 . highlightTo ,
inputType : "string" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Alphabet" ,
2017-01-31 19:24:56 +01:00
type : "editableOption" ,
2016-11-28 11:42:58 +01:00
value : Base64 . ALPHABET _OPTIONS
} ,
{
name : "Remove non‑alphabet chars" ,
type : "boolean" ,
value : Base64 . REMOVE _NON _ALPH _CHARS
}
]
} ,
"To Base64" : {
description : "Base64 is a notation for encoding arbitrary byte data using a restricted set of symbols that can be conveniently used by humans and processed by computers.<br><br>This operation encodes data in an ASCII Base64 string.<br><br>e.g. <code>hello</code> becomes <code>aGVsbG8=</code>" ,
2017-01-31 19:24:56 +01:00
run : Base64 . runTo ,
highlight : Base64 . highlightTo ,
highlightReverse : Base64 . highlightFrom ,
inputType : "byteArray" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Alphabet" ,
2017-01-31 19:24:56 +01:00
type : "editableOption" ,
2016-11-28 11:42:58 +01:00
value : Base64 . ALPHABET _OPTIONS
} ,
]
} ,
2017-02-10 19:31:59 +01:00
"From Base58" : {
2017-02-13 19:12:55 +01:00
description : "Base58 (similar to Base64) is a notation for encoding arbitrary byte data. It differs from Base64 by removing easily misread characters (i.e. l, I, 0 and O) to improve human readability.<br><br>This operation decodes data from an ASCII string (with an alphabet of your choosing, presets included) back into its raw form.<br><br>e.g. <code>StV1DL6CwTryKyV</code> becomes <code>hello world</code><br><br>Base58 is commonly used in cryptocurrencies (Bitcoin, Ripple, etc)." ,
2017-02-10 19:31:59 +01:00
run : Base58 . runFrom ,
inputType : "string" ,
outputType : "byteArray" ,
args : [
{
name : "Alphabet" ,
type : "editableOption" ,
value : Base58 . ALPHABET _OPTIONS
} ,
{
name : "Remove non‑alphabet chars" ,
type : "boolean" ,
value : Base58 . REMOVE _NON _ALPH _CHARS
}
]
} ,
"To Base58" : {
2017-02-13 19:12:55 +01:00
description : "Base58 (similar to Base64) is a notation for encoding arbitrary byte data. It differs from Base64 by removing easily misread characters (i.e. l, I, 0 and O) to improve human readability.<br><br>This operation encodes data in an ASCII string (with an alphabet of your choosing, presets included).<br><br>e.g. <code>hello world</code> becomes <code>StV1DL6CwTryKyV</code><br><br>Base58 is commonly used in cryptocurrencies (Bitcoin, Ripple, etc)." ,
2017-02-10 19:31:59 +01:00
run : Base58 . runTo ,
inputType : "byteArray" ,
outputType : "string" ,
args : [
{
name : "Alphabet" ,
type : "editableOption" ,
value : Base58 . ALPHABET _OPTIONS
} ,
]
} ,
2016-11-28 11:42:58 +01:00
"From Base32" : {
description : "Base32 is a notation for encoding arbitrary byte data using a restricted set of symbols that can be conveniently used by humans and processed by computers. It uses a smaller set of characters than Base64, usually the uppercase alphabet and the numbers 2 to 7." ,
2017-01-31 19:24:56 +01:00
run : Base64 . runFrom32 ,
inputType : "string" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Alphabet" ,
2017-01-31 19:24:56 +01:00
type : "binaryString" ,
2016-11-28 11:42:58 +01:00
value : Base64 . BASE32 _ALPHABET
} ,
{
name : "Remove non‑alphabet chars" ,
type : "boolean" ,
value : Base64 . REMOVE _NON _ALPH _CHARS
}
]
} ,
"To Base32" : {
description : "Base32 is a notation for encoding arbitrary byte data using a restricted set of symbols that can be conveniently used by humans and processed by computers. It uses a smaller set of characters than Base64, usually the uppercase alphabet and the numbers 2 to 7." ,
2017-01-31 19:24:56 +01:00
run : Base64 . runTo32 ,
inputType : "byteArray" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Alphabet" ,
2017-01-31 19:24:56 +01:00
type : "binaryString" ,
2016-11-28 11:42:58 +01:00
value : Base64 . BASE32 _ALPHABET
}
]
} ,
"Show Base64 offsets" : {
description : "When a string is within a block of data and the whole block is Base64'd, the string itself could be represented in Base64 in three distinct ways depending on its offset within the block.<br><br>This operation shows all possible offsets for a given string so that each possible encoding can be considered." ,
2017-01-31 19:24:56 +01:00
run : Base64 . runOffsets ,
inputType : "byteArray" ,
outputType : "html" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Alphabet" ,
2017-01-31 19:24:56 +01:00
type : "binaryString" ,
2016-11-28 11:42:58 +01:00
value : Base64 . ALPHABET
} ,
{
name : "Show variable chars and padding" ,
type : "boolean" ,
value : Base64 . OFFSETS _SHOW _VARIABLE
}
]
} ,
"XOR" : {
2016-12-03 02:42:23 +01:00
description : "XOR the input with the given key.<br>e.g. <code>fe023da5</code><br><br><strong>Options</strong><br><u>Null preserving:</u> If the current byte is 0x00 or the same as the key, skip it.<br><br><u>Scheme:</u><ul><li>Standard - key is unchanged after each round</li><li>Input differential - key is set to the value of the previous unprocessed byte</li><li>Output differential - key is set to the value of the previous processed byte</li></ul>" ,
2017-01-31 19:24:56 +01:00
run : BitwiseOp . runXor ,
2016-11-28 11:42:58 +01:00
highlight : true ,
2017-01-31 19:24:56 +01:00
highlightReverse : true ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Key" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : BitwiseOp . KEY _FORMAT
2016-11-28 11:42:58 +01:00
} ,
{
2016-12-03 02:42:23 +01:00
name : "Scheme" ,
type : "option" ,
value : BitwiseOp . XOR _SCHEME
2016-11-28 11:42:58 +01:00
} ,
{
2016-12-03 02:42:23 +01:00
name : "Null preserving" ,
2016-11-28 11:42:58 +01:00
type : "boolean" ,
2016-12-03 02:42:23 +01:00
value : BitwiseOp . XOR _PRESERVE _NULLS
2016-11-28 11:42:58 +01:00
}
]
} ,
"XOR Brute Force" : {
description : "Enumerate all possible XOR solutions. Current maximum key length is 2 due to browser performance.<br><br>Optionally enter a regex string that you expect to find in the plaintext to filter results (crib)." ,
2017-01-31 19:24:56 +01:00
run : BitwiseOp . runXorBrute ,
inputType : "byteArray" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Key length" ,
type : "option" ,
value : BitwiseOp . XOR _BRUTE _KEY _LENGTH
} ,
{
name : "Length of sample" ,
type : "number" ,
value : BitwiseOp . XOR _BRUTE _SAMPLE _LENGTH
} ,
{
name : "Offset of sample" ,
type : "number" ,
value : BitwiseOp . XOR _BRUTE _SAMPLE _OFFSET
} ,
{
name : "Null preserving" ,
type : "boolean" ,
value : BitwiseOp . XOR _PRESERVE _NULLS
} ,
{
name : "Differential" ,
type : "boolean" ,
value : BitwiseOp . XOR _DIFFERENTIAL
} ,
{
name : "Crib (known plaintext string)" ,
2017-01-31 19:24:56 +01:00
type : "binaryString" ,
2016-11-28 11:42:58 +01:00
value : ""
} ,
{
name : "Print key" ,
type : "boolean" ,
value : BitwiseOp . XOR _BRUTE _PRINT _KEY
} ,
{
name : "Output as hex" ,
type : "boolean" ,
value : BitwiseOp . XOR _BRUTE _OUTPUT _HEX
}
]
} ,
"NOT" : {
description : "Returns the inverse of each byte." ,
2017-01-31 19:24:56 +01:00
run : BitwiseOp . runNot ,
2016-11-28 11:42:58 +01:00
highlight : true ,
2017-01-31 19:24:56 +01:00
highlightReverse : true ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"AND" : {
description : "AND the input with the given key.<br>e.g. <code>fe023da5</code>" ,
2017-01-31 19:24:56 +01:00
run : BitwiseOp . runAnd ,
2016-11-28 11:42:58 +01:00
highlight : true ,
2017-01-31 19:24:56 +01:00
highlightReverse : true ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Key" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : BitwiseOp . KEY _FORMAT
2016-11-28 11:42:58 +01:00
}
]
} ,
"OR" : {
description : "OR the input with the given key.<br>e.g. <code>fe023da5</code>" ,
2017-01-31 19:24:56 +01:00
run : BitwiseOp . runOr ,
2016-11-28 11:42:58 +01:00
highlight : true ,
2017-01-31 19:24:56 +01:00
highlightReverse : true ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Key" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : BitwiseOp . KEY _FORMAT
2016-11-28 11:42:58 +01:00
}
]
} ,
"ADD" : {
description : "ADD the input with the given key (e.g. <code>fe023da5</code>), MOD 255" ,
2017-01-31 19:24:56 +01:00
run : BitwiseOp . runAdd ,
2016-11-28 11:42:58 +01:00
highlight : true ,
2017-01-31 19:24:56 +01:00
highlightReverse : true ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Key" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : BitwiseOp . KEY _FORMAT
2016-11-28 11:42:58 +01:00
}
]
} ,
"SUB" : {
description : "SUB the input with the given key (e.g. <code>fe023da5</code>), MOD 255" ,
2017-01-31 19:24:56 +01:00
run : BitwiseOp . runSub ,
2016-11-28 11:42:58 +01:00
highlight : true ,
2017-01-31 19:24:56 +01:00
highlightReverse : true ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Key" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : BitwiseOp . KEY _FORMAT
2016-11-28 11:42:58 +01:00
}
]
} ,
"From Hex" : {
2017-03-14 22:26:10 +01:00
description : "Converts a hexadecimal byte string back into its raw value.<br><br>e.g. <code>ce 93 ce b5 ce b9 ce ac 20 cf 83 ce bf cf 85 0a</code> becomes the UTF-8 encoded string <code>Γειά σ ο υ </code>" ,
2017-01-31 19:24:56 +01:00
run : ByteRepr . runFromHex ,
highlight : ByteRepr . highlightFrom ,
highlightReverse : ByteRepr . highlightTo ,
inputType : "string" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Delimiter" ,
type : "option" ,
value : ByteRepr . HEX _DELIM _OPTIONS
}
]
} ,
"To Hex" : {
description : "Converts the input string to hexadecimal bytes separated by the specified delimiter.<br><br>e.g. The UTF-8 encoded string <code>Γειά σ ο υ </code> becomes <code>ce 93 ce b5 ce b9 ce ac 20 cf 83 ce bf cf 85 0a</code>" ,
2017-01-31 19:24:56 +01:00
run : ByteRepr . runToHex ,
highlight : ByteRepr . highlightTo ,
highlightReverse : ByteRepr . highlightFrom ,
inputType : "byteArray" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Delimiter" ,
type : "option" ,
value : ByteRepr . HEX _DELIM _OPTIONS
}
]
} ,
2017-03-14 22:26:10 +01:00
"From Octal" : {
2017-04-05 23:00:06 +02:00
description : "Converts an octal byte string back into its raw value.<br><br>e.g. <code>316 223 316 265 316 271 316 254 40 317 203 316 277 317 205</code> becomes the UTF-8 encoded string <code>Γειά σ ο υ </code>" ,
2017-03-14 22:26:10 +01:00
run : ByteRepr . runFromOct ,
highlight : false ,
highlightReverse : false ,
inputType : "string" ,
outputType : "byteArray" ,
args : [
{
name : "Delimiter" ,
type : "option" ,
2017-03-27 22:30:32 +02:00
value : ByteRepr . DELIM _OPTIONS
2017-03-14 22:26:10 +01:00
}
]
} ,
"To Octal" : {
description : "Converts the input string to octal bytes separated by the specified delimiter.<br><br>e.g. The UTF-8 encoded string <code>Γειά σ ο υ </code> becomes <code>316 223 316 265 316 271 316 254 40 317 203 316 277 317 205</code>" ,
run : ByteRepr . runToOct ,
highlight : false ,
highlightReverse : false ,
inputType : "byteArray" ,
outputType : "string" ,
args : [
{
name : "Delimiter" ,
type : "option" ,
2017-03-27 22:30:32 +02:00
value : ByteRepr . DELIM _OPTIONS
2017-03-14 22:26:10 +01:00
}
]
} ,
2016-11-28 11:42:58 +01:00
"From Charcode" : {
description : "Converts unicode character codes back into text.<br><br>e.g. <code>0393 03b5 03b9 03ac 20 03c3 03bf 03c5</code> becomes <code>Γειά σ ο υ </code>" ,
2017-01-31 19:24:56 +01:00
run : ByteRepr . runFromCharcode ,
highlight : ByteRepr . highlightFrom ,
highlightReverse : ByteRepr . highlightTo ,
inputType : "string" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Delimiter" ,
type : "option" ,
value : ByteRepr . DELIM _OPTIONS
} ,
{
name : "Base" ,
type : "number" ,
value : ByteRepr . CHARCODE _BASE
}
]
} ,
"To Charcode" : {
description : "Converts text to its unicode character code equivalent.<br><br>e.g. <code>Γειά σ ο υ </code> becomes <code>0393 03b5 03b9 03ac 20 03c3 03bf 03c5</code>" ,
2017-01-31 19:24:56 +01:00
run : ByteRepr . runToCharcode ,
highlight : ByteRepr . highlightTo ,
highlightReverse : ByteRepr . highlightFrom ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Delimiter" ,
type : "option" ,
value : ByteRepr . DELIM _OPTIONS
} ,
{
name : "Base" ,
type : "number" ,
value : ByteRepr . CHARCODE _BASE
}
]
} ,
"From Binary" : {
description : "Converts a binary string back into its raw form.<br><br>e.g. <code>01001000 01101001</code> becomes <code>Hi</code>" ,
2017-01-31 19:24:56 +01:00
run : ByteRepr . runFromBinary ,
highlight : ByteRepr . highlightFromBinary ,
highlightReverse : ByteRepr . highlightToBinary ,
inputType : "string" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Delimiter" ,
type : "option" ,
value : ByteRepr . BIN _DELIM _OPTIONS
}
]
} ,
"To Binary" : {
description : "Displays the input data as a binary string.<br><br>e.g. <code>Hi</code> becomes <code>01001000 01101001</code>" ,
2017-01-31 19:24:56 +01:00
run : ByteRepr . runToBinary ,
highlight : ByteRepr . highlightToBinary ,
highlightReverse : ByteRepr . highlightFromBinary ,
inputType : "byteArray" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Delimiter" ,
type : "option" ,
value : ByteRepr . BIN _DELIM _OPTIONS
}
]
} ,
"From Decimal" : {
description : "Converts the data from an ordinal integer array back into its raw form.<br><br>e.g. <code>72 101 108 108 111</code> becomes <code>Hello</code>" ,
2017-01-31 19:24:56 +01:00
run : ByteRepr . runFromDecimal ,
inputType : "string" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Delimiter" ,
type : "option" ,
value : ByteRepr . DELIM _OPTIONS
}
]
} ,
"To Decimal" : {
description : "Converts the input data to an ordinal integer array.<br><br>e.g. <code>Hello</code> becomes <code>72 101 108 108 111</code>" ,
2017-01-31 19:24:56 +01:00
run : ByteRepr . runToDecimal ,
inputType : "byteArray" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Delimiter" ,
type : "option" ,
value : ByteRepr . DELIM _OPTIONS
}
]
} ,
"From Hexdump" : {
description : "Attempts to convert a hexdump back into raw data. This operation supports many different hexdump variations, but probably not all. Make sure you verify that the data it gives you is correct before continuing analysis." ,
2017-01-31 19:24:56 +01:00
run : Hexdump . runFrom ,
highlight : Hexdump . highlightFrom ,
highlightReverse : Hexdump . highlightTo ,
inputType : "string" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"To Hexdump" : {
description : "Creates a hexdump of the input data, displaying both the hexademinal values of each byte and an ASCII representation alongside." ,
2017-01-31 19:24:56 +01:00
run : Hexdump . runTo ,
highlight : Hexdump . highlightTo ,
highlightReverse : Hexdump . highlightFrom ,
inputType : "byteArray" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Width" ,
type : "number" ,
value : Hexdump . WIDTH
} ,
{
name : "Upper case hex" ,
type : "boolean" ,
value : Hexdump . UPPER _CASE
} ,
{
name : "Include final length" ,
type : "boolean" ,
value : Hexdump . INCLUDE _FINAL _LENGTH
}
]
} ,
"From Base" : {
description : "Converts a number to decimal from a given numerical base." ,
2017-01-31 19:24:56 +01:00
run : Base . runFrom ,
inputType : "string" ,
outputType : "number" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Radix" ,
type : "number" ,
value : Base . DEFAULT _RADIX
}
]
} ,
"To Base" : {
description : "Converts a decimal number to a given numerical base." ,
2017-01-31 19:24:56 +01:00
run : Base . runTo ,
inputType : "number" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Radix" ,
type : "number" ,
value : Base . DEFAULT _RADIX
}
]
} ,
"From HTML Entity" : {
description : "Converts HTML entities back to characters<br><br>e.g. <code>&<span>amp;</span></code> becomes <code>&</code>" , // <span> tags required to stop the browser just printing &
2017-01-31 19:24:56 +01:00
run : HTML . runFromEntity ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"To HTML Entity" : {
description : "Converts characters to HTML entities<br><br>e.g. <code>&</code> becomes <code>&<span>amp;</span></code>" , // <span> tags required to stop the browser just printing &
2017-01-31 19:24:56 +01:00
run : HTML . runToEntity ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Convert all characters" ,
type : "boolean" ,
value : HTML . CONVERT _ALL
} ,
{
name : "Convert to" ,
type : "option" ,
value : HTML . CONVERT _OPTIONS
}
]
} ,
"Strip HTML tags" : {
description : "Removes all HTML tags from the input." ,
2017-01-31 19:24:56 +01:00
run : HTML . runStripTags ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Remove indentation" ,
type : "boolean" ,
value : HTML . REMOVE _INDENTATION
} ,
{
name : "Remove excess line breaks" ,
type : "boolean" ,
value : HTML . REMOVE _LINE _BREAKS
}
]
} ,
"URL Decode" : {
description : "Converts URI/URL percent-encoded characters back to their raw values.<br><br>e.g. <code>%3d</code> becomes <code>=</code>" ,
2017-01-31 19:24:56 +01:00
run : URL _ . runFrom ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"URL Encode" : {
description : "Encodes problematic characters into percent-encoding, a format supported by URIs/URLs.<br><br>e.g. <code>=</code> becomes <code>%3d</code>" ,
2017-01-31 19:24:56 +01:00
run : URL _ . runTo ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Encode all special chars" ,
type : "boolean" ,
value : URL _ . ENCODE _ALL
}
]
} ,
"Parse URI" : {
description : "Pretty prints complicated Uniform Resource Identifier (URI) strings for ease of reading. Particularly useful for Uniform Resource Locators (URLs) with a lot of arguments." ,
2017-01-31 19:24:56 +01:00
run : URL _ . runParse ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"Unescape Unicode Characters" : {
description : "Converts unicode-escaped character notation back into raw characters.<br><br>Supports the prefixes:<ul><li><code>\\u</code></li><li><code>%u</code></li><li><code>U+</code></li></ul>e.g. <code>\\u03c3\\u03bf\\u03c5</code> becomes <code>σ ο υ </code>" ,
2017-01-31 19:24:56 +01:00
run : Unicode . runUnescape ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Prefix" ,
type : "option" ,
value : Unicode . PREFIXES
}
]
} ,
"From Quoted Printable" : {
description : "Converts QP-encoded text back to standard text." ,
2017-01-31 19:24:56 +01:00
run : QuotedPrintable . runFrom ,
inputType : "string" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"To Quoted Printable" : {
description : "Quoted-Printable, or QP encoding, is an encoding using printable ASCII characters (alphanumeric and the equals sign '=') to transmit 8-bit data over a 7-bit data path or, generally, over a medium which is not 8-bit clean. It is defined as a MIME content transfer encoding for use in e-mail.<br><br>QP works by using the equals sign '=' as an escape character. It also limits line length to 76, as some software has limits on line length." ,
2017-01-31 19:24:56 +01:00
run : QuotedPrintable . runTo ,
inputType : "byteArray" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"From Punycode" : {
description : "Punycode is a way to represent Unicode with the limited character subset of ASCII supported by the Domain Name System.<br><br>e.g. <code>mnchen-3ya</code> decodes to <code>münchen</code>" ,
2017-01-31 19:24:56 +01:00
run : Punycode . runToUnicode ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Internationalised domain name" ,
type : "boolean" ,
value : Punycode . IDN
}
]
} ,
"To Punycode" : {
description : "Punycode is a way to represent Unicode with the limited character subset of ASCII supported by the Domain Name System.<br><br>e.g. <code>münchen</code> encodes to <code>mnchen-3ya</code>" ,
2017-01-31 19:24:56 +01:00
run : Punycode . runToAscii ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Internationalised domain name" ,
type : "boolean" ,
value : Punycode . IDN
}
]
} ,
"From Hex Content" : {
description : "Translates hexadecimal bytes in text back to raw bytes.<br><br>e.g. <code>foo|3d|bar</code> becomes <code>foo=bar</code>." ,
2017-01-31 19:24:56 +01:00
run : ByteRepr . runFromHexContent ,
inputType : "string" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"To Hex Content" : {
description : "Converts special characters in a string to hexadecimal.<br><br>e.g. <code>foo=bar</code> becomes <code>foo|3d|bar</code>." ,
2017-01-31 19:24:56 +01:00
run : ByteRepr . runToHexContent ,
inputType : "byteArray" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Convert" ,
type : "option" ,
value : ByteRepr . HEX _CONTENT _CONVERT _WHICH
} ,
{
name : "Print spaces between bytes" ,
type : "boolean" ,
value : ByteRepr . HEX _CONTENT _SPACES _BETWEEN _BYTES
} ,
]
} ,
"Change IP format" : {
description : "Convert an IP address from one format to another, e.g. <code>172.20.23.54</code> to <code>ac141736</code>" ,
2017-01-31 19:24:56 +01:00
run : IP . runChangeIpFormat ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Input format" ,
type : "option" ,
value : IP . IP _FORMAT _LIST
} ,
{
name : "Output format" ,
type : "option" ,
value : IP . IP _FORMAT _LIST
}
]
} ,
"Parse IP range" : {
description : "Given a CIDR range (e.g. <code>10.0.0.0/24</code>) or a hyphenated range (e.g. <code>10.0.0.0 - 10.0.1.0</code>), this operation provides network information and enumerates all IP addresses in the range.<br><br>IPv6 is supported but will not be enumerated." ,
2017-01-31 19:24:56 +01:00
run : IP . runParseIpRange ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Include network info" ,
type : "boolean" ,
value : IP . INCLUDE _NETWORK _INFO
} ,
{
name : "Enumerate IP addresses" ,
type : "boolean" ,
value : IP . ENUMERATE _ADDRESSES
} ,
{
name : "Allow large queries" ,
type : "boolean" ,
value : IP . ALLOW _LARGE _LIST
}
]
} ,
"Group IP addresses" : {
description : "Groups a list of IP addresses into subnets. Supports both IPv4 and IPv6 addresses." ,
2017-01-31 19:24:56 +01:00
run : IP . runGroupIps ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Delimiter" ,
type : "option" ,
value : IP . DELIM _OPTIONS
} ,
{
name : "Subnet (CIDR)" ,
type : "number" ,
value : IP . GROUP _CIDR
} ,
{
name : "Only show the subnets" ,
type : "boolean" ,
value : IP . GROUP _ONLY _SUBNET
}
]
} ,
"Parse IPv6 address" : {
description : "Displays the longhand and shorthand versions of a valid IPv6 address.<br><br>Recognises all reserved ranges and parses encapsulated or tunnelled addresses including Teredo and 6to4." ,
2017-02-18 17:13:19 +01:00
run : IP . runParseIPv6 ,
2017-01-31 19:24:56 +01:00
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
2017-02-18 17:13:19 +01:00
"Parse IPv4 header" : {
2017-02-21 20:40:19 +01:00
description : "Given an IPv4 header, this operations parses and displays each field in an easily readable format." ,
2017-02-18 17:13:19 +01:00
run : IP . runParseIPv4Header ,
inputType : "string" ,
2017-02-21 20:40:19 +01:00
outputType : "html" ,
2017-02-18 17:13:19 +01:00
args : [
{
name : "Input format" ,
type : "option" ,
value : IP . IP _HEADER _FORMAT
}
]
} ,
2017-05-17 17:17:11 +02:00
"Encode text" : {
description : [
"Encodes text into the chosen character encoding." ,
"<br><br>" ,
"Supported charsets are:" ,
"<ul>" ,
Object . keys ( CharEnc . IO _FORMAT ) . map ( e => ` <li> ${ e } </li> ` ) . join ( "<br>" ) ,
"</ul>" ,
] . join ( "\n" ) ,
run : CharEnc . runEncode ,
2017-01-31 19:24:56 +01:00
inputType : "string" ,
2017-05-17 17:17:11 +02:00
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
2017-05-17 17:17:11 +02:00
name : "Encoding" ,
2016-11-28 11:42:58 +01:00
type : "option" ,
2017-05-17 17:17:11 +02:00
value : Object . keys ( CharEnc . IO _FORMAT ) ,
2016-11-28 11:42:58 +01:00
} ,
2017-05-17 17:17:11 +02:00
]
} ,
"Decode text" : {
description : [
"Decodes text from the chosen character encoding." ,
"<br><br>" ,
"Supported charsets are:" ,
"<ul>" ,
Object . keys ( CharEnc . IO _FORMAT ) . map ( e => ` <li> ${ e } </li> ` ) . join ( "<br>" ) ,
"</ul>" ,
] . join ( "\n" ) ,
run : CharEnc . runDecode ,
inputType : "byteArray" ,
outputType : "string" ,
args : [
2016-11-28 11:42:58 +01:00
{
2017-05-17 17:17:11 +02:00
name : "Encoding" ,
2016-11-28 11:42:58 +01:00
type : "option" ,
2017-05-17 17:17:11 +02:00
value : Object . keys ( CharEnc . IO _FORMAT ) ,
2016-11-28 11:42:58 +01:00
} ,
]
} ,
"AES Decrypt" : {
description : "To successfully decrypt AES, you need either:<ul><li>The passphrase</li><li>Or the key and IV</li></ul>The IV should be the first 16 bytes of encrypted material." ,
2017-01-31 19:24:56 +01:00
run : Cipher . runAesDec ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Passphrase/Key" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT2
2016-11-28 11:42:58 +01:00
} ,
{
name : "IV" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT1
2017-02-08 12:51:37 +01:00
2016-11-28 11:42:58 +01:00
} ,
{
name : "Salt" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT1
2016-11-28 11:42:58 +01:00
} ,
{
name : "Mode" ,
type : "option" ,
value : Cipher . MODES
} ,
{
name : "Padding" ,
type : "option" ,
value : Cipher . PADDING
} ,
{
name : "Input format" ,
type : "option" ,
value : Cipher . IO _FORMAT1
} ,
{
name : "Output format" ,
type : "option" ,
value : Cipher . IO _FORMAT2
} ,
]
} ,
"AES Encrypt" : {
description : "Input: Either enter a passphrase (which will be used to derive a key using the OpenSSL KDF) or both the key and IV.<br><br>Advanced Encryption Standard (AES) is a U.S. Federal Information Processing Standard (FIPS). It was selected after a 5-year process where 15 competing designs were evaluated.<br><br>AES-128, AES-192, and AES-256 are supported. The variant will be chosen based on the size of the key passed in. If a passphrase is used, a 256-bit key will be generated." ,
2017-01-31 19:24:56 +01:00
run : Cipher . runAesEnc ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Passphrase/Key" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT2
2016-11-28 11:42:58 +01:00
} ,
{
name : "IV" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT1
2017-02-08 12:51:37 +01:00
2016-11-28 11:42:58 +01:00
} ,
{
name : "Salt" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT1
2016-11-28 11:42:58 +01:00
} ,
{
name : "Mode" ,
type : "option" ,
value : Cipher . MODES
} ,
{
name : "Padding" ,
type : "option" ,
value : Cipher . PADDING
} ,
{
name : "Output result" ,
type : "option" ,
value : Cipher . RESULT _TYPE
} ,
{
name : "Output format" ,
type : "option" ,
value : Cipher . IO _FORMAT1
} ,
]
} ,
"DES Decrypt" : {
description : "To successfully decrypt DES, you need either:<ul><li>The passphrase</li><li>Or the key and IV</li></ul>The IV should be the first 8 bytes of encrypted material." ,
2017-01-31 19:24:56 +01:00
run : Cipher . runDesDec ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Passphrase/Key" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT2
2016-11-28 11:42:58 +01:00
} ,
{
name : "IV" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT1
2017-02-08 12:51:37 +01:00
2016-11-28 11:42:58 +01:00
} ,
{
name : "Salt" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT1
2016-11-28 11:42:58 +01:00
} ,
{
name : "Mode" ,
type : "option" ,
value : Cipher . MODES
} ,
{
name : "Padding" ,
type : "option" ,
value : Cipher . PADDING
} ,
{
name : "Input format" ,
type : "option" ,
value : Cipher . IO _FORMAT1
} ,
{
name : "Output format" ,
type : "option" ,
value : Cipher . IO _FORMAT2
} ,
]
} ,
"DES Encrypt" : {
description : "Input: Either enter a passphrase (which will be used to derive a key using the OpenSSL KDF) or both the key and IV.<br><br>DES is a previously dominant algorithm for encryption, and was published as an official U.S. Federal Information Processing Standard (FIPS). It is now considered to be insecure due to its small key size." ,
2017-01-31 19:24:56 +01:00
run : Cipher . runDesEnc ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Passphrase/Key" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT2
2016-11-28 11:42:58 +01:00
} ,
{
name : "IV" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT1
2017-02-08 12:51:37 +01:00
2016-11-28 11:42:58 +01:00
} ,
{
name : "Salt" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT1
2016-11-28 11:42:58 +01:00
} ,
{
name : "Mode" ,
type : "option" ,
value : Cipher . MODES
} ,
{
name : "Padding" ,
type : "option" ,
value : Cipher . PADDING
} ,
{
name : "Output result" ,
type : "option" ,
value : Cipher . RESULT _TYPE
} ,
{
name : "Output format" ,
type : "option" ,
value : Cipher . IO _FORMAT1
} ,
]
} ,
"Triple DES Decrypt" : {
description : "To successfully decrypt Triple DES, you need either:<ul><li>The passphrase</li><li>Or the key and IV</li></ul>The IV should be the first 8 bytes of encrypted material." ,
2017-01-31 19:24:56 +01:00
run : Cipher . runTripleDesDec ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Passphrase/Key" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT2
2016-11-28 11:42:58 +01:00
} ,
{
name : "IV" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT1
2017-02-08 12:51:37 +01:00
2016-11-28 11:42:58 +01:00
} ,
{
name : "Salt" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT1
2016-11-28 11:42:58 +01:00
} ,
{
name : "Mode" ,
type : "option" ,
value : Cipher . MODES
} ,
{
name : "Padding" ,
type : "option" ,
value : Cipher . PADDING
} ,
{
name : "Input format" ,
type : "option" ,
value : Cipher . IO _FORMAT1
} ,
{
name : "Output format" ,
type : "option" ,
value : Cipher . IO _FORMAT2
} ,
]
} ,
"Triple DES Encrypt" : {
description : "Input: Either enter a passphrase (which will be used to derive a key using the OpenSSL KDF) or both the key and IV.<br><br>Triple DES applies DES three times to each block to increase key size." ,
2017-01-31 19:24:56 +01:00
run : Cipher . runTripleDesEnc ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Passphrase/Key" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT2
2016-11-28 11:42:58 +01:00
} ,
{
name : "IV" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT1
2017-02-08 12:51:37 +01:00
2016-11-28 11:42:58 +01:00
} ,
{
name : "Salt" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT1
2016-11-28 11:42:58 +01:00
} ,
{
name : "Mode" ,
type : "option" ,
value : Cipher . MODES
} ,
{
name : "Padding" ,
type : "option" ,
value : Cipher . PADDING
} ,
{
name : "Output result" ,
type : "option" ,
value : Cipher . RESULT _TYPE
} ,
{
name : "Output format" ,
type : "option" ,
value : Cipher . IO _FORMAT1
} ,
]
} ,
"Blowfish Decrypt" : {
description : "Blowfish is a symmetric-key block cipher designed in 1993 by Bruce Schneier and included in a large number of cipher suites and encryption products. AES now receives more attention." ,
2017-01-31 19:24:56 +01:00
run : Cipher . runBlowfishDec ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Key" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT2
2016-11-28 11:42:58 +01:00
} ,
{
name : "Mode" ,
type : "option" ,
value : Cipher . BLOWFISH _MODES
} ,
{
name : "Input format" ,
type : "option" ,
value : Cipher . IO _FORMAT3
} ,
]
} ,
"Blowfish Encrypt" : {
description : "Blowfish is a symmetric-key block cipher designed in 1993 by Bruce Schneier and included in a large number of cipher suites and encryption products. AES now receives more attention." ,
2017-01-31 19:24:56 +01:00
run : Cipher . runBlowfishEnc ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Key" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT2
2016-11-28 11:42:58 +01:00
} ,
{
name : "Mode" ,
type : "option" ,
value : Cipher . BLOWFISH _MODES
} ,
{
name : "Output format" ,
type : "option" ,
value : Cipher . IO _FORMAT3
} ,
]
} ,
"Rabbit Decrypt" : {
description : "To successfully decrypt Rabbit, you need either:<ul><li>The passphrase</li><li>Or the key and IV (This is currently broken. You need the key and salt at the moment.)</li></ul>The IV should be the first 8 bytes of encrypted material." ,
2017-01-31 19:24:56 +01:00
run : Cipher . runRabbitDec ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Passphrase/Key" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT2
2016-11-28 11:42:58 +01:00
} ,
{
name : "IV" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT1
2017-02-08 12:51:37 +01:00
2016-11-28 11:42:58 +01:00
} ,
{
name : "Salt" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT1
2016-11-28 11:42:58 +01:00
} ,
{
name : "Mode" ,
type : "option" ,
value : Cipher . MODES
} ,
{
name : "Padding" ,
type : "option" ,
value : Cipher . PADDING
} ,
{
name : "Input format" ,
type : "option" ,
value : Cipher . IO _FORMAT1
} ,
{
name : "Output format" ,
type : "option" ,
value : Cipher . IO _FORMAT2
} ,
]
} ,
"Rabbit Encrypt" : {
description : "Input: Either enter a passphrase (which will be used to derive a key using the OpenSSL KDF) or both the key and IV.<br><br>Rabbit is a high-performance stream cipher and a finalist in the eSTREAM Portfolio. It is one of the four designs selected after a 3 1/2 year process where 22 designs were evaluated." ,
2017-01-31 19:24:56 +01:00
run : Cipher . runRabbitEnc ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Passphrase/Key" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT2
2016-11-28 11:42:58 +01:00
} ,
{
name : "IV" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT1
2017-02-08 12:51:37 +01:00
2016-11-28 11:42:58 +01:00
} ,
{
name : "Salt" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT1
2016-11-28 11:42:58 +01:00
} ,
{
name : "Mode" ,
type : "option" ,
value : Cipher . MODES
} ,
{
name : "Padding" ,
type : "option" ,
value : Cipher . PADDING
} ,
{
name : "Output result" ,
type : "option" ,
value : Cipher . RESULT _TYPE
} ,
{
name : "Output format" ,
type : "option" ,
value : Cipher . IO _FORMAT1
} ,
]
} ,
"RC4" : {
description : "RC4 is a widely-used stream cipher. It is used in popular protocols such as SSL and WEP. Although remarkable for its simplicity and speed, the algorithm's history doesn't inspire confidence in its security." ,
2017-01-31 19:24:56 +01:00
run : Cipher . runRc4 ,
2016-11-28 11:42:58 +01:00
highlight : true ,
2017-01-31 19:24:56 +01:00
highlightReverse : true ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Passphrase" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT2
2016-11-28 11:42:58 +01:00
} ,
{
name : "Input format" ,
type : "option" ,
value : Cipher . IO _FORMAT4
} ,
{
name : "Output format" ,
type : "option" ,
value : Cipher . IO _FORMAT4
} ,
]
} ,
"RC4 Drop" : {
description : "It was discovered that the first few bytes of the RC4 keystream are strongly non-random and leak information about the key. We can defend against this attack by discarding the initial portion of the keystream. This modified algorithm is traditionally called RC4-drop." ,
2017-01-31 19:24:56 +01:00
run : Cipher . runRc4drop ,
2016-11-28 11:42:58 +01:00
highlight : true ,
2017-01-31 19:24:56 +01:00
highlightReverse : true ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Passphrase" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : Cipher . IO _FORMAT2
2016-11-28 11:42:58 +01:00
} ,
{
name : "Input format" ,
type : "option" ,
value : Cipher . IO _FORMAT4
} ,
{
name : "Output format" ,
type : "option" ,
value : Cipher . IO _FORMAT4
} ,
{
name : "Number of bytes to drop" ,
type : "number" ,
value : Cipher . RC4DROP _BYTES
} ,
]
} ,
"Derive PBKDF2 key" : {
description : "PBKDF2 is a password-based key derivation function. In many applications of cryptography, user security is ultimately dependent on a password, and because a password usually can't be used directly as a cryptographic key, some processing is required.<br><br>A salt provides a large set of keys for any given password, and an iteration count increases the cost of producing keys from a password, thereby also increasing the difficulty of attack.<br><br>Enter your passphrase as the input and then set the relevant options to generate a key." ,
2017-01-31 19:24:56 +01:00
run : Cipher . runPbkdf2 ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Key size" ,
type : "number" ,
value : Cipher . KDF _KEY _SIZE
} ,
{
name : "Iterations" ,
type : "number" ,
value : Cipher . KDF _ITERATIONS
} ,
{
name : "Salt (hex)" ,
type : "string" ,
value : ""
} ,
{
name : "Input format" ,
type : "option" ,
value : Cipher . IO _FORMAT2
} ,
{
name : "Output format" ,
type : "option" ,
value : Cipher . IO _FORMAT3
} ,
]
} ,
"Derive EVP key" : {
description : "EVP is a password-based key derivation function used extensively in OpenSSL. In many applications of cryptography, user security is ultimately dependent on a password, and because a password usually can't be used directly as a cryptographic key, some processing is required.<br><br>A salt provides a large set of keys for any given password, and an iteration count increases the cost of producing keys from a password, thereby also increasing the difficulty of attack.<br><br>Enter your passphrase as the input and then set the relevant options to generate a key." ,
2017-01-31 19:24:56 +01:00
run : Cipher . runEvpkdf ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Key size" ,
type : "number" ,
value : Cipher . KDF _KEY _SIZE
} ,
{
name : "Iterations" ,
type : "number" ,
value : Cipher . KDF _ITERATIONS
} ,
{
name : "Salt (hex)" ,
type : "string" ,
value : ""
} ,
{
name : "Input format" ,
type : "option" ,
value : Cipher . IO _FORMAT2
} ,
{
name : "Output format" ,
type : "option" ,
value : Cipher . IO _FORMAT3
} ,
]
} ,
2016-12-08 01:34:41 +01:00
"Vigenère Encode" : {
description : "The Vigenere cipher is a method of encrypting alphabetic text by using a series of different Caesar ciphers based on the letters of a keyword. It is a simple form of polyalphabetic substitution." ,
2017-01-31 19:24:56 +01:00
run : Cipher . runVigenereEnc ,
2016-12-03 21:54:28 +01:00
highlight : true ,
2017-01-31 19:24:56 +01:00
highlightReverse : true ,
inputType : "string" ,
outputType : "string" ,
2016-12-03 21:54:28 +01:00
args : [
{
2016-12-08 01:34:41 +01:00
name : "Key" ,
2016-12-03 21:54:28 +01:00
type : "string" ,
2016-12-08 01:34:41 +01:00
value : ""
2016-12-03 21:54:28 +01:00
}
]
} ,
2016-12-08 01:34:41 +01:00
"Vigenère Decode" : {
description : "The Vigenere cipher is a method of encrypting alphabetic text by using a series of different Caesar ciphers based on the letters of a keyword. It is a simple form of polyalphabetic substitution." ,
2017-01-31 19:24:56 +01:00
run : Cipher . runVigenereDec ,
2016-12-03 21:54:28 +01:00
highlight : true ,
2017-01-31 19:24:56 +01:00
highlightReverse : true ,
inputType : "string" ,
outputType : "string" ,
2016-12-03 21:54:28 +01:00
args : [
{
2016-12-08 01:34:41 +01:00
name : "Key" ,
2016-12-03 21:54:28 +01:00
type : "string" ,
2016-12-08 01:34:41 +01:00
value : ""
2016-12-03 21:54:28 +01:00
}
]
} ,
2017-02-08 12:51:37 +01:00
"Affine Cipher Encode" : {
2017-02-09 15:17:44 +01:00
description : "The Affine cipher is a type of monoalphabetic substitution cipher, wherein each letter in an alphabet is mapped to its numeric equivalent, encrypted using simple mathematical function, <code>(ax + b) % 26</code>, and converted back to a letter." ,
2017-02-08 12:51:37 +01:00
run : Cipher . runAffineEnc ,
highlight : true ,
highlightReverse : true ,
inputType : "string" ,
outputType : "string" ,
args : [
{
name : "a" ,
type : "number" ,
value : Cipher . AFFINE _A
} ,
{
name : "b" ,
type : "number" ,
value : Cipher . AFFINE _B
}
]
} ,
"Affine Cipher Decode" : {
2017-02-08 18:29:50 +01:00
description : "The Affine cipher is a type of monoalphabetic substitution cipher. To decrypt, each letter in an alphabet is mapped to its numeric equivalent, decrypted by a mathematical function, and converted back to a letter." ,
2017-02-08 12:51:37 +01:00
run : Cipher . runAffineDec ,
highlight : true ,
highlightReverse : true ,
inputType : "string" ,
outputType : "string" ,
args : [
{
name : "a" ,
type : "number" ,
value : Cipher . AFFINE _A
} ,
{
name : "b" ,
type : "number" ,
value : Cipher . AFFINE _B
}
]
} ,
"Atbash Cipher" : {
2017-02-08 18:29:50 +01:00
description : "Atbash is a mono-alphabetic substitution cipher originally used to encode the Hebrew alphabet. It has been modified here for use with the Latin alphabet." ,
2017-02-08 12:51:37 +01:00
run : Cipher . runAtbash ,
highlight : true ,
highlightReverse : true ,
inputType : "string" ,
outputType : "string" ,
args : [ ]
} ,
2016-11-28 11:42:58 +01:00
"Rotate right" : {
description : "Rotates each byte to the right by the number of bits specified. Currently only supports 8-bit values." ,
2017-01-31 19:24:56 +01:00
run : Rotate . runRotr ,
2016-11-28 11:42:58 +01:00
highlight : true ,
2017-01-31 19:24:56 +01:00
highlightReverse : true ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Number of bits" ,
type : "number" ,
value : Rotate . ROTATE _AMOUNT
} ,
{
name : "Rotate as a whole" ,
type : "boolean" ,
value : Rotate . ROTATE _WHOLE
}
]
} ,
"Rotate left" : {
description : "Rotates each byte to the left by the number of bits specified. Currently only supports 8-bit values." ,
2017-01-31 19:24:56 +01:00
run : Rotate . runRotl ,
2016-11-28 11:42:58 +01:00
highlight : true ,
2017-01-31 19:24:56 +01:00
highlightReverse : true ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Number of bits" ,
type : "number" ,
value : Rotate . ROTATE _AMOUNT
} ,
{
name : "Rotate as a whole" ,
type : "boolean" ,
value : Rotate . ROTATE _WHOLE
}
]
} ,
"ROT13" : {
description : "A simple caesar substitution cipher which rotates alphabet characters by the specified amount (default 13)." ,
2017-01-31 19:24:56 +01:00
run : Rotate . runRot13 ,
2016-11-28 11:42:58 +01:00
highlight : true ,
2017-01-31 19:24:56 +01:00
highlightReverse : true ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Rotate lower case chars" ,
type : "boolean" ,
value : Rotate . ROT13 _LOWERCASE
} ,
{
name : "Rotate upper case chars" ,
type : "boolean" ,
value : Rotate . ROT13 _UPPERCASE
} ,
{
name : "Amount" ,
type : "number" ,
value : Rotate . ROT13 _AMOUNT
} ,
]
} ,
2016-11-29 18:53:31 +01:00
"ROT47" : {
2016-12-06 19:43:55 +01:00
description : "A slightly more complex variation of a caesar cipher, which includes ASCII characters from 33 '!' to 126 '~'. Default rotation: 47." ,
2017-01-31 19:24:56 +01:00
run : Rotate . runRot47 ,
2016-11-29 18:53:31 +01:00
highlight : true ,
2017-01-31 19:24:56 +01:00
highlightReverse : true ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-11-29 18:53:31 +01:00
args : [
{
name : "Amount" ,
type : "number" ,
value : Rotate . ROT47 _AMOUNT
} ,
]
} ,
2016-11-28 11:42:58 +01:00
"Strip HTTP headers" : {
description : "Removes HTTP headers from a request or response by looking for the first instance of a double newline." ,
2017-01-31 19:24:56 +01:00
run : HTTP . runStripHeaders ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"Parse User Agent" : {
description : "Attempts to identify and categorise information contained in a user-agent string." ,
2017-01-31 19:24:56 +01:00
run : HTTP . runParseUserAgent ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"Format MAC addresses" : {
description : "Displays given MAC addresses in multiple different formats.<br><br>Expects addresses in a list separated by newlines, spaces or commas.<br><br>WARNING: There are no validity checks." ,
2017-01-31 19:24:56 +01:00
run : MAC . runFormat ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Output case" ,
type : "option" ,
value : MAC . OUTPUT _CASE
} ,
{
name : "No delimiter" ,
type : "boolean" ,
value : MAC . NO _DELIM
} ,
{
name : "Dash delimiter" ,
type : "boolean" ,
value : MAC . DASH _DELIM
} ,
{
name : "Colon delimiter" ,
type : "boolean" ,
value : MAC . COLON _DELIM
} ,
{
name : "Cisco style" ,
type : "boolean" ,
value : MAC . CISCO _STYLE
}
]
} ,
2017-02-10 12:57:23 +01:00
"Encode NetBIOS Name" : {
description : "NetBIOS names as seen across the client interface to NetBIOS are exactly 16 bytes long. Within the NetBIOS-over-TCP protocols, a longer representation is used.<br><br>There are two levels of encoding. The first level maps a NetBIOS name into a domain system name. The second level maps the domain system name into the 'compressed' representation required for interaction with the domain name system.<br><br>This operation carries out the first level of encoding. See RFC 1001 for full details." ,
run : NetBIOS . runEncodeName ,
inputType : "byteArray" ,
outputType : "byteArray" ,
args : [
{
name : "Offset" ,
type : "number" ,
value : NetBIOS . OFFSET
}
]
} ,
"Decode NetBIOS Name" : {
description : "NetBIOS names as seen across the client interface to NetBIOS are exactly 16 bytes long. Within the NetBIOS-over-TCP protocols, a longer representation is used.<br><br>There are two levels of encoding. The first level maps a NetBIOS name into a domain system name. The second level maps the domain system name into the 'compressed' representation required for interaction with the domain name system.<br><br>This operation decodes the first level of encoding. See RFC 1001 for full details." ,
run : NetBIOS . runDecodeName ,
inputType : "byteArray" ,
outputType : "byteArray" ,
args : [
{
name : "Offset" ,
type : "number" ,
value : NetBIOS . OFFSET
}
]
} ,
2016-11-28 11:42:58 +01:00
"Offset checker" : {
description : "Compares multiple inputs (separated by the specified delimiter) and highlights matching characters which appear at the same position in all samples." ,
2017-01-31 19:24:56 +01:00
run : StrUtils . runOffsetChecker ,
inputType : "string" ,
outputType : "html" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Sample delimiter" ,
2017-01-31 19:24:56 +01:00
type : "binaryString" ,
2016-11-28 11:42:58 +01:00
value : StrUtils . OFF _CHK _SAMPLE _DELIMITER
}
]
} ,
"Remove whitespace" : {
description : "Optionally removes all spaces, carriage returns, line feeds, tabs and form feeds from the input data.<br><br>This operation also supports the removal of full stops which are sometimes used to represent non-printable bytes in ASCII output." ,
2017-01-31 19:24:56 +01:00
run : Tidy . runRemoveWhitespace ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Spaces" ,
type : "boolean" ,
value : Tidy . REMOVE _SPACES
} ,
{
name : "Carriage returns (\\r)" ,
type : "boolean" ,
value : Tidy . REMOVE _CARIAGE _RETURNS
} ,
{
name : "Line feeds (\\n)" ,
type : "boolean" ,
value : Tidy . REMOVE _LINE _FEEDS
} ,
{
name : "Tabs" ,
type : "boolean" ,
value : Tidy . REMOVE _TABS
} ,
{
name : "Form feeds (\\f)" ,
type : "boolean" ,
value : Tidy . REMOVE _FORM _FEEDS
} ,
{
name : "Full stops" ,
type : "boolean" ,
value : Tidy . REMOVE _FULL _STOPS
}
]
} ,
"Remove null bytes" : {
description : "Removes all null bytes (<code>0x00</code>) from the input." ,
2017-01-31 19:24:56 +01:00
run : Tidy . runRemoveNulls ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"Drop bytes" : {
description : "Cuts the specified number of bytes out of the data." ,
2017-01-31 19:24:56 +01:00
run : Tidy . runDropBytes ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Start" ,
type : "number" ,
value : Tidy . DROP _START
} ,
{
name : "Length" ,
type : "number" ,
value : Tidy . DROP _LENGTH
} ,
{
name : "Apply to each line" ,
type : "boolean" ,
value : Tidy . APPLY _TO _EACH _LINE
}
]
} ,
"Take bytes" : {
description : "Takes a slice of the specified number of bytes from the data." ,
2017-01-31 19:24:56 +01:00
run : Tidy . runTakeBytes ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Start" ,
type : "number" ,
value : Tidy . TAKE _START
} ,
{
name : "Length" ,
type : "number" ,
value : Tidy . TAKE _LENGTH
} ,
{
name : "Apply to each line" ,
type : "boolean" ,
value : Tidy . APPLY _TO _EACH _LINE
}
]
} ,
"Pad lines" : {
description : "Add the specified number of the specified character to the beginning or end of each line" ,
2017-01-31 19:24:56 +01:00
run : Tidy . runPad ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Position" ,
type : "option" ,
value : Tidy . PAD _POSITION
} ,
{
name : "Length" ,
type : "number" ,
value : Tidy . PAD _LENGTH
} ,
{
name : "Character" ,
2017-01-31 19:24:56 +01:00
type : "binaryShortString" ,
2016-11-28 11:42:58 +01:00
value : Tidy . PAD _CHAR
}
]
} ,
"Reverse" : {
description : "Reverses the input string." ,
2017-01-31 19:24:56 +01:00
run : SeqUtils . runReverse ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "By" ,
type : "option" ,
value : SeqUtils . REVERSE _BY
}
]
} ,
"Sort" : {
description : "Alphabetically sorts strings separated by the specified delimiter.<br><br>The IP address option supports IPv4 only." ,
2017-01-31 19:24:56 +01:00
run : SeqUtils . runSort ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Delimiter" ,
type : "option" ,
value : SeqUtils . DELIMITER _OPTIONS
} ,
{
name : "Reverse" ,
type : "boolean" ,
value : SeqUtils . SORT _REVERSE
} ,
{
name : "Order" ,
type : "option" ,
value : SeqUtils . SORT _ORDER
}
]
} ,
"Unique" : {
description : "Removes duplicate strings from the input." ,
2017-01-31 19:24:56 +01:00
run : SeqUtils . runUnique ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Delimiter" ,
type : "option" ,
value : SeqUtils . DELIMITER _OPTIONS
}
]
} ,
"Count occurrences" : {
description : "Counts the number of times the provided string occurs in the input." ,
2017-01-31 19:24:56 +01:00
run : SeqUtils . runCount ,
inputType : "string" ,
outputType : "number" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Search string" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : SeqUtils . SEARCH _TYPE
2016-11-28 11:42:58 +01:00
}
]
} ,
"Add line numbers" : {
description : "Adds line numbers to the output." ,
2017-01-31 19:24:56 +01:00
run : SeqUtils . runAddLineNumbers ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"Remove line numbers" : {
description : "Removes line numbers from the output if they can be trivially detected." ,
2017-01-31 19:24:56 +01:00
run : SeqUtils . runRemoveLineNumbers ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"Find / Replace" : {
description : "Replaces all occurrences of the first string with the second.<br><br>The three match options are only relevant to regex search strings." ,
2017-01-31 19:24:56 +01:00
run : StrUtils . runFindReplace ,
manualBake : true ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Find" ,
2017-01-31 19:24:56 +01:00
type : "toggleString" ,
2016-11-28 11:42:58 +01:00
value : "" ,
2017-01-31 19:24:56 +01:00
toggleValues : StrUtils . SEARCH _TYPE
2016-11-28 11:42:58 +01:00
} ,
{
name : "Replace" ,
2017-01-31 19:24:56 +01:00
type : "binaryString" ,
2016-11-28 11:42:58 +01:00
value : ""
} ,
{
name : "Global match" ,
type : "boolean" ,
value : StrUtils . FIND _REPLACE _GLOBAL ,
} ,
{
name : "Case insensitive" ,
type : "boolean" ,
value : StrUtils . FIND _REPLACE _CASE ,
} ,
{
name : "Multiline matching" ,
type : "boolean" ,
value : StrUtils . FIND _REPLACE _MULTILINE ,
} ,
2017-02-08 12:51:37 +01:00
2016-11-28 11:42:58 +01:00
]
} ,
"To Upper case" : {
description : "Converts the input string to upper case, optionally limiting scope to only the first character in each word, sentence or paragraph." ,
2017-01-31 19:24:56 +01:00
run : StrUtils . runUpper ,
2016-11-28 11:42:58 +01:00
highlight : true ,
2017-01-31 19:24:56 +01:00
highlightReverse : true ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Scope" ,
type : "option" ,
value : StrUtils . CASE _SCOPE
}
]
} ,
"To Lower case" : {
description : "Converts every character in the input to lower case." ,
2017-01-31 19:24:56 +01:00
run : StrUtils . runLower ,
2016-11-28 11:42:58 +01:00
highlight : true ,
2017-01-31 19:24:56 +01:00
highlightReverse : true ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"Split" : {
description : "Splits a string into sections around a given delimiter." ,
2017-01-31 19:24:56 +01:00
run : StrUtils . runSplit ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Split delimiter" ,
2017-01-31 19:24:56 +01:00
type : "binaryShortString" ,
2016-11-28 11:42:58 +01:00
value : StrUtils . SPLIT _DELIM
} ,
{
name : "Join delimiter" ,
type : "option" ,
value : StrUtils . DELIMITER _OPTIONS
}
]
} ,
2016-12-17 01:53:06 +01:00
"Filter" : {
2016-12-23 15:36:16 +01:00
description : "Splits up the input using the specified delimiter and then filters each branch based on a regular expression." ,
2017-01-31 19:24:56 +01:00
run : StrUtils . runFilter ,
manualBake : true ,
inputType : "string" ,
outputType : "string" ,
2016-12-17 01:53:06 +01:00
args : [
{
name : "Delimiter" ,
type : "option" ,
value : StrUtils . DELIMITER _OPTIONS
} ,
{
name : "Regex" ,
type : "string" ,
value : ""
} ,
{
name : "Invert condition" ,
type : "boolean" ,
value : SeqUtils . SORT _REVERSE
} ,
]
} ,
2016-11-28 11:42:58 +01:00
"Strings" : {
description : "Extracts all strings from the input." ,
2017-01-31 19:24:56 +01:00
run : Extract . runStrings ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Minimum length" ,
type : "number" ,
value : Extract . MIN _STRING _LEN
} ,
{
name : "Display total" ,
type : "boolean" ,
value : Extract . DISPLAY _TOTAL
}
]
} ,
"Extract IP addresses" : {
description : "Extracts all IPv4 and IPv6 addresses.<br><br>Warning: Given a string <code>710.65.0.456</code>, this will match <code>10.65.0.45</code> so always check the original input!" ,
2017-01-31 19:24:56 +01:00
run : Extract . runIp ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "IPv4" ,
type : "boolean" ,
value : Extract . INCLUDE _IPV4
} ,
{
name : "IPv6" ,
type : "boolean" ,
value : Extract . INCLUDE _IPV6
} ,
{
name : "Remove local IPv4 addresses" ,
type : "boolean" ,
value : Extract . REMOVE _LOCAL
} ,
{
name : "Display total" ,
type : "boolean" ,
value : Extract . DISPLAY _TOTAL
}
]
} ,
"Extract email addresses" : {
description : "Extracts all email addresses from the input." ,
2017-01-31 19:24:56 +01:00
run : Extract . runEmail ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Display total" ,
type : "boolean" ,
value : Extract . DISPLAY _TOTAL
}
]
} ,
"Extract MAC addresses" : {
description : "Extracts all Media Access Control (MAC) addresses from the input." ,
2017-01-31 19:24:56 +01:00
run : Extract . runMac ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Display total" ,
type : "boolean" ,
value : Extract . DISPLAY _TOTAL
}
]
} ,
"Extract URLs" : {
description : "Extracts Uniform Resource Locators (URLs) from the input. The protocol (http, ftp etc.) is required otherwise there will be far too many false positives." ,
2017-01-31 19:24:56 +01:00
run : Extract . runUrls ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Display total" ,
type : "boolean" ,
value : Extract . DISPLAY _TOTAL
}
]
} ,
"Extract domains" : {
description : "Extracts domain names with common Top-Level Domains (TLDs).<br>Note that this will not include paths. Use <strong>Extract URLs</strong> to find entire URLs." ,
2017-01-31 19:24:56 +01:00
run : Extract . runDomains ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Display total" ,
type : "boolean" ,
value : Extract . DISPLAY _TOTAL
}
]
} ,
"Extract file paths" : {
description : "Extracts anything that looks like a Windows or UNIX file path.<br><br>Note that if UNIX is selected, there will likely be a lot of false positives." ,
2017-01-31 19:24:56 +01:00
run : Extract . runFilePaths ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Windows" ,
type : "boolean" ,
value : Extract . INCLUDE _WIN _PATH
} ,
{
name : "UNIX" ,
type : "boolean" ,
value : Extract . INCLUDE _UNIX _PATH
} ,
{
name : "Display total" ,
type : "boolean" ,
value : Extract . DISPLAY _TOTAL
}
]
} ,
"Extract dates" : {
description : "Extracts dates in the following formats<ul><li><code>yyyy-mm-dd</code></li><li><code>dd/mm/yyyy</code></li><li><code>mm/dd/yyyy</code></li></ul>Dividers can be any of /, -, . or space" ,
2017-01-31 19:24:56 +01:00
run : Extract . runDates ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Display total" ,
type : "boolean" ,
value : Extract . DISPLAY _TOTAL
}
]
} ,
"Regular expression" : {
2017-02-18 17:13:19 +01:00
description : "Define your own regular expression (regex) to search the input data with, optionally choosing from a list of pre-defined patterns." ,
2017-01-31 19:24:56 +01:00
run : StrUtils . runRegex ,
manualBake : true ,
inputType : "string" ,
outputType : "html" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Built in regexes" ,
2017-01-31 19:24:56 +01:00
type : "populateOption" ,
2016-11-28 11:42:58 +01:00
value : StrUtils . REGEX _PRE _POPULATE ,
target : 1 ,
} ,
{
name : "Regex" ,
type : "text" ,
value : ""
} ,
{
name : "Case insensitive" ,
type : "boolean" ,
value : StrUtils . REGEX _CASE _INSENSITIVE
} ,
{
name : "Multiline matching" ,
type : "boolean" ,
value : StrUtils . REGEX _MULTILINE _MATCHING
} ,
{
name : "Display total" ,
type : "boolean" ,
value : StrUtils . DISPLAY _TOTAL
} ,
{
name : "Output format" ,
type : "option" ,
value : StrUtils . OUTPUT _FORMAT
} ,
]
} ,
2016-11-29 19:28:07 +01:00
"XPath expression" : {
2016-12-20 19:49:25 +01:00
description : "Extract information from an XML document with an XPath query" ,
2017-01-31 19:24:56 +01:00
run : Code . runXpath ,
inputType : "string" ,
outputType : "string" ,
2016-11-29 19:28:07 +01:00
args : [
{
name : "XPath" ,
type : "string" ,
2016-12-20 19:49:25 +01:00
value : Code . XPATH _INITIAL
2016-11-29 19:28:07 +01:00
} ,
{
name : "Result delimiter" ,
2017-01-31 19:24:56 +01:00
type : "binaryShortString" ,
2016-12-20 19:49:25 +01:00
value : Code . XPATH _DELIMITER
2016-11-29 19:28:07 +01:00
}
]
} ,
2016-12-02 12:49:49 +01:00
"CSS selector" : {
2016-12-20 19:49:25 +01:00
description : "Extract information from an HTML document with a CSS selector" ,
2017-02-07 16:04:10 +01:00
run : Code . runCSSQuery ,
2017-01-31 19:24:56 +01:00
inputType : "string" ,
outputType : "string" ,
2016-12-02 12:49:49 +01:00
args : [
{
name : "CSS selector" ,
type : "string" ,
2016-12-20 19:49:25 +01:00
value : Code . CSS _SELECTOR _INITIAL
2016-12-02 12:49:49 +01:00
} ,
{
name : "Delimiter" ,
2017-01-31 19:24:56 +01:00
type : "binaryShortString" ,
2016-12-20 19:49:25 +01:00
value : Code . CSS _QUERY _DELIMITER
2016-12-02 12:49:49 +01:00
} ,
]
} ,
2016-11-28 11:42:58 +01:00
"From UNIX Timestamp" : {
description : "Converts a UNIX timestamp to a datetime string.<br><br>e.g. <code>978346800</code> becomes <code>Mon 1 January 2001 11:00:00 UTC</code>" ,
2017-01-31 19:24:56 +01:00
run : DateTime . runFromUnixTimestamp ,
inputType : "number" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Units" ,
type : "option" ,
value : DateTime . UNITS
}
]
} ,
"To UNIX Timestamp" : {
description : "Parses a datetime string and returns the corresponding UNIX timestamp.<br><br>e.g. <code>Mon 1 January 2001 11:00:00 UTC</code> becomes <code>978346800</code>" ,
2017-01-31 19:24:56 +01:00
run : DateTime . runToUnixTimestamp ,
inputType : "string" ,
outputType : "number" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Units" ,
type : "option" ,
value : DateTime . UNITS
}
]
} ,
"Translate DateTime Format" : {
description : "Parses a datetime string in one format and re-writes it in another.<br><br>Run with no input to see the relevant format string examples." ,
2017-01-31 19:24:56 +01:00
run : DateTime . runTranslateFormat ,
inputType : "string" ,
outputType : "html" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Built in formats" ,
2017-01-31 19:24:56 +01:00
type : "populateOption" ,
2016-11-28 11:42:58 +01:00
value : DateTime . DATETIME _FORMATS ,
target : 1
} ,
{
name : "Input format string" ,
2017-01-31 19:24:56 +01:00
type : "binaryString" ,
2016-11-28 11:42:58 +01:00
value : DateTime . INPUT _FORMAT _STRING
} ,
{
name : "Input timezone" ,
type : "option" ,
value : DateTime . TIMEZONES
} ,
{
name : "Output format string" ,
2017-01-31 19:24:56 +01:00
type : "binaryString" ,
2016-11-28 11:42:58 +01:00
value : DateTime . OUTPUT _FORMAT _STRING
} ,
{
name : "Output timezone" ,
type : "option" ,
value : DateTime . TIMEZONES
}
]
} ,
"Parse DateTime" : {
description : "Parses a DateTime string in your specified format and displays it in whichever timezone you choose with the following information:<ul><li>Date</li><li>Time</li><li>Period (AM/PM)</li><li>Timezone</li><li>UTC offset</li><li>Daylight Saving Time</li><li>Leap year</li><li>Days in this month</li><li>Day of year</li><li>Week number</li><li>Quarter</li></ul>Run with no input to see format string examples if required." ,
2017-01-31 19:24:56 +01:00
run : DateTime . runParse ,
inputType : "string" ,
outputType : "html" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Built in formats" ,
2017-01-31 19:24:56 +01:00
type : "populateOption" ,
2016-11-28 11:42:58 +01:00
value : DateTime . DATETIME _FORMATS ,
target : 1
} ,
{
name : "Input format string" ,
2017-01-31 19:24:56 +01:00
type : "binaryString" ,
2016-11-28 11:42:58 +01:00
value : DateTime . INPUT _FORMAT _STRING
} ,
{
name : "Input timezone" ,
type : "option" ,
value : DateTime . TIMEZONES
} ,
]
} ,
"Convert distance" : {
description : "Converts a unit of distance to another format." ,
2017-01-31 19:24:56 +01:00
run : Convert . runDistance ,
inputType : "number" ,
outputType : "number" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Input units" ,
type : "option" ,
value : Convert . DISTANCE _UNITS
} ,
{
name : "Output units" ,
type : "option" ,
value : Convert . DISTANCE _UNITS
}
]
} ,
"Convert area" : {
description : "Converts a unit of area to another format." ,
2017-01-31 19:24:56 +01:00
run : Convert . runArea ,
inputType : "number" ,
outputType : "number" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Input units" ,
type : "option" ,
value : Convert . AREA _UNITS
} ,
{
name : "Output units" ,
type : "option" ,
value : Convert . AREA _UNITS
}
]
} ,
"Convert mass" : {
description : "Converts a unit of mass to another format." ,
2017-01-31 19:24:56 +01:00
run : Convert . runMass ,
inputType : "number" ,
outputType : "number" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Input units" ,
type : "option" ,
value : Convert . MASS _UNITS
} ,
{
name : "Output units" ,
type : "option" ,
value : Convert . MASS _UNITS
}
]
} ,
"Convert speed" : {
description : "Converts a unit of speed to another format." ,
2017-01-31 19:24:56 +01:00
run : Convert . runSpeed ,
inputType : "number" ,
outputType : "number" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Input units" ,
type : "option" ,
value : Convert . SPEED _UNITS
} ,
{
name : "Output units" ,
type : "option" ,
value : Convert . SPEED _UNITS
}
]
} ,
"Convert data units" : {
description : "Converts a unit of data to another format." ,
2017-01-31 19:24:56 +01:00
run : Convert . runDataSize ,
inputType : "number" ,
outputType : "number" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Input units" ,
type : "option" ,
value : Convert . DATA _UNITS
} ,
{
name : "Output units" ,
type : "option" ,
value : Convert . DATA _UNITS
}
]
} ,
"Raw Deflate" : {
description : "Compresses data using the deflate algorithm with no headers." ,
2017-01-31 19:24:56 +01:00
run : Compress . runRawDeflate ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Compression type" ,
type : "option" ,
value : Compress . COMPRESSION _TYPE
}
]
} ,
"Raw Inflate" : {
description : "Decompresses data which has been compressed using the deflate algorithm with no headers." ,
2017-01-31 19:24:56 +01:00
run : Compress . runRawInflate ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Start index" ,
type : "number" ,
value : Compress . INFLATE _INDEX
} ,
{
name : "Initial output buffer size" ,
type : "number" ,
value : Compress . INFLATE _BUFFER _SIZE
} ,
{
name : "Buffer expansion type" ,
type : "option" ,
value : Compress . INFLATE _BUFFER _TYPE
} ,
{
name : "Resize buffer after decompression" ,
type : "boolean" ,
value : Compress . INFLATE _RESIZE
} ,
{
name : "Verify result" ,
type : "boolean" ,
value : Compress . INFLATE _VERIFY
}
]
} ,
"Zlib Deflate" : {
description : "Compresses data using the deflate algorithm adding zlib headers." ,
2017-01-31 19:24:56 +01:00
run : Compress . runZlibDeflate ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Compression type" ,
type : "option" ,
value : Compress . COMPRESSION _TYPE
}
]
} ,
"Zlib Inflate" : {
description : "Decompresses data which has been compressed using the deflate algorithm with zlib headers." ,
2017-01-31 19:24:56 +01:00
run : Compress . runZlibInflate ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Start index" ,
type : "number" ,
value : Compress . INFLATE _INDEX
} ,
{
name : "Initial output buffer size" ,
type : "number" ,
value : Compress . INFLATE _BUFFER _SIZE
} ,
{
name : "Buffer expansion type" ,
type : "option" ,
value : Compress . INFLATE _BUFFER _TYPE
} ,
{
name : "Resize buffer after decompression" ,
type : "boolean" ,
value : Compress . INFLATE _RESIZE
} ,
{
name : "Verify result" ,
type : "boolean" ,
value : Compress . INFLATE _VERIFY
}
]
} ,
"Gzip" : {
description : "Compresses data using the deflate algorithm with gzip headers." ,
2017-01-31 19:24:56 +01:00
run : Compress . runGzip ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Compression type" ,
type : "option" ,
value : Compress . COMPRESSION _TYPE
} ,
{
name : "Filename (optional)" ,
type : "string" ,
value : ""
} ,
{
name : "Comment (optional)" ,
type : "string" ,
value : ""
} ,
{
name : "Include file checksum" ,
type : "boolean" ,
value : Compress . GZIP _CHECKSUM
}
]
} ,
"Gunzip" : {
description : "Decompresses data which has been compressed using the deflate algorithm with gzip headers." ,
2017-01-31 19:24:56 +01:00
run : Compress . runGunzip ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"Zip" : {
description : "Compresses data using the PKZIP algorithm with the given filename.<br><br>No support for multiple files at this time." ,
2017-01-31 19:24:56 +01:00
run : Compress . runPkzip ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Filename" ,
type : "string" ,
value : Compress . PKZIP _FILENAME
} ,
{
name : "Comment" ,
type : "string" ,
value : ""
} ,
{
name : "Password" ,
2017-01-31 19:24:56 +01:00
type : "binaryString" ,
2016-11-28 11:42:58 +01:00
value : ""
} ,
{
name : "Compression method" ,
type : "option" ,
value : Compress . COMPRESSION _METHOD
} ,
{
name : "Operating system" ,
type : "option" ,
value : Compress . OS
} ,
{
name : "Compression type" ,
type : "option" ,
value : Compress . COMPRESSION _TYPE
}
]
} ,
"Unzip" : {
description : "Decompresses data using the PKZIP algorithm and displays it per file, with support for passwords." ,
2017-01-31 19:24:56 +01:00
run : Compress . runPkunzip ,
inputType : "byteArray" ,
outputType : "html" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Password" ,
2017-01-31 19:24:56 +01:00
type : "binaryString" ,
2016-11-28 11:42:58 +01:00
value : ""
} ,
{
name : "Verify result" ,
type : "boolean" ,
value : Compress . PKUNZIP _VERIFY
}
]
} ,
"Bzip2 Decompress" : {
description : "Decompresses data using the Bzip2 algorithm." ,
2017-01-31 19:24:56 +01:00
run : Compress . runBzip2Decompress ,
inputType : "byteArray" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"Generic Code Beautify" : {
description : "Attempts to pretty print C-style languages such as C, C++, C#, Java, PHP, JavaScript etc.<br><br>This will not do a perfect job, and the resulting code may not work any more. This operation is designed purely to make obfuscated or minified code more easy to read and understand.<br><br>Things which will not work properly:<ul><li>For loop formatting</li><li>Do-While loop formatting</li><li>Switch/Case indentation</li><li>Certain bit shift operators</li></ul>" ,
2017-01-31 19:24:56 +01:00
run : Code . runGenericBeautify ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"JavaScript Parser" : {
description : "Returns an Abstract Syntax Tree for valid JavaScript code." ,
2017-01-31 19:24:56 +01:00
run : JS . runParse ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Location info" ,
type : "boolean" ,
value : JS . PARSE _LOC
} ,
{
name : "Range info" ,
type : "boolean" ,
value : JS . PARSE _RANGE
} ,
{
name : "Include tokens array" ,
type : "boolean" ,
value : JS . PARSE _TOKENS
} ,
{
name : "Include comments array" ,
type : "boolean" ,
value : JS . PARSE _COMMENT
} ,
{
name : "Report errors and try to continue" ,
type : "boolean" ,
value : JS . PARSE _TOLERANT
} ,
]
} ,
"JavaScript Beautify" : {
description : "Parses and pretty prints valid JavaScript code. Also works with JavaScript Object Notation (JSON)." ,
2017-01-31 19:24:56 +01:00
run : JS . runBeautify ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Indent string" ,
2017-01-31 19:24:56 +01:00
type : "binaryShortString" ,
2016-11-28 11:42:58 +01:00
value : JS . BEAUTIFY _INDENT
} ,
{
name : "Quotes" ,
type : "option" ,
value : JS . BEAUTIFY _QUOTES
} ,
{
name : "Semicolons before closing braces" ,
type : "boolean" ,
value : JS . BEAUTIFY _SEMICOLONS
} ,
{
name : "Include comments" ,
type : "boolean" ,
value : JS . BEAUTIFY _COMMENT
} ,
]
} ,
"JavaScript Minify" : {
description : "Compresses JavaScript code." ,
2017-01-31 19:24:56 +01:00
run : JS . runMinify ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"XML Beautify" : {
description : "Indents and prettifies eXtensible Markup Language (XML) code." ,
2017-01-31 19:24:56 +01:00
run : Code . runXmlBeautify ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Indent string" ,
2017-01-31 19:24:56 +01:00
type : "binaryShortString" ,
2016-11-28 11:42:58 +01:00
value : Code . BEAUTIFY _INDENT
}
]
} ,
"JSON Beautify" : {
description : "Indents and prettifies JavaScript Object Notation (JSON) code." ,
2017-01-31 19:24:56 +01:00
run : Code . runJsonBeautify ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Indent string" ,
2017-01-31 19:24:56 +01:00
type : "binaryShortString" ,
2016-11-28 11:42:58 +01:00
value : Code . BEAUTIFY _INDENT
}
]
} ,
"CSS Beautify" : {
description : "Indents and prettifies Cascading Style Sheets (CSS) code." ,
2017-01-31 19:24:56 +01:00
run : Code . runCssBeautify ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Indent string" ,
2017-01-31 19:24:56 +01:00
type : "binaryShortString" ,
2016-11-28 11:42:58 +01:00
value : Code . BEAUTIFY _INDENT
}
]
} ,
"SQL Beautify" : {
description : "Indents and prettifies Structured Query Language (SQL) code." ,
2017-01-31 19:24:56 +01:00
run : Code . runSqlBeautify ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Indent string" ,
2017-01-31 19:24:56 +01:00
type : "binaryShortString" ,
2016-11-28 11:42:58 +01:00
value : Code . BEAUTIFY _INDENT
}
]
} ,
"XML Minify" : {
description : "Compresses eXtensible Markup Language (XML) code." ,
2017-01-31 19:24:56 +01:00
run : Code . runXmlMinify ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Preserve comments" ,
type : "boolean" ,
value : Code . PRESERVE _COMMENTS
}
]
} ,
"JSON Minify" : {
description : "Compresses JavaScript Object Notation (JSON) code." ,
2017-01-31 19:24:56 +01:00
run : Code . runJsonMinify ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"CSS Minify" : {
description : "Compresses Cascading Style Sheets (CSS) code." ,
2017-01-31 19:24:56 +01:00
run : Code . runCssMinify ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Preserve comments" ,
type : "boolean" ,
value : Code . PRESERVE _COMMENTS
}
]
} ,
"SQL Minify" : {
description : "Compresses Structured Query Language (SQL) code." ,
2017-01-31 19:24:56 +01:00
run : Code . runSqlMinify ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"Analyse hash" : {
description : "Tries to determine information about a given hash and suggests which algorithm may have been used to generate it based on its length." ,
2017-01-31 19:24:56 +01:00
run : Hash . runAnalyse ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
2017-01-16 17:40:43 +01:00
"MD2" : {
description : "The MD2 (Message-Digest 2) algorithm is a cryptographic hash function developed by Ronald Rivest in 1989. The algorithm is optimized for 8-bit computers.<br><br>Although MD2 is no longer considered secure, even as of 2014, it remains in use in public key infrastructures as part of certificates generated with MD2 and RSA." ,
2017-01-31 19:24:56 +01:00
run : Hash . runMD2 ,
inputType : "string" ,
outputType : "string" ,
2017-01-16 17:40:43 +01:00
args : [ ]
} ,
"MD4" : {
description : "The MD4 (Message-Digest 4) algorithm is a cryptographic hash function developed by Ronald Rivest in 1990. The digest length is 128 bits. The algorithm has influenced later designs, such as the MD5, SHA-1 and RIPEMD algorithms.<br><br>The security of MD4 has been severely compromised." ,
2017-01-31 19:24:56 +01:00
run : Hash . runMD4 ,
inputType : "string" ,
outputType : "string" ,
2017-01-16 17:40:43 +01:00
args : [ ]
} ,
2016-11-28 11:42:58 +01:00
"MD5" : {
description : "MD5 (Message-Digest 5) is a widely used hash function. It has been used in a variety of security applications and is also commonly used to check the integrity of files.<br><br>However, MD5 is not collision resistant and it isn't suitable for applications like SSL/TLS certificates or digital signatures that rely on this property." ,
2017-01-31 19:24:56 +01:00
run : Hash . runMD5 ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
2017-01-16 17:40:43 +01:00
"SHA0" : {
description : "SHA-0 is a retronym applied to the original version of the 160-bit hash function published in 1993 under the name 'SHA'. It was withdrawn shortly after publication due to an undisclosed 'significant flaw' and replaced by the slightly revised version SHA-1." ,
2017-01-31 19:24:56 +01:00
run : Hash . runSHA0 ,
inputType : "string" ,
outputType : "string" ,
2017-01-16 17:40:43 +01:00
args : [ ]
} ,
2016-11-28 11:42:58 +01:00
"SHA1" : {
description : "The SHA (Secure Hash Algorithm) hash functions were designed by the NSA. SHA-1 is the most established of the existing SHA hash functions and it is used in a variety of security applications and protocols.<br><br>However, SHA-1's collision resistance has been weakening as new attacks are discovered or improved." ,
2017-01-31 19:24:56 +01:00
run : Hash . runSHA1 ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"SHA224" : {
description : "SHA-224 is largely identical to SHA-256 but is truncated to 224 bytes." ,
2017-01-31 19:24:56 +01:00
run : Hash . runSHA224 ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"SHA256" : {
description : "SHA-256 is one of the four variants in the SHA-2 set. It isn't as widely used as SHA-1, though it provides much better security." ,
2017-01-31 19:24:56 +01:00
run : Hash . runSHA256 ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"SHA384" : {
description : "SHA-384 is largely identical to SHA-512 but is truncated to 384 bytes." ,
2017-01-31 19:24:56 +01:00
run : Hash . runSHA384 ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"SHA512" : {
description : "SHA-512 is largely identical to SHA-256 but operates on 64-bit words rather than 32." ,
2017-01-31 19:24:56 +01:00
run : Hash . runSHA512 ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"SHA3" : {
description : "This is an implementation of Keccak[c=2d]. SHA3 functions based on different implementations of Keccak will give different results." ,
2017-01-31 19:24:56 +01:00
run : Hash . runSHA3 ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Output length" ,
type : "option" ,
value : Hash . SHA3 _LENGTH
}
]
} ,
"RIPEMD-160" : {
description : "RIPEMD (RACE Integrity Primitives Evaluation Message Digest) is a family of cryptographic hash functions developed in Leuven, Belgium, by Hans Dobbertin, Antoon Bosselaers and Bart Preneel at the COSIC research group at the Katholieke Universiteit Leuven, and first published in 1996.<br><br>RIPEMD was based upon the design principles used in MD4, and is similar in performance to the more popular SHA-1.<br><br>RIPEMD-160 is an improved, 160-bit version of the original RIPEMD, and the most common version in the family." ,
2017-01-31 19:24:56 +01:00
run : Hash . runRIPEMD160 ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"HMAC" : {
description : "Keyed-Hash Message Authentication Codes (HMAC) are a mechanism for message authentication using cryptographic hash functions." ,
2017-01-31 19:24:56 +01:00
run : Hash . runHMAC ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Password" ,
2017-01-31 19:24:56 +01:00
type : "binaryString" ,
2016-11-28 11:42:58 +01:00
value : ""
} ,
{
name : "Hashing function" ,
type : "option" ,
value : Hash . HMAC _FUNCTIONS
} ,
]
} ,
2017-01-17 16:52:24 +01:00
"Fletcher-8 Checksum" : {
description : "The Fletcher checksum is an algorithm for computing a position-dependent checksum devised by John Gould Fletcher at Lawrence Livermore Labs in the late 1970s.<br><br>The objective of the Fletcher checksum was to provide error-detection properties approaching those of a cyclic redundancy check but with the lower computational effort associated with summation techniques." ,
2017-01-31 19:24:56 +01:00
run : Checksum . runFletcher8 ,
inputType : "byteArray" ,
outputType : "string" ,
2017-01-17 16:52:24 +01:00
args : [ ]
} ,
2016-11-28 11:42:58 +01:00
"Fletcher-16 Checksum" : {
description : "The Fletcher checksum is an algorithm for computing a position-dependent checksum devised by John Gould Fletcher at Lawrence Livermore Labs in the late 1970s.<br><br>The objective of the Fletcher checksum was to provide error-detection properties approaching those of a cyclic redundancy check but with the lower computational effort associated with summation techniques." ,
2017-01-31 19:24:56 +01:00
run : Checksum . runFletcher16 ,
inputType : "byteArray" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
2017-01-17 16:52:24 +01:00
"Fletcher-32 Checksum" : {
description : "The Fletcher checksum is an algorithm for computing a position-dependent checksum devised by John Gould Fletcher at Lawrence Livermore Labs in the late 1970s.<br><br>The objective of the Fletcher checksum was to provide error-detection properties approaching those of a cyclic redundancy check but with the lower computational effort associated with summation techniques." ,
2017-01-31 19:24:56 +01:00
run : Checksum . runFletcher32 ,
inputType : "byteArray" ,
outputType : "string" ,
2017-01-17 16:52:24 +01:00
args : [ ]
} ,
"Fletcher-64 Checksum" : {
description : "The Fletcher checksum is an algorithm for computing a position-dependent checksum devised by John Gould Fletcher at Lawrence Livermore Labs in the late 1970s.<br><br>The objective of the Fletcher checksum was to provide error-detection properties approaching those of a cyclic redundancy check but with the lower computational effort associated with summation techniques." ,
2017-01-31 19:24:56 +01:00
run : Checksum . runFletcher64 ,
inputType : "byteArray" ,
outputType : "string" ,
2017-01-17 16:52:24 +01:00
args : [ ]
} ,
2016-11-28 11:42:58 +01:00
"Adler-32 Checksum" : {
description : "Adler-32 is a checksum algorithm which was invented by Mark Adler in 1995, and is a modification of the Fletcher checksum. Compared to a cyclic redundancy check of the same length, it trades reliability for speed (preferring the latter).<br><br>Adler-32 is more reliable than Fletcher-16, and slightly less reliable than Fletcher-32." ,
2017-01-31 19:24:56 +01:00
run : Checksum . runAdler32 ,
inputType : "byteArray" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"CRC-32 Checksum" : {
description : "A cyclic redundancy check (CRC) is an error-detecting code commonly used in digital networks and storage devices to detect accidental changes to raw data.<br><br>The CRC was invented by W. Wesley Peterson in 1961; the 32-bit CRC function of Ethernet and many other standards is the work of several researchers and was published in 1975." ,
2017-01-31 19:24:56 +01:00
run : Checksum . runCRC32 ,
inputType : "byteArray" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"Generate all hashes" : {
description : "Generates all available hashes and checksums for the input." ,
2017-01-31 19:24:56 +01:00
run : Hash . runAll ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"Entropy" : {
description : "Calculates the Shannon entropy of the input data which gives an idea of its randomness. 8 is the maximum." ,
2017-01-31 19:24:56 +01:00
run : Entropy . runEntropy ,
inputType : "byteArray" ,
outputType : "html" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Chunk size" ,
type : "number" ,
value : Entropy . CHUNK _SIZE
}
]
} ,
"Frequency distribution" : {
description : "Displays the distribution of bytes in the data as a graph." ,
2017-01-31 19:24:56 +01:00
run : Entropy . runFreqDistrib ,
inputType : "byteArray" ,
outputType : "html" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Show 0%'s" ,
type : "boolean" ,
value : Entropy . FREQ _ZEROS
}
]
} ,
"Numberwang" : {
description : "Based on the popular gameshow by Mitchell and Webb." ,
run : Numberwang . run ,
2017-01-31 19:24:56 +01:00
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"Parse X.509 certificate" : {
description : "X.509 is an ITU-T standard for a public key infrastructure (PKI) and Privilege Management Infrastructure (PMI). It is commonly involved with SSL/TLS security.<br><br>This operation displays the contents of a certificate in a human readable format, similar to the openssl command line tool." ,
2017-01-31 19:24:56 +01:00
run : PublicKey . runParseX509 ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Input format" ,
type : "option" ,
value : PublicKey . X509 _INPUT _FORMAT
}
]
} ,
"PEM to Hex" : {
description : "Converts PEM (Privacy Enhanced Mail) format to a hexadecimal DER (Distinguished Encoding Rules) string." ,
2017-01-31 19:24:56 +01:00
run : PublicKey . runPemToHex ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"Hex to PEM" : {
description : "Converts a hexadecimal DER (Distinguished Encoding Rules) string into PEM (Privacy Enhanced Mail) format." ,
2017-01-31 19:24:56 +01:00
run : PublicKey . runHexToPem ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Header string" ,
type : "string" ,
value : PublicKey . PEM _HEADER _STRING
}
]
} ,
"Hex to Object Identifier" : {
description : "Converts a hexadecimal string into an object identifier (OID)." ,
2017-01-31 19:24:56 +01:00
run : PublicKey . runHexToObjectIdentifier ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"Object Identifier to Hex" : {
description : "Converts an object identifier (OID) into a hexadecimal string." ,
2017-01-31 19:24:56 +01:00
run : PublicKey . runObjectIdentifierToHex ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"Parse ASN.1 hex string" : {
description : "Abstract Syntax Notation One (ASN.1) is a standard and notation that describes rules and structures for representing, encoding, transmitting, and decoding data in telecommunications and computer networking.<br><br>This operation parses arbitrary ASN.1 data and presents the resulting tree." ,
2017-01-31 19:24:56 +01:00
run : PublicKey . runParseAsn1HexString ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Starting index" ,
type : "number" ,
value : 0
} ,
{
name : "Truncate octet strings longer than" ,
type : "number" ,
value : PublicKey . ASN1 _TRUNCATE _LENGTH
}
]
} ,
"Detect File Type" : {
description : "Attempts to guess the MIME (Multipurpose Internet Mail Extensions) type of the data based on 'magic bytes'.<br><br>Currently supports the following file types: 7z, amr, avi, bmp, bz2, class, cr2, crx, dex, dmg, doc, elf, eot, epub, exe, flac, flv, gif, gz, ico, iso, jpg, jxr, m4a, m4v, mid, mkv, mov, mp3, mp4, mpg, ogg, otf, pdf, png, ppt, ps, psd, rar, rtf, sqlite, swf, tar, tar.z, tif, ttf, utf8, vmdk, wav, webm, webp, wmv, woff, woff2, xls, xz, zip." ,
2017-01-31 19:24:56 +01:00
run : FileType . runDetect ,
inputType : "byteArray" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"Scan for Embedded Files" : {
description : "Scans the data for potential embedded files by looking for magic bytes at all offsets. This operation is prone to false positives.<br><br>WARNING: Files over about 100KB in size will take a VERY long time to process." ,
2017-01-31 19:24:56 +01:00
run : FileType . runScanForEmbeddedFiles ,
inputType : "byteArray" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Ignore common byte sequences" ,
type : "boolean" ,
value : FileType . IGNORE _COMMON _BYTE _SEQUENCES
}
]
} ,
"Expand alphabet range" : {
description : "Expand an alphabet range string into a list of the characters in that range.<br><br>e.g. <code>a-z</code> becomes <code>abcdefghijklmnopqrstuvwxyz</code>." ,
2017-01-31 19:24:56 +01:00
run : SeqUtils . runExpandAlphRange ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Delimiter" ,
2017-01-31 19:24:56 +01:00
type : "binaryString" ,
2016-11-28 11:42:58 +01:00
value : ""
}
]
} ,
"Diff" : {
description : "Compares two inputs (separated by the specified delimiter) and highlights the differences between them." ,
2017-01-31 19:24:56 +01:00
run : StrUtils . runDiff ,
inputType : "string" ,
outputType : "html" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Sample delimiter" ,
2017-01-31 19:24:56 +01:00
type : "binaryString" ,
2016-11-28 11:42:58 +01:00
value : StrUtils . DIFF _SAMPLE _DELIMITER
} ,
{
name : "Diff by" ,
type : "option" ,
value : StrUtils . DIFF _BY
} ,
{
name : "Show added" ,
type : "boolean" ,
value : true
} ,
{
name : "Show removed" ,
type : "boolean" ,
value : true
} ,
{
name : "Ignore whitespace (relevant for word and line)" ,
type : "boolean" ,
value : false
}
]
} ,
"Parse UNIX file permissions" : {
description : "Given a UNIX/Linux file permission string in octal or textual format, this operation explains which permissions are granted to which user groups.<br><br>Input should be in either octal (e.g. <code>755</code>) or textual (e.g. <code>drwxr-xr-x</code>) format." ,
2017-01-31 19:24:56 +01:00
run : OS . runParseUnixPerms ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"Swap endianness" : {
description : "Switches the data from big-endian to little-endian or vice-versa. Data can be read in as hexadecimal or raw bytes. It will be returned in the same format as it is entered." ,
2017-01-31 19:24:56 +01:00
run : Endian . runSwapEndianness ,
2016-11-28 11:42:58 +01:00
highlight : true ,
2017-01-31 19:24:56 +01:00
highlightReverse : true ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Data format" ,
type : "option" ,
value : Endian . DATA _FORMAT
} ,
{
name : "Word length (bytes)" ,
type : "number" ,
value : Endian . WORD _LENGTH
} ,
{
name : "Pad incomplete words" ,
type : "boolean" ,
value : Endian . PAD _INCOMPLETE _WORDS
}
]
} ,
"Syntax highlighter" : {
description : "Adds syntax highlighting to a range of source code languages. Note that this will not indent the code. Use one of the 'Beautify' operations for that." ,
2017-01-31 19:24:56 +01:00
run : Code . runSyntaxHighlight ,
2016-11-28 11:42:58 +01:00
highlight : true ,
2017-01-31 19:24:56 +01:00
highlightReverse : true ,
inputType : "string" ,
outputType : "html" ,
2016-11-28 11:42:58 +01:00
args : [
{
name : "Language/File extension" ,
type : "option" ,
value : Code . LANGUAGES
} ,
{
name : "Display line numbers" ,
type : "boolean" ,
value : Code . LINE _NUMS
}
]
} ,
"Parse escaped string" : {
description : "Replaces escaped characters with the bytes they represent.<br><br>e.g.<code>Hello\\nWorld</code> becomes <code>Hello<br>World</code>" ,
2017-01-31 19:24:56 +01:00
run : StrUtils . runParseEscapedString ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"TCP/IP Checksum" : {
description : "Calculates the checksum for a TCP (Transport Control Protocol) or IP (Internet Protocol) header from an input of raw bytes." ,
2017-01-31 19:24:56 +01:00
run : Checksum . runTCPIP ,
inputType : "byteArray" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"Parse colour code" : {
description : "Converts a colour code in a standard format to other standard formats and displays the colour itself.<br><br><strong>Example inputs</strong><ul><li><code>#d9edf7</code></li><li><code>rgba(217,237,247,1)</code></li><li><code>hsla(200,65%,91%,1)</code></li><li><code>cmyk(0.12, 0.04, 0.00, 0.03)</code></li></ul>" ,
2017-01-31 19:24:56 +01:00
run : HTML . runParseColourCode ,
inputType : "string" ,
outputType : "html" ,
2016-11-28 11:42:58 +01:00
args : [ ]
} ,
"Generate UUID" : {
description : "Generates an RFC 4122 version 4 compliant Universally Unique Identifier (UUID), also known as a Globally Unique Identifier (GUID).<br><br>A version 4 UUID relies on random numbers, in this case generated using <code>window.crypto</code> if available and falling back to <code>Math.random</code> if not." ,
2017-01-31 19:24:56 +01:00
run : UUID . runGenerateV4 ,
inputType : "string" ,
outputType : "string" ,
2016-11-28 11:42:58 +01:00
args : [ ]
2016-12-21 15:09:46 +01:00
} ,
"Substitute" : {
description : "A substitution cipher allowing you to specify bytes to replace with other byte values. This can be used to create Caesar ciphers but is more powerful as any byte value can be substituted, not just letters, and the substitution values need not be in order.<br><br>Enter the bytes you want to replace in the Plaintext field and the bytes to replace them with in the Ciphertext field.<br><br>Non-printable bytes can be specified using string escape notation. For example, a line feed character can be written as either <code>\\n</code> or <code>\\x0a</code>.<br><br>Byte ranges can be specified using a hyphen. For example, the sequence <code>0123456789</code> can be written as <code>0-9</code>." ,
2017-01-31 19:24:56 +01:00
run : Cipher . runSubstitute ,
inputType : "byteArray" ,
outputType : "byteArray" ,
2016-12-21 15:09:46 +01:00
args : [
{
name : "Plaintext" ,
2017-01-31 19:24:56 +01:00
type : "binaryString" ,
2016-12-21 15:09:46 +01:00
value : Cipher . SUBS _PLAINTEXT
} ,
{
name : "Ciphertext" ,
2017-01-31 19:24:56 +01:00
type : "binaryString" ,
2016-12-21 15:09:46 +01:00
value : Cipher . SUBS _CIPHERTEXT
}
]
2017-02-03 22:43:30 +01:00
} ,
2017-02-07 15:20:34 +01:00
"To Morse Code" : {
description : "Translates alphanumeric characters into International Morse Code.<br><br>Ignores non-Morse characters.<br><br>e.g. <code>SOS</code> becomes <code>... --- ...</code>" ,
run : MorseCode . runTo ,
2017-02-03 22:43:30 +01:00
inputType : "string" ,
outputType : "string" ,
args : [
{
name : "Format options" ,
type : "option" ,
value : MorseCode . FORMAT _OPTIONS
} ,
{
name : "Letter delimiter" ,
type : "option" ,
value : MorseCode . LETTER _DELIM _OPTIONS
} ,
{
name : "Word delimiter" ,
type : "option" ,
value : MorseCode . WORD _DELIM _OPTIONS
}
]
} ,
2017-02-07 15:20:34 +01:00
"From Morse Code" : {
description : "Translates Morse Code into (upper case) alphanumeric characters." ,
run : MorseCode . runFrom ,
2017-02-03 22:43:30 +01:00
inputType : "string" ,
outputType : "string" ,
args : [
{
name : "Letter delimiter" ,
type : "option" ,
value : MorseCode . LETTER _DELIM _OPTIONS
} ,
{
name : "Word delimiter" ,
type : "option" ,
value : MorseCode . WORD _DELIM _OPTIONS
}
]
2017-02-08 06:05:52 +01:00
} ,
"Tar" : {
description : "Packs the input into a tarball.<br><br>No support for multiple files at this time." ,
2017-02-08 18:51:18 +01:00
run : Compress . runTar ,
2017-02-08 06:05:52 +01:00
inputType : "byteArray" ,
outputType : "byteArray" ,
args : [
{
name : "Filename" ,
type : "string" ,
value : Compress . TAR _FILENAME
}
]
} ,
"Untar" : {
description : "Unpacks a tarball and displays it per file." ,
2017-02-08 18:51:18 +01:00
run : Compress . runUntar ,
2017-02-08 06:05:52 +01:00
inputType : "byteArray" ,
outputType : "html" ,
args : [
]
2017-04-22 05:06:59 +02:00
} ,
"Head" : {
description : [
"Like the UNIX head utility." ,
"<br>" ,
2017-04-23 19:05:00 +02:00
"Gets the first n lines." ,
2017-04-22 05:06:59 +02:00
"<br>" ,
2017-04-23 19:05:00 +02:00
"You can select all but the last n lines by entering a negative value for n." ,
2017-04-22 05:06:59 +02:00
"<br>" ,
"The delimiter can be changed so that instead of lines, fields (i.e. commas) are selected instead." ,
] . join ( "\n" ) ,
run : StrUtils . runHead ,
inputType : "string" ,
outputType : "string" ,
args : [
{
name : "Delimiter" ,
type : "option" ,
value : StrUtils . DELIMITER _OPTIONS
} ,
{
name : "Number" ,
type : "number" ,
value : 10 ,
} ,
]
} ,
"Tail" : {
description : [
"Like the UNIX tail utility." ,
"<br>" ,
2017-04-23 19:05:00 +02:00
"Gets the last n lines." ,
2017-04-22 05:06:59 +02:00
"<br>" ,
2017-04-23 19:05:00 +02:00
"Optionally you can select all lines after line n by entering a negative value for n." ,
2017-04-22 05:06:59 +02:00
"<br>" ,
"The delimiter can be changed so that instead of lines, fields (i.e. commas) are selected instead." ,
] . join ( "\n" ) ,
run : StrUtils . runTail ,
inputType : "string" ,
outputType : "string" ,
args : [
{
name : "Delimiter" ,
type : "option" ,
value : StrUtils . DELIMITER _OPTIONS
} ,
{
name : "Number" ,
type : "number" ,
value : 10 ,
} ,
]
} ,
2016-12-14 17:39:17 +01:00
} ;
2017-03-23 18:52:20 +01:00
export default OperationConfig ;