n8n-nodes-soar 0.1.22 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/common/asset.js +42 -56
  2. package/dist/common/connectionType.js +3 -2
  3. package/dist/common/executor/abstract.executor.js +51 -0
  4. package/dist/common/executor/docker.executor.js +57 -31
  5. package/dist/common/executor/jsonrpc.executor.js +123 -0
  6. package/dist/common/executor/{k8s.executor.js → kubernetes.executor.js} +56 -33
  7. package/dist/common/interface.js +4 -0
  8. package/dist/common/memorizer/abstract.memorizer.js +49 -0
  9. package/dist/common/memorizer/asset.memorizer.js +16 -0
  10. package/dist/common/memorizer/general.memorizer.js +17 -0
  11. package/dist/common/memorizer/storage/redis.storage.js +71 -0
  12. package/dist/common/proxy/abstract.proxy.js +4 -0
  13. package/dist/common/proxy/executor.proxy.js +50 -0
  14. package/dist/common/proxy/memorizer.proxy.js +51 -0
  15. package/dist/common/proxy/runner.proxy.js +60 -0
  16. package/dist/common/runner/container.runner.js +93 -108
  17. package/dist/common/runner/decorator/assetRunner.js +26 -0
  18. package/dist/common/runner/decorator/index.js +20 -0
  19. package/dist/common/runner/decorator/onlySuccess.js +20 -0
  20. package/dist/common/runner/{priority.js → decorator/priority.js} +16 -8
  21. package/dist/common/runner/priority.runner.js +6 -7
  22. package/dist/common/runner/runner.js +10 -29
  23. package/dist/constants/image.js +11 -0
  24. package/dist/credentials/SoarRunner/SoarRunner.credentials.js +73 -0
  25. package/dist/credentials/SoarRunner/icon.svg +8 -0
  26. package/dist/credentials/VulboxApi/VulboxApi.credentials.js +157 -0
  27. package/dist/credentials/VulboxApi/vulbox.svg +18 -0
  28. package/dist/nodes/Collector/Collector.node.js +56 -47
  29. package/dist/nodes/EmptyCheck/EmptyCheck.node.js +69 -0
  30. package/dist/nodes/Executor/DockerExecutor/DockerExecutor.node.js +80 -3
  31. package/dist/nodes/Executor/JsonRpcExecutor/JsonRpcExecutor.node.js +69 -0
  32. package/dist/nodes/Executor/JsonRpcExecutor/icon.svg +8 -0
  33. package/dist/nodes/Executor/KubernetesExecutor/KubernetesExecutor.node.js +112 -4
  34. package/dist/nodes/Fofa/Fofa.node.js +23 -14
  35. package/dist/nodes/Memorizer/Redis/RedisMemorizer.node.js +127 -0
  36. package/dist/nodes/Memorizer/Redis/redis.svg +1 -0
  37. package/dist/nodes/Platform/Vulbox/Vulbox.node.js +166 -0
  38. package/dist/nodes/Platform/Vulbox/api.js +211 -0
  39. package/dist/nodes/Platform/Vulbox/methods.js +124 -0
  40. package/dist/nodes/Platform/Vulbox/properties.js +403 -0
  41. package/dist/nodes/Platform/Vulbox/vulbox.svg +18 -0
  42. package/dist/nodes/Runner/Cmd/Cmd.node.js +105 -0
  43. package/dist/nodes/Runner/Dns/Dns.node.js +38 -22
  44. package/dist/nodes/Runner/Httpx/Httpx.node.js +147 -18
  45. package/dist/nodes/Runner/IcpLookup/IcpLookup.node.js +166 -0
  46. package/dist/nodes/Runner/IcpLookup/icp.svg +3 -0
  47. package/dist/nodes/Runner/Katana/Katana.node.js +42 -29
  48. package/dist/nodes/Runner/Masscan/Masscan.node.js +51 -29
  49. package/dist/nodes/Runner/Naabu/Naabu.node.js +35 -17
  50. package/dist/nodes/Runner/Nuclei/Nuclei.node.js +32 -14
  51. package/dist/nodes/Runner/Priority/Priority.node.js +2 -1
  52. package/dist/nodes/Runner/Subfinder/Subfinder.node.js +38 -15
  53. package/dist/nodes/Runner/Unauthor/Unauthor.node.js +32 -14
  54. package/dist/utils/decorator.js +22 -0
  55. package/package.json +19 -5
  56. package/dist/common/executor/executor.js +0 -48
  57. package/dist/nodes/Asset/SplitAsset/SplitAsset.node.js +0 -110
  58. package/dist/nodes/Asset/SplitAsset/split.svg +0 -13
  59. package/dist/nodes/Cdncheck/Cdncheck.node.js +0 -229
  60. package/dist/nodes/Httpx/Httpx.node.js +0 -754
  61. package/dist/nodes/Katana/Katana.node.js +0 -456
  62. package/dist/nodes/Katana/Katana.node.json +0 -9
  63. package/dist/nodes/Nuclei/Nuclei.node.js +0 -1024
  64. package/dist/nodes/Nuclei/Nuclei.node.json +0 -9
  65. package/dist/nodes/Runner/Katana/a.json +0 -30
  66. package/dist/nodes/Runner/Nuclei/a.json +0 -48
  67. package/dist/nodes/Runner/PriorityAdd/PriorityAdd.node.js +0 -97
  68. package/dist/nodes/Runner/Router/SwitchRouter/SwitchRouter.node.js +0 -101
  69. package/dist/nodes/Tshark/Tshark.node.js +0 -104
  70. package/dist/nodes/Tshark/Tshark.node.json +0 -9
  71. package/dist/nodes/Tshark/tshark.svg +0 -64
  72. package/dist/nodes/Unauthor/Unauthor.node.js +0 -135
  73. package/dist/nodes/Unauthor/Unauthor.node.json +0 -9
  74. package/dist/nodes/Unauthor/unauthor.svg +0 -7
  75. package/dist/nodes/Uncover/Uncover.node.js +0 -280
  76. package/dist/nodes/Uncover/Uncover.node.json +0 -9
@@ -1,48 +0,0 @@
1
- {
2
- "template": "http/miscellaneous/rdap-whois.yaml",
3
- "template-url": "https://templates.nuclei.sh/public/rdap-whois",
4
- "template-id": "rdap-whois",
5
- "template-path": "/root/nuclei-templates/http/miscellaneous/rdap-whois.yaml",
6
- "info": {
7
- "name": "RDAP WHOIS",
8
- "author": [
9
- "ricardomaia",
10
- "sttlr"
11
- ],
12
- "tags": [
13
- "whois",
14
- "rdap",
15
- "osint",
16
- "misc"
17
- ],
18
- "description": "RDAP (Registration Data Access Protocol) is a standard defined by the IETF to replace the whois protocol\nin queries for information about Internet resource records such as domain names, IP addresses, and ASNs.\n",
19
- "reference": [
20
- "https://about.rdap.org/"
21
- ],
22
- "severity": "info",
23
- "metadata": {
24
- "verified": true,
25
- "max-request": 1
26
- },
27
- "classification": {
28
- "cve-id": null,
29
- "cwe-id": [
30
- "cwe-200"
31
- ],
32
- "cvss-metrics": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N"
33
- }
34
- },
35
- "extractor-name": "secureDNS",
36
- "type": "http",
37
- "host": "http://snowywar.top:3000/",
38
- "matched-at": "https://rdap.zdnsgtld.com/top/domain/snowywar.top",
39
- "extracted-results": [
40
- "false"
41
- ],
42
- "request": "GET /domain/snowywar.top HTTP/1.1\r\nHost: www.rdap.net\r\nUser-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.67 Safari/537.36\r\nConnection: close\r\nAccept: */*\r\nAccept-Language: en\r\nAccept-Encoding: gzip\r\n\r\n",
43
- "response": "HTTP/1.1 200 \r\nConnection: close\r\nContent-Length: 6154\r\nAccess-Control-Allow-Origin: *\r\nContent-Type: application/rdap+json;charset=UTF-8\r\nDate: Wed, 15 Nov 2023 10:52:49 GMT\r\nP3p: CP=\"CAO PSA OUR\"\r\nServer: nginx/1.24.0\r\nX-Protected-By: zdns\r\nX-Request-Id: 5b1be9d2f9dd4452ac0372956aa31be9\r\n\r\n{\"rdapConformance\":[\"icann_rdap_response_profile_0\",\"icann_rdap_technical_implementation_guide_0\",\"rdap_level_0\"],\"notices\":[{\"title\":\"Status Codes\",\"description\":[\"For more information on domain status codes, please visit https://icann.org/epp\"],\"links\":[{\"href\":\"https://icann.org/epp\",\"title\":\"More information on domain status codes\"}]},{\"title\":\"Terms of Use\",\"description\":[\"For more information on domain status codes, please visit https://icann.org/epp\",\"\",\"NOTICE: The expiration date displayed in this record is the date the\",\"registrar's sponsorship of the domain name registration in the registry is\",\"currently set to expire. This date does not necessarily reflect the expiration\",\"date of the domain name registrant's agreement with the sponsoring\",\"registrar. Users may consult the sponsoring registrar's Whois database to\",\"view the registrar's reported date of expiration for this registration.\",\"\",\"TERMS OF USE: The information in the Whois database is collected through ICANN-accredited registrars. Jiangsu bangning science \u0026 technology Co., Ltd(“BANGNING”) make this information available to you and do not guarantee its accuracy or completeness. By submitting a whois query, you agree to abide by the following terms of use: you agree that you may use this data only for lawful purposes and that under no circumstances will you use this data to: (1) to allow, enable, or otherwise support the transmission of mass unsolicited, commercial advertising or solicitations via direct mail, electronic mail, or by telephone; (2) in contravention of any applicable data and privacy protection acts; or (3) to enable high volume, automated, electronic processes that apply to BANGNING (or its computer systems). Compilation, repackaging, dissemination, or other use of the WHOIS database in its entirety, or of a substantial portion thereof, is not allowed without BANGNING prior written permission. You agree not to use electronic processes that are automated and high-volume to access or query the whois database except as reasonably necessary to register domain names or modify existing registrations. BANGNING reserves the right to restrict your access to the whois database in its sole discretion to ensure operational stability. BANGNING may restrict or terminate your access to the whois database for failure to abide by these terms of use. BANGNING reserves the right to modify these terms at any time without prior or subsequent notification of any kind. \"],\"links\":[{\"href\":\"http://www.nic.top\",\"title\":\"Terms of Use\"}]},{\"title\":\"RDDS Inaccuracy Complaint Form\",\"description\":[\"URL of the ICANN RDDS Inaccuracy Complaint Form: https://www.icann.org/wicf/\"],\"links\":[{\"href\":\"https://www.icann.org/wicf/\",\"title\":\"ICANN RDDS Inaccuracy Complaint Form\"}]},{\"title\":\"Data Policy\",\"description\":[\"The object does not contain all data due to lack of authorization.\"],\"type\":\"object truncated due to authorization\"}],\"objectClassName\":\"domain\",\"handle\":\"D20200909G10001G_47661016-top\",\"links\":[{\"value\":\"https://rdap.zdnsgtld.com/top/domain/snowywar.top.\",\"rel\":\"self\",\"href\":\"https://rdap.zdnsgtld.com/top/domain/snowywar.top.\",\"type\":\"application/rdap+json\"}],\"events\":[{\"eventAction\":\"registration\",\"eventDate\":\"2020-09-09T02:46:33.0Z\"},{\"eventAction\":\"expiration\",\"eventDate\":\"2024-09-09T02:46:33.0Z\"},{\"eventAction\":\"last changed\",\"eventDate\":\"2020-09-09T02:55:40.0Z\"},{\"eventAction\":\"last update of RDAP database\",\"eventDate\":\"2023-11-15T10:50:01.0Z\"}],\"status\":[\"active\"],\"port43\":\"whois.nic.top\",\"entities\":[{\"objectClassName\":\"entity\",\"remarks\":[{\"title\":\"Data Policy\",\"description\":[\"The object does not contain all data due to lack of authorization.\"],\"type\":\"object truncated due to authorization\"},{\"description\":[\"Some of the data in this object has been removed.\"],\"type\":\"object truncated due to authorization\"},{\"title\":\"EMAIL REDACTED FOR PRIVACY\",\"description\":[\"Please query the RDDS service of the Registrar of Record identified in this output for information on how to contact the Registrant of the queried domain name.\"],\"type\":\"object truncated due to authorization\"}],\"roles\":[\"registrant\",\"administrative\",\"technical\"],\"vcardArray\":[\"vcard\",[[\"version\",{},\"text\",\"4.0\"],[\"org\",{},\"text\",\"贾宇琦\"],[\"adr\",{},\"text\",[\"\",\"\",\"\",\"\",\"bei jing shi\",\"\",\"CN\"]],[\"ISO-3166-1-alpha-2\",{},\"text\",\"CN\"]]]},{\"objectClassName\":\"entity\",\"handle\":\"1697\",\"links\":[{\"value\":\"https://rdap.zdnsgtld.com/top/entity/1697\",\"rel\":\"self\",\"href\":\"https://rdap.zdnsgtld.com/top/entity/1697\",\"type\":\"application/rdap+json\"}],\"entities\":[{\"objectClassName\":\"entity\",\"handle\":\"not applicable\",\"roles\":[\"abuse\"],\"vcardArray\":[\"vcard\",[[\"version\",{},\"text\",\"4.0\"],[\"fn\",{},\"text\",\"Abuse Team\"],[\"org\",{},\"text\",\"烟台帝思普网络科技有限公司\"],[\"email\",{},\"text\",\"abuse@dnspod.com\"],[\"tel\",{\"type\":\"voice\"},\"text\",\"tel:4009100100\"],[\"tel\",{\"type\":\"fax\"},\"text\",\"05353389555\"],[\"adr\",{},\"text\",[\"\",\"\",\"\",\"烟台\",\"山东\",\"264000\",\"中国大陆\"]]]]}],\"roles\":[\"registrar\"],\"publicIds\":[{\"type\":\"IANA Registrar ID\",\"identifier\":\"1697\"}],\"vcardArray\":[\"vcard\",[[\"version\",{},\"text\",\"4.0\"],[\"fn\",{},\"text\",\"烟台帝思普网络科技有限公司\"],[\"email\",{},\"text\",\"domain@dnspod.com\"],[\"tel\",{\"type\":\"voice\"},\"text\",\"tel:13910521251\"],[\"tel\",{\"type\":\"fax\"},\"text\",\"05353389555\"],[\"adr\",{},\"text\",[\"\",\"\",\"\",\"烟台\",\"山东\",\"264000\",\"CN\"]],[\"ISO-3166-1-alpha-2\",{},\"text\",\"CN\"]]]}],\"lang\":\"en\",\"ldhName\":\"snowywar.top.\",\"unicodeName\":\"snowywar.top.\",\"nameservers\":[{\"objectClassName\":\"nameserver\",\"links\":[{\"value\":\"https://rdap.zdnsgtld.com/top/nameserver/f1g1ns1.dnspod.net\",\"rel\":\"self\",\"href\":\"https://rdap.zdnsgtld.com/top/nameserver/f1g1ns1.dnspod.net\",\"type\":\"application/rdap+json\"}],\"ldhName\":\"f1g1ns1.dnspod.net.\",\"unicodeName\":\"f1g1ns1.dnspod.net.\"},{\"objectClassName\":\"nameserver\",\"links\":[{\"value\":\"https://rdap.zdnsgtld.com/top/nameserver/f1g1ns2.dnspod.net\",\"rel\":\"self\",\"href\":\"https://rdap.zdnsgtld.com/top/nameserver/f1g1ns2.dnspod.net\",\"type\":\"application/rdap+json\"}],\"ldhName\":\"f1g1ns2.dnspod.net.\",\"unicodeName\":\"f1g1ns2.dnspod.net.\"}],\"secureDNS\":{\"delegationSigned\":false}}",
44
- "ip": "45.77.228.254",
45
- "timestamp": "2023-11-15T10:52:50.947757856Z",
46
- "curl-command": "curl -X 'GET' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.67 Safari/537.36' 'https://www.rdap.net/domain/snowywar.top'",
47
- "matcher-status": true
48
- }
@@ -1,97 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "PriorityAdd", {
6
- enumerable: true,
7
- get: function() {
8
- return PriorityAdd;
9
- }
10
- });
11
- const _connectionType = require("../../../common/connectionType");
12
- const _containerrunner = require("../../../common/runner/container.runner");
13
- const _priority = require("../../../common/runner/priority");
14
- function _define_property(obj, key, value) {
15
- if (key in obj) {
16
- Object.defineProperty(obj, key, {
17
- value: value,
18
- enumerable: true,
19
- configurable: true,
20
- writable: true
21
- });
22
- } else {
23
- obj[key] = value;
24
- }
25
- return obj;
26
- }
27
- class SubfinderRunner extends _containerrunner.ContainerRunner {
28
- cmd(assets) {
29
- return [
30
- "subfinder",
31
- "-disable-update-check",
32
- "-json",
33
- "-silent",
34
- ...assets.flatMap((a)=>a.basic.host ? [
35
- "-domain",
36
- a.basic.host
37
- ] : []),
38
- ...this.collectGeneratedOptions([
39
- "options.source",
40
- "options.filter",
41
- "options.rateLimit",
42
- "options.output",
43
- "options.configuration",
44
- "options.optimization"
45
- ])
46
- ];
47
- }
48
- process(rawAssets, stdout) {
49
- const subdomains = new Map();
50
- for (const line of stdout.trim().split("\n")){
51
- const json = JSON.parse(line);
52
- subdomains.set(json.input, [
53
- ...subdomains.get(json.input) ?? [],
54
- json.host
55
- ]);
56
- }
57
- return rawAssets.flatMap((a)=>[
58
- a,
59
- ...a.setSubdomains(subdomains.get(a.basic.host ?? "") ?? []).splitBySubdomains()
60
- ]);
61
- }
62
- }
63
- class PriorityAdd {
64
- async supplyData(itemIndex) {
65
- return {
66
- response: new SubfinderRunner("subfinder", _priority.DOMAIN_RUNNER_PRIORITY, this, itemIndex)
67
- };
68
- }
69
- constructor(){
70
- _define_property(this, "description", {
71
- displayName: "Soar: PriorityAdd",
72
- name: "priorityAdd",
73
- group: [
74
- "output"
75
- ],
76
- version: 1,
77
- description: "add runner priority",
78
- defaults: {
79
- name: "PriorityAdd"
80
- },
81
- // eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node
82
- inputs: [],
83
- // eslint-disable-next-line n8n-nodes-base/node-class-description-outputs-wrong
84
- outputs: [
85
- _connectionType.NodeConnectionType.Runner
86
- ],
87
- properties: [
88
- {
89
- displayName: "Priority",
90
- name: "priority",
91
- type: "number",
92
- default: _priority.DOMAIN_RUNNER_PRIORITY
93
- }
94
- ]
95
- });
96
- }
97
- }
@@ -1,101 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "SwitchRouter", {
6
- enumerable: true,
7
- get: function() {
8
- return SwitchRouter;
9
- }
10
- });
11
- const _connectionType = require("../../../../common/connectionType");
12
- const _runner = require("../../../../common/runner/runner");
13
- function _define_property(obj, key, value) {
14
- if (key in obj) {
15
- Object.defineProperty(obj, key, {
16
- value: value,
17
- enumerable: true,
18
- configurable: true,
19
- writable: true
20
- });
21
- } else {
22
- obj[key] = value;
23
- }
24
- return obj;
25
- }
26
- class SwitchRouterRunner extends _runner.Runner {
27
- async __run(collector, assets) {
28
- debugger;
29
- const runners = await this.func.getInputConnectionData(_connectionType.NodeConnectionType.Runner, this.itemIndex);
30
- console.log(runners);
31
- return assets;
32
- }
33
- }
34
- class SwitchRouter {
35
- async supplyData(itemIndex) {
36
- return {
37
- response: new SwitchRouterRunner("switch_router", this, itemIndex)
38
- };
39
- }
40
- constructor(){
41
- _define_property(this, "description", {
42
- displayName: "Switch Router",
43
- name: "switchRouter",
44
- group: [
45
- "output"
46
- ],
47
- version: 1,
48
- description: "Switch Router",
49
- defaults: {
50
- name: "Switch Router"
51
- },
52
- // eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node
53
- inputs: `={{$parameter.cases.cases.map(n=>({displayName: n.name, type: ${JSON.stringify(_connectionType.NodeConnectionType.Runner)}}))}}`,
54
- // eslint-disable-next-line n8n-nodes-base/node-class-description-outputs-wrong
55
- outputs: [
56
- _connectionType.NodeConnectionType.Runner
57
- ],
58
- properties: [
59
- {
60
- displayName: "Switch Case",
61
- name: "cases",
62
- type: "fixedCollection",
63
- default: {},
64
- typeOptions: {
65
- multipleValues: true,
66
- multipleValueButtonText: "Add Case"
67
- },
68
- options: [
69
- {
70
- name: "cases",
71
- displayName: "Switch Case",
72
- values: [
73
- {
74
- displayName: "Case Name",
75
- name: "name",
76
- type: "string",
77
- required: true,
78
- default: "case"
79
- },
80
- {
81
- displayName: "Case Condition",
82
- name: "condition",
83
- type: "boolean",
84
- required: true,
85
- default: false
86
- }
87
- ]
88
- }
89
- ]
90
- },
91
- {
92
- displayName: "Multiple Case",
93
- name: "multipleCase",
94
- type: "boolean",
95
- default: false,
96
- description: "Whether to allow multiple case to be triggered, otherwise only trigger the first case"
97
- }
98
- ]
99
- });
100
- }
101
- }
@@ -1,104 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "Tshark", {
6
- enumerable: true,
7
- get: function() {
8
- return Tshark;
9
- }
10
- });
11
- const _executor = require("../../utils/executor");
12
- function _define_property(obj, key, value) {
13
- if (key in obj) {
14
- Object.defineProperty(obj, key, {
15
- value: value,
16
- enumerable: true,
17
- configurable: true,
18
- writable: true
19
- });
20
- } else {
21
- obj[key] = value;
22
- }
23
- return obj;
24
- }
25
- class Tshark {
26
- async execute() {
27
- const result = [];
28
- const executor = new _executor.SoarExecutor(this);
29
- for(let idx = 0; idx < this.getInputData().length; idx++){
30
- const binaryName = this.getNodeParameter("file", idx, "");
31
- const filter = this.getNodeParameter("filter", idx, "");
32
- const binaryDataBufferItem = await this.helpers.getBinaryDataBuffer(idx, binaryName);
33
- const args = [
34
- "-r",
35
- "/tmp/data.pcap",
36
- "-T",
37
- "json"
38
- ];
39
- if (filter) {
40
- args.push("-Y", filter);
41
- }
42
- const response = await executor.run(idx, "tshark", "", {
43
- extraArgs: args,
44
- extraArgParameters: [],
45
- files: {
46
- "/tmp/data.pcap": binaryDataBufferItem.toString("base64")
47
- },
48
- image: "registry.yoshino-s.xyz/yoshino-s/soar-image/traffic:dev"
49
- });
50
- result.push(...this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(JSON.parse(response.stdout)), {
51
- itemData: {
52
- item: idx
53
- }
54
- }));
55
- }
56
- return [
57
- result
58
- ];
59
- }
60
- constructor(){
61
- _define_property(this, "description", {
62
- displayName: "Soar: Tshark",
63
- name: "tshark",
64
- group: [
65
- "output"
66
- ],
67
- icon: "file:tshark.svg",
68
- version: 1,
69
- subtitle: "={{ 'tshark' + $parameter['file'] }}",
70
- description: "Interact with Tshark",
71
- defaults: {
72
- name: "Tshark"
73
- },
74
- inputs: [
75
- "main"
76
- ],
77
- outputs: [
78
- "main"
79
- ],
80
- credentials: [
81
- {
82
- name: "dockerCredentialsApi"
83
- },
84
- {
85
- name: "kubernetesCredentialsApi"
86
- }
87
- ],
88
- properties: (0, _executor.injectCommonProperties)([
89
- {
90
- displayName: "File",
91
- name: "file",
92
- type: "string",
93
- default: ""
94
- },
95
- {
96
- displayName: "Filter",
97
- name: "filter",
98
- type: "string",
99
- default: ""
100
- }
101
- ], false)
102
- });
103
- }
104
- }
@@ -1,9 +0,0 @@
1
- {
2
- "node": "n8n-nodes-soar.tshark",
3
- "nodeVersion": "1.0",
4
- "codexVersion": "1.0",
5
- "categories": [
6
- "Development",
7
- "Container"
8
- ]
9
- }
@@ -1,64 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!-- Created with Sodipodi ("http://www.sodipodi.com/") -->
3
- <svg
4
- xmlns:dc="http://purl.org/dc/elements/1.1/"
5
- xmlns:cc="http://web.resource.org/cc/"
6
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
7
- xmlns:svg="http://www.w3.org/2000/svg"
8
- xmlns="http://www.w3.org/2000/svg"
9
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
10
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
11
- id="svg548"
12
- sodipodi:version="0.32"
13
- width="400"
14
- height="400"
15
- sodipodi:docbase="D:\dokumenty\kot"
16
- sodipodi:docname="Wireshark_Logo.svg"
17
- inkscape:version="0.44.1"
18
- inkscape:export-filename="/home/gerald/devel/wsweb/wslogotrans800.png"
19
- inkscape:export-xdpi="181.64000"
20
- inkscape:export-ydpi="181.64000"
21
- viewBox="0,-100,400,400"
22
- version="1.0">
23
- <metadata
24
- id="metadata1317">
25
- <rdf:RDF>
26
- <cc:Work
27
- rdf:about="">
28
- <dc:format>image/svg+xml</dc:format>
29
- <dc:type
30
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
31
- </cc:Work>
32
- </rdf:RDF>
33
- </metadata>
34
- <defs
35
- id="defs550" />
36
- <sodipodi:namedview
37
- id="base"
38
- showgrid="true"
39
- showguides="true"
40
- inkscape:zoom="2.3637177"
41
- inkscape:cx="199.13001"
42
- inkscape:cy="54.799999"
43
- inkscape:window-width="1024"
44
- inkscape:window-height="682"
45
- inkscape:window-x="-4"
46
- inkscape:window-y="-4"
47
- inkscape:current-layer="svg548"
48
- inkscape:guide-bbox="true"
49
- width="398.26px"
50
- height="109.6px" />
51
- <path
52
- transform="scale(0.947903,1.05496)"
53
- style="font-size:96.08611298px;font-style:normal;font-weight:bold;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:black;fill-opacity:1;stroke:none;stroke-width:1pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Luxi Sans"
54
- d="M 14.318411,102.60584 L 2.1621622,56.793348 L 8.3809115,56.793348 L 15.349661,86.824594 C 16.099646,89.97044 16.745478,93.095437 17.28716,96.199593 C 18.45381,91.303772 19.141309,88.480858 19.34966,87.730844 L 28.068409,56.793348 L 35.380908,56.793348 L 41.943407,79.980845 C 43.589198,85.730861 44.776697,91.137105 45.505907,96.199593 C 46.089196,93.30377 46.849611,89.980857 47.787157,86.230845 L 54.974656,56.793348 L 61.068405,56.793348 L 48.505907,102.60584 L 42.662157,102.60584 L 33.005909,67.699597 C 32.193378,64.782968 31.714212,62.991304 31.568409,62.324597 C 31.089212,64.428802 30.641296,66.220467 30.224659,67.699597 L 20.50591,102.60584 L 14.318411,102.60584 z M 67.724654,102.60584 L 67.724654,56.793348 L 73.787153,56.793348 L 73.787153,102.60584 L 67.724654,102.60584 z M 84.537154,102.60584 L 84.537154,56.793348 L 104.84965,56.793348 C 108.93296,56.793394 112.03712,57.204852 114.16215,58.027723 C 116.28711,58.850683 117.98503,60.303807 119.2559,62.387097 C 120.52669,64.470469 121.16211,66.772549 121.16215,69.293347 C 121.16211,72.543376 120.11003,75.282957 118.0059,77.512096 C 115.9017,79.741285 112.6517,81.15795 108.2559,81.762095 C 109.86004,82.532948 111.07879,83.293364 111.91215,84.043345 C 113.68295,85.668362 115.36003,87.699609 116.9434,90.137094 L 124.91215,102.60584 L 117.28715,102.60584 L 111.22465,93.074594 C 109.45379,90.324606 107.99546,88.220442 106.84965,86.762094 C 105.70379,85.303779 104.67775,84.282946 103.77153,83.699595 C 102.86525,83.116281 101.94338,82.710032 101.0059,82.480845 C 100.31838,82.335032 99.193383,82.262115 97.630903,82.262095 L 90.599653,82.262095 L 90.599653,102.60584 L 84.537154,102.60584 z M 90.599653,77.012096 L 103.6309,77.012096 C 106.40171,77.012121 108.56837,76.725663 110.1309,76.152721 C 111.69337,75.579831 112.88087,74.663166 113.6934,73.402721 C 114.50587,72.142335 114.91212,70.772545 114.91215,69.293347 C 114.91212,67.126716 114.12566,65.345468 112.55278,63.949597 C 110.97983,62.553804 108.49546,61.855888 105.09965,61.855847 L 90.599653,61.855847 L 90.599653,77.012096 z M 130.8184,102.60584 L 130.8184,56.793348 L 163.94339,56.793348 L 163.94339,62.199597 L 136.8809,62.199597 L 136.8809,76.230846 L 162.22464,76.230846 L 162.22464,81.605845 L 136.8809,81.605845 L 136.8809,97.199593 L 165.00589,97.199593 L 165.00589,102.60584 L 130.8184,102.60584 z M 170.8184,87.699594 L 179.8184,86.824594 C 180.36005,89.84544 181.45901,92.064188 183.11527,93.480844 C 184.7715,94.897518 187.00588,95.60585 189.81839,95.605843 C 192.79754,95.60585 195.04233,94.975643 196.55277,93.715219 C 198.06316,92.454812 198.81836,90.980856 198.81839,89.293344 C 198.81836,88.210025 198.50066,87.288151 197.86527,86.52772 C 197.22982,85.76732 196.12045,85.105862 194.53714,84.543345 C 193.45379,84.168363 190.98504,83.501697 187.13089,82.543345 C 182.17255,81.3142 178.69339,79.803785 176.6934,78.012096 C 173.88089,75.49129 172.47464,72.418376 172.47465,68.793347 C 172.47464,66.46005 173.1361,64.27776 174.45902,62.246472 C 175.78193,60.215265 177.68818,58.668392 180.17777,57.605848 C 182.66734,56.543394 185.67254,56.012145 189.19339,56.012098 C 194.94337,56.012145 199.27149,57.27256 202.17777,59.793348 C 205.08398,62.314221 206.61002,65.678801 206.75589,69.887096 L 197.50589,70.293346 C 197.11003,67.939215 196.26107,66.246508 194.95902,65.215222 C 193.65691,64.184011 191.70379,63.668386 189.09964,63.668347 C 186.41213,63.668386 184.30796,64.220469 182.78715,65.324597 C 181.80797,66.032967 181.31838,66.980882 181.3184,68.168347 C 181.31838,69.251713 181.77672,70.178796 182.6934,70.949596 C 183.86005,71.928794 186.69338,72.949626 191.19339,74.012096 C 195.69337,75.074623 199.02149,76.173581 201.17777,77.308971 C 203.33398,78.444411 205.02148,79.996493 206.24027,81.96522 C 207.45898,83.933988 208.06835,86.366277 208.06839,89.262094 C 208.06835,91.887105 207.33919,94.345435 205.88089,96.637093 C 204.42252,98.928763 202.36003,100.63189 199.69339,101.74647 C 197.0267,102.86105 193.70379,103.41834 189.72464,103.41834 C 183.93296,103.41834 179.48505,102.0798 176.3809,99.402718 C 173.27673,96.725641 171.42256,92.824604 170.8184,87.699594 L 170.8184,87.699594 z M 215.9434,102.60584 L 215.9434,56.793348 L 225.1934,56.793348 L 225.1934,74.824596 L 243.31839,74.824596 L 243.31839,56.793348 L 252.56839,56.793348 L 252.56839,102.60584 L 243.31839,102.60584 L 243.31839,82.574595 L 225.1934,82.574595 L 225.1934,102.60584 L 215.9434,102.60584 z M 303.47463,102.60584 L 293.41213,102.60584 L 289.41213,92.199594 L 271.09963,92.199594 L 267.31838,102.60584 L 257.50588,102.60584 L 275.34963,56.793348 L 285.13088,56.793348 L 303.47463,102.60584 z M 286.44338,84.480845 L 280.13088,67.480847 L 273.94338,84.480845 L 286.44338,84.480845 z M 308.44338,102.60584 L 308.44338,56.793348 L 327.91213,56.793348 C 332.80793,56.793394 336.36522,57.204852 338.584,58.027723 C 340.80272,58.850683 342.57876,60.314223 343.91213,62.418347 C 345.24542,64.522552 345.91208,66.928799 345.91213,69.637097 C 345.91208,73.074626 344.90167,75.913164 342.88088,78.152721 C 340.86001,80.392326 337.83918,81.803783 333.81838,82.387095 C 335.81835,83.553781 337.46939,84.835029 338.7715,86.230845 C 340.07355,87.626693 341.82876,90.105857 344.03713,93.668344 L 349.63088,102.60584 L 338.56838,102.60584 L 331.88088,92.637094 C 329.50585,89.074608 327.88085,86.829819 327.00588,85.90272 C 326.13086,84.975654 325.20377,84.340238 324.22463,83.99647 C 323.24544,83.652739 321.69336,83.480864 319.56838,83.480845 L 317.69338,83.480845 L 317.69338,102.60584 L 308.44338,102.60584 z M 317.69338,76.168346 L 324.53713,76.168346 C 328.9746,76.168372 331.74543,75.980872 332.84963,75.605846 C 333.95376,75.230873 334.81835,74.585041 335.44338,73.668346 C 336.06835,72.751709 336.38085,71.605877 336.38088,70.230846 C 336.38085,68.689214 335.96939,67.444424 335.1465,66.496472 C 334.32356,65.548592 333.1621,64.949635 331.66213,64.699597 C 330.9121,64.595468 328.6621,64.543385 324.91213,64.543347 L 317.69338,64.543347 L 317.69338,76.168346 z M 354.78713,102.60584 L 354.78713,56.793348 L 364.03713,56.793348 L 364.03713,77.137096 L 382.72463,56.793348 L 395.16213,56.793348 L 377.91213,74.637096 L 396.09963,102.60584 L 384.13088,102.60584 L 371.53713,81.105845 L 364.03713,88.762094 L 364.03713,102.60584 L 354.78713,102.60584 z "
55
- id="text555" />
56
- <path
57
- style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:black;stroke-width:4.29723692;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
58
- d="M 2.6508445,51.095312 L 159.58462,51.095312 C 159.58462,51.095312 163.65572,3.3100825 205.7239,2.6463925 C 192.15353,23.884272 204.926,51.162742 204.926,51.162742 L 395.60917,51.162742"
59
- id="path1328"
60
- sodipodi:nodetypes="ccccc"
61
- inkscape:export-filename="/home/gerald/devel/wsweb/image/wslogo.png"
62
- inkscape:export-xdpi="90.000000"
63
- inkscape:export-ydpi="90.000000" />
64
- </svg>
@@ -1,135 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "Unauthor", {
6
- enumerable: true,
7
- get: function() {
8
- return Unauthor;
9
- }
10
- });
11
- const _executor = require("../../utils/executor");
12
- function _define_property(obj, key, value) {
13
- if (key in obj) {
14
- Object.defineProperty(obj, key, {
15
- value: value,
16
- enumerable: true,
17
- configurable: true,
18
- writable: true
19
- });
20
- } else {
21
- obj[key] = value;
22
- }
23
- return obj;
24
- }
25
- class Unauthor {
26
- async execute() {
27
- const result = [];
28
- const executor = new _executor.SoarExecutor(this);
29
- for(let idx = 0; idx < this.getInputData().length; idx++){
30
- const type = this.getNodeParameter("type", idx);
31
- const response = await executor.run(idx, "unauthor", "--targets", {
32
- extraArgs: [
33
- type
34
- ],
35
- extraArgParameters: [
36
- "options.option"
37
- ]
38
- });
39
- result.push(...this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(JSON.parse(response.stdout)), {
40
- itemData: {
41
- item: idx
42
- }
43
- }));
44
- }
45
- return [
46
- result
47
- ];
48
- }
49
- constructor(){
50
- _define_property(this, "description", {
51
- displayName: "Soar: Unauthor",
52
- name: "unauthor",
53
- group: [
54
- "output"
55
- ],
56
- icon: "file:unauthor.svg",
57
- version: 1,
58
- subtitle: "={{ 'unauthor' + ($parameter['batch'] ? ' (Batch)' : ' on ' + $parameter['target']) }}",
59
- description: "Interact with Unauthor",
60
- defaults: {
61
- name: "Unauthor"
62
- },
63
- inputs: [
64
- "main"
65
- ],
66
- outputs: [
67
- "main"
68
- ],
69
- credentials: [
70
- {
71
- name: "dockerCredentialsApi"
72
- },
73
- {
74
- name: "kubernetesCredentialsApi"
75
- }
76
- ],
77
- properties: (0, _executor.injectCommonProperties)([
78
- {
79
- displayName: "Type",
80
- name: "type",
81
- type: "options",
82
- default: "redis",
83
- options: [
84
- {
85
- displayName: "Redis",
86
- name: "Redis",
87
- value: "redis"
88
- }
89
- ]
90
- },
91
- {
92
- displayName: "Options",
93
- name: "options",
94
- type: "fixedCollection",
95
- default: {},
96
- typeOptions: {
97
- multipleValues: true
98
- },
99
- options: [
100
- {
101
- displayName: "Option",
102
- name: "option",
103
- values: [
104
- {
105
- displayName: "Options",
106
- name: "key",
107
- type: "options",
108
- default: "--concurrent",
109
- options: [
110
- {
111
- name: "Concurrent",
112
- value: "--concurrent",
113
- description: "Concurrent number (default 20)"
114
- },
115
- {
116
- name: "Timeout",
117
- value: "--timeout",
118
- description: "Timeout seconds (default 10s)"
119
- }
120
- ]
121
- },
122
- {
123
- displayName: "Value",
124
- name: "value",
125
- type: "string",
126
- default: ""
127
- }
128
- ]
129
- }
130
- ]
131
- }
132
- ], true)
133
- });
134
- }
135
- }
@@ -1,9 +0,0 @@
1
- {
2
- "node": "n8n-nodes-soar.unauthor",
3
- "nodeVersion": "1.0",
4
- "codexVersion": "1.0",
5
- "categories": [
6
- "Development",
7
- "Container"
8
- ]
9
- }
@@ -1,7 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-key-off" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
2
- <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
3
- <path d="M10.17 6.159l2.316 -2.316a2.877 2.877 0 0 1 4.069 0l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.33 2.33" />
4
- <path d="M14.931 14.948a2.863 2.863 0 0 1 -1.486 -.79l-.301 -.302l-6.558 6.558a2 2 0 0 1 -1.239 .578l-.175 .008h-1.172a1 1 0 0 1 -.993 -.883l-.007 -.117v-1.172a2 2 0 0 1 .467 -1.284l.119 -.13l.414 -.414h2v-2h2v-2l2.144 -2.144l-.301 -.301a2.863 2.863 0 0 1 -.794 -1.504" />
5
- <path d="M15 9h.01" />
6
- <path d="M3 3l18 18" />
7
- </svg>