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,229 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "Cdncheck", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return Cdncheck;
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 Cdncheck {
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, "cdncheck", "-input", {
31
+ extraArgs: [
32
+ "-jsonl",
33
+ "-silent",
34
+ "-disable-update-check"
35
+ ],
36
+ extraArgParameters: [
37
+ "options.detection",
38
+ "options.matcher",
39
+ "options.filter",
40
+ "options.config"
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: Cdncheck",
56
+ name: "cdncheck",
57
+ group: [
58
+ "output"
59
+ ],
60
+ version: 1,
61
+ subtitle: "={{ 'cdncheck' + ($parameter['batch'] ? ' (Batch)' : ' on ' + $parameter['target']) }}",
62
+ description: "Interact with Cdncheck",
63
+ defaults: {
64
+ name: "Cdncheck"
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: "Detection",
92
+ name: "detection",
93
+ values: [
94
+ {
95
+ displayName: "Options",
96
+ name: "key",
97
+ type: "options",
98
+ default: "-cdn",
99
+ options: [
100
+ {
101
+ name: "CDN",
102
+ value: "-cdn",
103
+ description: "Display only cdn in cli output"
104
+ },
105
+ {
106
+ name: "Cloud",
107
+ value: "-cloud",
108
+ description: "Display only cloud in cli output"
109
+ },
110
+ {
111
+ name: "Waf",
112
+ value: "-waf",
113
+ description: "Display only waf in cli output"
114
+ }
115
+ ]
116
+ }
117
+ ]
118
+ },
119
+ {
120
+ displayName: "Matcher",
121
+ name: "matcher",
122
+ values: [
123
+ {
124
+ displayName: "Options",
125
+ name: "key",
126
+ type: "options",
127
+ default: "-match-cdn",
128
+ options: [
129
+ {
130
+ name: "Match CDN",
131
+ value: "-match-cdn",
132
+ description: "Match host with specified cdn provider (cloudfront, fastly, google, leaseweb, stackpath) (string[])"
133
+ },
134
+ {
135
+ name: "Match Cloud",
136
+ value: "-match-cloud",
137
+ description: "Match host with specified cloud provider (zscaler, aws, azure, google, office365, oracle) (string[])"
138
+ },
139
+ {
140
+ name: "Match Waf",
141
+ value: "-match-waf",
142
+ description: "Match host with specified waf provider (akamai, cloudflare, incapsula, sucuri) (string[])"
143
+ }
144
+ ]
145
+ },
146
+ {
147
+ displayName: "Value",
148
+ name: "value",
149
+ type: "string",
150
+ default: ""
151
+ }
152
+ ]
153
+ },
154
+ {
155
+ displayName: "Filter",
156
+ name: "filter",
157
+ values: [
158
+ {
159
+ displayName: "Options",
160
+ name: "key",
161
+ type: "options",
162
+ default: "-filter-cdn",
163
+ options: [
164
+ {
165
+ name: "Filter CDN",
166
+ value: "-filter-cdn",
167
+ description: "Filter host with specified cdn provider (cloudfront, fastly, google, leaseweb, stackpath) (string[])"
168
+ },
169
+ {
170
+ name: "Filter Cloud",
171
+ value: "-filter-cloud",
172
+ description: "Filter host with specified cloud provider (zscaler, aws, azure, google, office365, oracle) (string[])"
173
+ },
174
+ {
175
+ name: "Filter Waf",
176
+ value: "-filter-waf",
177
+ description: "Filter host with specified waf provider (akamai, cloudflare, incapsula, sucuri) (string[])"
178
+ }
179
+ ]
180
+ },
181
+ {
182
+ displayName: "Value",
183
+ name: "value",
184
+ type: "string",
185
+ default: ""
186
+ }
187
+ ]
188
+ },
189
+ {
190
+ displayName: "Config",
191
+ name: "config",
192
+ values: [
193
+ {
194
+ displayName: "Options",
195
+ name: "key",
196
+ type: "options",
197
+ default: "-resolver",
198
+ options: [
199
+ {
200
+ name: "Resolver",
201
+ value: "-resolver",
202
+ description: "List of resolvers to use (file or comma-separated) (string[])"
203
+ },
204
+ {
205
+ name: "Exclude",
206
+ value: "-exclude",
207
+ description: "Exclude detected ip from output"
208
+ },
209
+ {
210
+ name: "Retry",
211
+ value: "-retry",
212
+ description: "Maximum number of retries for dns resolution (must be at least 1) (default 2) (int)"
213
+ }
214
+ ]
215
+ },
216
+ {
217
+ displayName: "Value",
218
+ name: "value",
219
+ type: "string",
220
+ default: ""
221
+ }
222
+ ]
223
+ }
224
+ ]
225
+ }
226
+ ])
227
+ });
228
+ }
229
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "node": "n8n-nodes-soar.cdncheck",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": [
6
+ "Development",
7
+ "Container"
8
+ ]
9
+ }