cth-poc 1.0.7 → 1.0.9

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,6 +1,6 @@
1
1
  {
2
2
  "name": "cth-poc",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,7 +11,5 @@
11
11
  "author": "",
12
12
  "license": "ISC",
13
13
  "dependencies": {
14
- "express": "^4.18.2",
15
- "https": "^1.0.0"
16
14
  }
17
15
  }
package/request.js DELETED
@@ -1,19 +0,0 @@
1
- const https = require('https');
2
-
3
- const options = {
4
- hostname: 'ac1ae4a3-2131-40c6-be46-6a941fa50800.ssrf-check.wix.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