Merge remote-tracking branch 'upstream/master' into feature_filter

This commit is contained in:
Mike Schwörer committed 2016-12-21 20:17:53 +01:00
commit f44171c005
22 files changed
+9087 -131

No files matched your search

+5
View File
@@ -82,6 +82,7 @@ const Categories = [
"XOR Brute Force",
"Vigenère Encode",
"Vigenère Decode",
"Substitute",
"Derive PBKDF2 key",
"Derive EVP key",
]
@@ -190,6 +191,8 @@ const Categories = [
"Extract file paths",
"Extract dates",
"Regular expression",
"XPath expression",
"CSS selector",
]
},
{
@@ -242,6 +245,8 @@ const Categories = [
"SQL Minify",
"CSS Beautify",
"CSS Minify",
"XPath expression",
"CSS selector",
"Strip HTML tags",
"Diff",
]
+54
View File
@@ -1961,6 +1961,42 @@ const OperationConfig = {
},
]
},
"XPath expression": {
description: "Extract information from an XML document with an XPath query",
run: Code.run_xpath,
input_type: "string",
output_type: "string",
args: [
{
name: "XPath",
type: "string",
value: Code.XPATH_INITIAL
},
{
name: "Result delimiter",
type: "binary_short_string",
value: Code.XPATH_DELIMITER
}
]
},
"CSS selector": {
description: "Extract information from an HTML document with a CSS selector",
run: Code.run_css_query,
input_type: "string",
output_type: "string",
args: [
{
name: "CSS selector",
type: "string",
value: Code.CSS_SELECTOR_INITIAL
},
{
name: "Delimiter",
type: "binary_short_string",
value: Code.CSS_QUERY_DELIMITER
},
]
},
"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>",
run: DateTime.run_from_unix_timestamp,
@@ -2850,5 +2886,23 @@ const OperationConfig = {
input_type: "string",
output_type: "string",
args: []
},
"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>.",
run: Cipher.run_substitute,
input_type: "byte_array",
output_type: "byte_array",
args: [
{
name: "Plaintext",
type: "binary_string",
value: Cipher.SUBS_PLAINTEXT
},
{
name: "Ciphertext",
type: "binary_string",
value: Cipher.SUBS_CIPHERTEXT
}
]
}
};