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,280 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "Uncover", {
6
- enumerable: true,
7
- get: function() {
8
- return Uncover;
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 Uncover {
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 response = await executor.run(idx, "uncover", "-query", {
31
- extraArgs: [
32
- "-disable-update-check",
33
- "-json",
34
- "-silent"
35
- ],
36
- extraArgParameters: [
37
- "options.input",
38
- "options.searchEngine",
39
- "options.config",
40
- "options.output"
41
- ]
42
- });
43
- result.push(...this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(((d)=>d.split("\n").map((n)=>n.trim()).filter(Boolean).map((d)=>JSON.parse(d)))(response.stdout)), {
44
- itemData: {
45
- item: idx
46
- }
47
- }));
48
- }
49
- return [
50
- result
51
- ];
52
- }
53
- constructor(){
54
- _define_property(this, "description", {
55
- displayName: "Soar: Uncover",
56
- name: "uncover",
57
- group: [
58
- "output"
59
- ],
60
- version: 1,
61
- subtitle: "={{ 'uncover' + ($parameter['batch'] ? ' (Batch)' : ' on ' + $parameter['target']) }}",
62
- description: "Interact with Uncover",
63
- defaults: {
64
- name: "Uncover"
65
- },
66
- inputs: [
67
- "main"
68
- ],
69
- outputs: [
70
- "main"
71
- ],
72
- credentials: [
73
- {
74
- name: "dockerCredentialsApi"
75
- },
76
- {
77
- name: "kubernetesCredentialsApi"
78
- }
79
- ],
80
- properties: (0, _executor.injectCommonProperties)([
81
- {
82
- displayName: "Options",
83
- name: "options",
84
- type: "fixedCollection",
85
- default: {},
86
- typeOptions: {
87
- multipleValues: true
88
- },
89
- options: [
90
- {
91
- displayName: "Input",
92
- name: "input",
93
- values: [
94
- {
95
- displayName: "Options",
96
- name: "key",
97
- type: "options",
98
- default: "-engine",
99
- options: [
100
- {
101
- name: "Engine",
102
- value: "-engine",
103
- description: "Search engine to query (shodan,shodan-idb,fofa,censys,quake,hunter,zoomeye,netlas,publicwww,criminalip,hunterhow) (default shodan) (string[])"
104
- }
105
- ]
106
- },
107
- {
108
- displayName: "Value",
109
- name: "value",
110
- type: "string",
111
- default: ""
112
- }
113
- ]
114
- },
115
- {
116
- displayName: "Search Engine",
117
- name: "searchEngine",
118
- values: [
119
- {
120
- displayName: "Options",
121
- name: "key",
122
- type: "options",
123
- default: "-censys",
124
- options: [
125
- {
126
- name: "Censys",
127
- value: "-censys",
128
- description: "Search query for censys (example: -censys 'query.txt') (string[])"
129
- },
130
- {
131
- name: "CriminalIP",
132
- value: "-criminalip",
133
- description: "Search query for criminalip (example: -criminalip 'query.txt') (string[])"
134
- },
135
- {
136
- name: "Fofa",
137
- value: "-fofa",
138
- description: "Search query for fofa (example: -fofa 'query.txt') (string[])"
139
- },
140
- {
141
- name: "Hunter",
142
- value: "-hunter",
143
- description: "Search query for hunter (example: -hunter 'query.txt') (string[])"
144
- },
145
- {
146
- name: "Hunterhow",
147
- value: "-hunterhow",
148
- description: "Search query for hunterhow (example: -hunterhow 'query.txt') (string[])"
149
- },
150
- {
151
- name: "Netlas",
152
- value: "-netlas",
153
- description: "Search query for netlas (example: -netlas 'query.txt') (string[])"
154
- },
155
- {
156
- name: "Publicwww",
157
- value: "-publicwww",
158
- description: "Search query for publicwww (example: -publicwww 'query.txt') (string[])"
159
- },
160
- {
161
- name: "Quake",
162
- value: "-quake",
163
- description: "Search query for quake (example: -quake 'query.txt') (string[])"
164
- },
165
- {
166
- name: "Shodan",
167
- value: "-shodan",
168
- description: "Search query for shodan (example: -shodan 'query.txt') (string[])"
169
- },
170
- {
171
- name: "Shodan IDb",
172
- value: "-shodan-idb",
173
- description: "Search query for shodan-idb (example: -shodan-idb 'query.txt') (string[])"
174
- },
175
- {
176
- name: "Zoomeye",
177
- value: "-zoomeye",
178
- description: "Search query for zoomeye (example: -zoomeye 'query.txt') (string[])"
179
- }
180
- ]
181
- },
182
- {
183
- displayName: "Value",
184
- name: "value",
185
- type: "string",
186
- default: ""
187
- }
188
- ]
189
- },
190
- {
191
- displayName: "Config",
192
- name: "config",
193
- values: [
194
- {
195
- displayName: "Options",
196
- name: "key",
197
- type: "options",
198
- default: "-config",
199
- options: [
200
- {
201
- name: "Config",
202
- value: "-config",
203
- description: 'Flag configuration file (default "/root/.config/uncover/config.yaml") (string)'
204
- },
205
- {
206
- name: "ProvIDer",
207
- value: "-provider",
208
- description: 'Provider configuration file (default "/root/.config/uncover/provider-config.yaml") (string)'
209
- },
210
- {
211
- name: "Rate Limit",
212
- value: "-rate-limit",
213
- description: "Maximum number of http requests to send per second (int)"
214
- },
215
- {
216
- name: "Rate Limit Minute",
217
- value: "-rate-limit-minute",
218
- description: "Maximum number of requests to send per minute (int)"
219
- },
220
- {
221
- name: "Retry",
222
- value: "-retry",
223
- description: "Number of times to retry a failed request (default 2) (int)"
224
- },
225
- {
226
- name: "Timeout",
227
- value: "-timeout",
228
- description: "Timeout in seconds (default 30) (int)"
229
- }
230
- ]
231
- },
232
- {
233
- displayName: "Value",
234
- name: "value",
235
- type: "string",
236
- default: ""
237
- }
238
- ]
239
- },
240
- {
241
- displayName: "Output",
242
- name: "output",
243
- values: [
244
- {
245
- displayName: "Options",
246
- name: "key",
247
- type: "options",
248
- default: "-field",
249
- options: [
250
- {
251
- name: "Field",
252
- value: "-field",
253
- description: 'Field to display in output (ip,port,host) (default "ip:port") (string)'
254
- },
255
- {
256
- name: "Raw",
257
- value: "-raw",
258
- description: "Write raw output as received by the remote api"
259
- },
260
- {
261
- name: "Limit",
262
- value: "-limit",
263
- description: "Limit the number of results to return (default 100) (int)"
264
- }
265
- ]
266
- },
267
- {
268
- displayName: "Value",
269
- name: "value",
270
- type: "string",
271
- default: ""
272
- }
273
- ]
274
- }
275
- ]
276
- }
277
- ])
278
- });
279
- }
280
- }
@@ -1,9 +0,0 @@
1
- {
2
- "node": "n8n-nodes-soar.uncover",
3
- "nodeVersion": "1.0",
4
- "codexVersion": "1.0",
5
- "categories": [
6
- "Development",
7
- "Container"
8
- ]
9
- }