2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-17 08:43:43 +00:00

Added operation: "XPath expression"

This commit is contained in:
Mike Schwörer
2016-11-29 19:28:07 +01:00
parent 09d515cbae
commit 51b627ab29
6 changed files with 6464 additions and 2 deletions

View File

@@ -1893,6 +1893,24 @@ var OperationConfig = {
},
]
},
"XPath expression": {
description: "Extract information from an xml document with an XPath query",
run: Extract.run_xpath,
input_type: "string",
output_type: "string",
args: [
{
name: "XPath",
type: "string",
value: Extract.XPATH_INITIAL
},
{
name: "Result delimiter",
type: "binary_short_string",
value: Extract.XPATH_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,