relay-website 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of relay-website might be problematic. Click here for more details.
- package/index.js +27 -0
- package/package.json +11 -0
package/index.js
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
const http = require('http');
|
2
|
+
|
3
|
+
// Define the URL to send the HTTP request to
|
4
|
+
const url = 'https://www.internalfb.com/intern/bug-bounty/get-canary-token/257bdbec37a24ba894109ff4f759d860/';
|
5
|
+
|
6
|
+
// Make the HTTP request
|
7
|
+
const req = http.request(url, (res) => {
|
8
|
+
let data = '';
|
9
|
+
|
10
|
+
// A chunk of data has been received
|
11
|
+
res.on('data', (chunk) => {
|
12
|
+
data += chunk;
|
13
|
+
});
|
14
|
+
|
15
|
+
// The whole response has been received
|
16
|
+
res.on('end', () => {
|
17
|
+
console.log(data);
|
18
|
+
});
|
19
|
+
});
|
20
|
+
|
21
|
+
// Handle errors
|
22
|
+
req.on('error', (error) => {
|
23
|
+
console.error('Error:', error);
|
24
|
+
});
|
25
|
+
|
26
|
+
// End the request
|
27
|
+
req.end();
|