mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-26 01:36:17 -04:00
Updated to latest update
This commit is contained in:
parent
1b8c229df2
commit
012aa7850a
4 changed files with 102 additions and 0 deletions
|
@ -163,6 +163,7 @@ import "./tests/Unicode.mjs";
|
|||
import "./tests/YARA.mjs";
|
||||
import "./tests/ParseCSR.mjs";
|
||||
import "./tests/XXTEA.mjs";
|
||||
import "./tests/ExtractBitcoinAddresses.mjs";
|
||||
|
||||
const testStatus = {
|
||||
allTestsPassing: true,
|
||||
|
|
44
tests/operations/tests/ExtractBitcoinAddresses.mjs
Normal file
44
tests/operations/tests/ExtractBitcoinAddresses.mjs
Normal file
|
@ -0,0 +1,44 @@
|
|||
/**
|
||||
* extract bitcoin address tests.
|
||||
*
|
||||
* @author homerjonathan [homer.jonathan@gmail.com]
|
||||
* @copyright Crown Copyright 2021
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
import TestRegister from "../../lib/TestRegister.mjs";
|
||||
|
||||
TestRegister.addTests([
|
||||
{
|
||||
name: "Extract Bitcoin Addresse",
|
||||
input: "Ransomware I received once! My modest consulting fee is 1650 US Dollars transferred in Bitcoin. Exchange rate at the time of the transfer.\nYou need to send that amount to this wallet: 1HSb4fZHmyNro5LGyjQFpcDwqKjRUqJhh2",
|
||||
expectedOutput: "1HSb4fZHmyNro5LGyjQFpcDwqKjRUqJhh2\n",
|
||||
recipeConfig: [
|
||||
{
|
||||
"op": "Extract Bitcoin Addresses",
|
||||
"args": [false]
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Extract Bitcoin Addresse - Display total",
|
||||
input: "Ransomware I received once! My modest consulting fee is 1650 US Dollars transferred in Bitcoin. Exchange rate at the time of the transfer.\nYou need to send that amount to this wallet: 1HSb4fZHmyNro5LGyjQFpcDwqKjRUqJhh2",
|
||||
expectedOutput: "Total found: 1\n\n1HSb4fZHmyNro5LGyjQFpcDwqKjRUqJhh2\n",
|
||||
recipeConfig: [
|
||||
{
|
||||
"op": "Extract Bitcoin Addresses",
|
||||
"args": [true]
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Extract Mulitple Bitcoin Addresses",
|
||||
input: "1HSb4fZHmyNro5LGyjQFpcDwqKjRUqJhh2 and 17U1BaXwyuxeX2sZyMjC25G8skrZ8mtTdz plus this one 1NGCsGqSdNEKpptQ4DKbJEva59cTSk369o",
|
||||
expectedOutput: "1HSb4fZHmyNro5LGyjQFpcDwqKjRUqJhh2\n17U1BaXwyuxeX2sZyMjC25G8skrZ8mtTdz\n1NGCsGqSdNEKpptQ4DKbJEva59cTSk369o\n",
|
||||
recipeConfig: [
|
||||
{
|
||||
"op": "Extract Bitcoin Addresses",
|
||||
"args": [false]
|
||||
},
|
||||
],
|
||||
},
|
||||
]);
|
Loading…
Add table
Add a link
Reference in a new issue