n8n-nodes-soar 0.1.21 → 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.
- package/dist/common/asset.js +47 -58
- package/dist/common/connectionType.js +3 -2
- package/dist/common/executor/abstract.executor.js +51 -0
- package/dist/common/executor/docker.executor.js +57 -31
- package/dist/common/executor/jsonrpc.executor.js +123 -0
- package/dist/common/executor/{k8s.executor.js → kubernetes.executor.js} +56 -33
- package/dist/common/interface.js +4 -0
- package/dist/common/memorizer/abstract.memorizer.js +49 -0
- package/dist/common/memorizer/asset.memorizer.js +16 -0
- package/dist/common/memorizer/general.memorizer.js +17 -0
- package/dist/common/memorizer/storage/redis.storage.js +71 -0
- package/dist/common/proxy/abstract.proxy.js +4 -0
- package/dist/common/proxy/executor.proxy.js +50 -0
- package/dist/common/proxy/memorizer.proxy.js +51 -0
- package/dist/common/proxy/runner.proxy.js +60 -0
- package/dist/common/runner/container.runner.js +93 -108
- package/dist/common/runner/decorator/assetRunner.js +26 -0
- package/dist/common/runner/decorator/index.js +20 -0
- package/dist/common/runner/decorator/onlySuccess.js +20 -0
- package/dist/common/runner/{priority.js → decorator/priority.js} +16 -8
- package/dist/common/runner/priority.runner.js +6 -7
- package/dist/common/runner/runner.js +10 -29
- package/dist/constants/image.js +11 -0
- package/dist/credentials/SoarRunner/SoarRunner.credentials.js +73 -0
- package/dist/credentials/SoarRunner/icon.svg +8 -0
- package/dist/credentials/VulboxApi/VulboxApi.credentials.js +157 -0
- package/dist/credentials/VulboxApi/vulbox.svg +18 -0
- package/dist/nodes/Collector/Collector.node.js +56 -47
- package/dist/nodes/EmptyCheck/EmptyCheck.node.js +69 -0
- package/dist/nodes/Executor/DockerExecutor/DockerExecutor.node.js +80 -3
- package/dist/nodes/Executor/JsonRpcExecutor/JsonRpcExecutor.node.js +69 -0
- package/dist/nodes/Executor/JsonRpcExecutor/icon.svg +8 -0
- package/dist/nodes/Executor/KubernetesExecutor/KubernetesExecutor.node.js +112 -4
- package/dist/nodes/Fofa/Fofa.node.js +23 -14
- package/dist/nodes/Memorizer/Redis/RedisMemorizer.node.js +127 -0
- package/dist/nodes/Memorizer/Redis/redis.svg +1 -0
- package/dist/nodes/Platform/Vulbox/Vulbox.node.js +166 -0
- package/dist/nodes/Platform/Vulbox/api.js +211 -0
- package/dist/nodes/Platform/Vulbox/methods.js +124 -0
- package/dist/nodes/Platform/Vulbox/properties.js +403 -0
- package/dist/nodes/Platform/Vulbox/vulbox.svg +18 -0
- package/dist/nodes/Runner/Cmd/Cmd.node.js +105 -0
- package/dist/nodes/Runner/Dns/Dns.node.js +38 -22
- package/dist/nodes/Runner/Httpx/Httpx.node.js +147 -18
- package/dist/nodes/Runner/IcpLookup/IcpLookup.node.js +166 -0
- package/dist/nodes/Runner/IcpLookup/icp.svg +3 -0
- package/dist/nodes/Runner/Katana/Katana.node.js +42 -29
- package/dist/nodes/Runner/Masscan/Masscan.node.js +51 -29
- package/dist/nodes/Runner/Naabu/Naabu.node.js +35 -17
- package/dist/nodes/Runner/Nuclei/Nuclei.node.js +32 -14
- package/dist/nodes/Runner/Priority/Priority.node.js +2 -1
- package/dist/nodes/Runner/Subfinder/Subfinder.node.js +38 -15
- package/dist/nodes/Runner/Unauthor/Unauthor.node.js +32 -14
- package/dist/utils/decorator.js +22 -0
- package/package.json +19 -5
- package/dist/common/executor/executor.js +0 -48
- package/dist/nodes/Asset/SplitAsset/SplitAsset.node.js +0 -110
- package/dist/nodes/Asset/SplitAsset/split.svg +0 -13
- package/dist/nodes/Cdncheck/Cdncheck.node.js +0 -229
- package/dist/nodes/Httpx/Httpx.node.js +0 -754
- package/dist/nodes/Katana/Katana.node.js +0 -456
- package/dist/nodes/Katana/Katana.node.json +0 -9
- package/dist/nodes/Nuclei/Nuclei.node.js +0 -1024
- package/dist/nodes/Nuclei/Nuclei.node.json +0 -9
- package/dist/nodes/Runner/Katana/a.json +0 -30
- package/dist/nodes/Runner/Nuclei/a.json +0 -48
- package/dist/nodes/Runner/PriorityAdd/PriorityAdd.node.js +0 -97
- package/dist/nodes/Runner/Router/SwitchRouter/SwitchRouter.node.js +0 -101
- package/dist/nodes/Tshark/Tshark.node.js +0 -104
- package/dist/nodes/Tshark/Tshark.node.json +0 -9
- package/dist/nodes/Tshark/tshark.svg +0 -64
- package/dist/nodes/Unauthor/Unauthor.node.js +0 -135
- package/dist/nodes/Unauthor/Unauthor.node.json +0 -9
- package/dist/nodes/Unauthor/unauthor.svg +0 -7
- package/dist/nodes/Uncover/Uncover.node.js +0 -280
- 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
|
-
}
|