n8n-nodes-soar 0.1.10 → 0.1.11

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.
@@ -0,0 +1,444 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "Naabu", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return Naabu;
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 Naabu {
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, "naabu", "-host", {
31
+ extraArgs: [
32
+ "-disable-update-check",
33
+ "-json",
34
+ "-silent"
35
+ ],
36
+ extraArgParameters: [
37
+ "options.input",
38
+ "options.port",
39
+ "options.rateLimit",
40
+ "options.configuration",
41
+ "options.hostDiscovery",
42
+ "options.servicesDiscovery",
43
+ "options.optimization"
44
+ ]
45
+ });
46
+ result.push(...this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(JSON.parse(response.stdout)), {
47
+ itemData: {
48
+ item: idx
49
+ }
50
+ }));
51
+ }
52
+ return [
53
+ result
54
+ ];
55
+ }
56
+ constructor(){
57
+ _define_property(this, "description", {
58
+ displayName: "Soar: Naabu",
59
+ name: "naabu",
60
+ group: [
61
+ "output"
62
+ ],
63
+ version: 1,
64
+ subtitle: "={{ 'naabu' + ($parameter['batch'] ? ' (Batch)' : ' on ' + $parameter['target']) }}",
65
+ description: "Interact with Naabu",
66
+ defaults: {
67
+ name: "Naabu"
68
+ },
69
+ inputs: [
70
+ "main"
71
+ ],
72
+ outputs: [
73
+ "main"
74
+ ],
75
+ credentials: [
76
+ {
77
+ name: "dockerCredentialsApi"
78
+ },
79
+ {
80
+ name: "kubernetesCredentialsApi"
81
+ }
82
+ ],
83
+ properties: (0, _executor.injectCommonProperties)([
84
+ {
85
+ displayName: "Options",
86
+ name: "options",
87
+ type: "fixedCollection",
88
+ default: {},
89
+ typeOptions: {
90
+ multipleValues: true
91
+ },
92
+ options: [
93
+ {
94
+ displayName: "Input",
95
+ name: "input",
96
+ values: [
97
+ {
98
+ displayName: "Options",
99
+ name: "key",
100
+ type: "options",
101
+ default: "-exclude-hosts",
102
+ options: [
103
+ {
104
+ name: "Exclude Hosts",
105
+ value: "-exclude-hosts",
106
+ description: "Hosts to exclude from the scan (comma-separated) (string)"
107
+ }
108
+ ]
109
+ },
110
+ {
111
+ displayName: "Value",
112
+ name: "value",
113
+ type: "string",
114
+ default: ""
115
+ }
116
+ ]
117
+ },
118
+ {
119
+ displayName: "Port",
120
+ name: "port",
121
+ values: [
122
+ {
123
+ displayName: "Options",
124
+ name: "key",
125
+ type: "options",
126
+ default: "-display-cdn",
127
+ options: [
128
+ {
129
+ name: "Display CDN",
130
+ value: "-display-cdn",
131
+ description: "Display cdn in use"
132
+ },
133
+ {
134
+ name: "Exclude CDN",
135
+ value: "-exclude-cdn",
136
+ description: "Skip full port scans for CDN/WAF (only scan for port 80,443)"
137
+ },
138
+ {
139
+ name: "Exclude Ports",
140
+ value: "-exclude-ports",
141
+ description: "Ports to exclude from scan (comma-separated) (string)"
142
+ },
143
+ {
144
+ name: "Port",
145
+ value: "-port",
146
+ description: "Ports to scan (80,443, 100-200) (string)"
147
+ },
148
+ {
149
+ name: "Port Threshold",
150
+ value: "-port-threshold",
151
+ description: "Port threshold to skip port scan for the host (int)"
152
+ },
153
+ {
154
+ name: "Ports File",
155
+ value: "-ports-file",
156
+ description: "List of ports to scan (file) (string)"
157
+ },
158
+ {
159
+ name: "Top Ports",
160
+ value: "-top-ports",
161
+ description: "Top ports to scan (default 100) [full,100,1000] (string)"
162
+ }
163
+ ]
164
+ },
165
+ {
166
+ displayName: "Value",
167
+ name: "value",
168
+ type: "string",
169
+ default: ""
170
+ }
171
+ ]
172
+ },
173
+ {
174
+ displayName: "Rate Limit",
175
+ name: "rateLimit",
176
+ values: [
177
+ {
178
+ displayName: "Options",
179
+ name: "key",
180
+ type: "options",
181
+ default: "-c",
182
+ options: [
183
+ {
184
+ name: "C",
185
+ value: "-c",
186
+ description: "General internal worker threads (default 25) (int)"
187
+ },
188
+ {
189
+ name: "Rate",
190
+ value: "-rate",
191
+ description: "Packets to send per second (default 1000) (int)"
192
+ }
193
+ ]
194
+ },
195
+ {
196
+ displayName: "Value",
197
+ name: "value",
198
+ type: "string",
199
+ default: ""
200
+ }
201
+ ]
202
+ },
203
+ {
204
+ displayName: "Configuration",
205
+ name: "configuration",
206
+ values: [
207
+ {
208
+ displayName: "Options",
209
+ name: "key",
210
+ type: "options",
211
+ default: "-input-read-timeout",
212
+ options: [
213
+ {
214
+ name: "Input Read Timeout",
215
+ value: "-input-read-timeout",
216
+ description: "Timeout on input read (default 3m0s) (value)"
217
+ },
218
+ {
219
+ name: "Interface",
220
+ value: "-interface",
221
+ description: "Network Interface to use for port scan (string)"
222
+ },
223
+ {
224
+ name: "Interface List",
225
+ value: "-interface-list",
226
+ description: "List available interfaces and public ip"
227
+ },
228
+ {
229
+ name: "IP Version",
230
+ value: "-ip-version",
231
+ description: "Ip version to scan of hostname (4,6) - (default 4) (string[])"
232
+ },
233
+ {
234
+ name: "Nmap",
235
+ value: "-nmap",
236
+ description: "Invoke nmap scan on targets (nmap must be installed) - Deprecated"
237
+ },
238
+ {
239
+ name: "Nmap Cli",
240
+ value: "-nmap-cli",
241
+ description: "Nmap command to run on found results (example: -nmap-cli 'nmap -sV') (string)"
242
+ },
243
+ {
244
+ name: "No Stdin",
245
+ value: "-no-stdin",
246
+ description: "Disable Stdin processing"
247
+ },
248
+ {
249
+ name: "Passive",
250
+ value: "-passive",
251
+ description: "Display passive open ports using shodan internetdb api"
252
+ },
253
+ {
254
+ name: "Proxy",
255
+ value: "-proxy",
256
+ description: "Socks5 proxy (ip[:port] / fqdn[:port] (string)"
257
+ },
258
+ {
259
+ name: "Proxy Auth",
260
+ value: "-proxy-auth",
261
+ description: "Socks5 proxy authentication (username:password) (string)"
262
+ },
263
+ {
264
+ name: "R",
265
+ value: "-r",
266
+ description: "List of custom resolver dns resolution (comma-separated or from file) (string)"
267
+ },
268
+ {
269
+ name: "Resume",
270
+ value: "-resume",
271
+ description: "Resume scan using resume.cfg"
272
+ },
273
+ {
274
+ name: "Scan All IPs",
275
+ value: "-scan-all-ips",
276
+ description: "Scan all the IP's associated with DNS record"
277
+ },
278
+ {
279
+ name: "Scan Type",
280
+ value: "-scan-type",
281
+ description: 'Type of port scan (SYN/CONNECT) (default "s") (string)'
282
+ },
283
+ {
284
+ name: "Source IP",
285
+ value: "-source-ip",
286
+ description: "Source ip and port (x.x.x.x:yyy) (string)"
287
+ },
288
+ {
289
+ name: "Stream",
290
+ value: "-stream",
291
+ description: "Stream mode (disables resume, nmap, verify, retries, shuffling, etc)"
292
+ }
293
+ ]
294
+ },
295
+ {
296
+ displayName: "Value",
297
+ name: "value",
298
+ type: "string",
299
+ default: ""
300
+ }
301
+ ]
302
+ },
303
+ {
304
+ displayName: "Host Discovery",
305
+ name: "hostDiscovery",
306
+ values: [
307
+ {
308
+ displayName: "Options",
309
+ name: "key",
310
+ type: "options",
311
+ default: "-arp-ping",
312
+ options: [
313
+ {
314
+ name: "Arp Ping",
315
+ value: "-arp-ping",
316
+ description: "ARP ping (host discovery needs to be enabled)"
317
+ },
318
+ {
319
+ name: "Host Discovery",
320
+ value: "-host-discovery",
321
+ description: "Perform Only Host Discovery"
322
+ },
323
+ {
324
+ name: "Nd Ping",
325
+ value: "-nd-ping",
326
+ description: "IPv6 Neighbor Discovery (host discovery needs to be enabled)"
327
+ },
328
+ {
329
+ name: "Probe Icmp Address Mask",
330
+ value: "-probe-icmp-address-mask",
331
+ description: "ICMP address mask request Ping (host discovery needs to be enabled)"
332
+ },
333
+ {
334
+ name: "Probe Icmp Echo",
335
+ value: "-probe-icmp-echo",
336
+ description: "ICMP echo request Ping (host discovery needs to be enabled)"
337
+ },
338
+ {
339
+ name: "Probe Icmp Timestamp",
340
+ value: "-probe-icmp-timestamp",
341
+ description: "ICMP timestamp request Ping (host discovery needs to be enabled)"
342
+ },
343
+ {
344
+ name: "Probe Tcp Ack",
345
+ value: "-probe-tcp-ack",
346
+ description: "TCP ACK Ping (host discovery needs to be enabled) (string[])"
347
+ },
348
+ {
349
+ name: "Probe Tcp Syn",
350
+ value: "-probe-tcp-syn",
351
+ description: "TCP SYN Ping (host discovery needs to be enabled) (string[])"
352
+ },
353
+ {
354
+ name: "Rev Ptr",
355
+ value: "-rev-ptr",
356
+ description: "Reverse PTR lookup for input ips"
357
+ },
358
+ {
359
+ name: "SkIP Host Discovery",
360
+ value: "-skip-host-discovery"
361
+ }
362
+ ]
363
+ },
364
+ {
365
+ displayName: "Value",
366
+ name: "value",
367
+ type: "string",
368
+ default: ""
369
+ }
370
+ ]
371
+ },
372
+ {
373
+ displayName: "Services Discovery",
374
+ name: "servicesDiscovery",
375
+ values: [
376
+ {
377
+ displayName: "Options",
378
+ name: "key",
379
+ type: "options",
380
+ default: "-service-discovery",
381
+ options: [
382
+ {
383
+ name: "Service Discovery",
384
+ value: "-service-discovery"
385
+ },
386
+ {
387
+ name: "Service Version",
388
+ value: "-service-version"
389
+ }
390
+ ]
391
+ }
392
+ ]
393
+ },
394
+ {
395
+ displayName: "Optimization",
396
+ name: "optimization",
397
+ values: [
398
+ {
399
+ displayName: "Options",
400
+ name: "key",
401
+ type: "options",
402
+ default: "-ping",
403
+ options: [
404
+ {
405
+ name: "Ping",
406
+ value: "-ping",
407
+ description: "Ping probes for verification of host"
408
+ },
409
+ {
410
+ name: "Retries",
411
+ value: "-retries",
412
+ description: "Number of retries for the port scan (default 3) (int)"
413
+ },
414
+ {
415
+ name: "Timeout",
416
+ value: "-timeout",
417
+ description: "Millisecond to wait before timing out (default 1000) (int)"
418
+ },
419
+ {
420
+ name: "Verify",
421
+ value: "-verify",
422
+ description: "Validate the ports again with TCP verification"
423
+ },
424
+ {
425
+ name: "Warm Up Time",
426
+ value: "-warm-up-time",
427
+ description: "Time in seconds between scan phases (default 2) (int)"
428
+ }
429
+ ]
430
+ },
431
+ {
432
+ displayName: "Value",
433
+ name: "value",
434
+ type: "string",
435
+ default: ""
436
+ }
437
+ ]
438
+ }
439
+ ]
440
+ }
441
+ ])
442
+ });
443
+ }
444
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "node": "n8n-nodes-soar.naabu",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": [
6
+ "Development",
7
+ "Container"
8
+ ]
9
+ }