R0X4R / Garud

An automation tool that scans sub-domains, sub-domain takeover, then filters out XSS, SSTI, SSRF, and more injection point parameters and scans for some low hanging vulnerabilities automatically.
MIT License
779 stars 178 forks source link

Issue at installation /usr/bin/env: ‘bash\r’: No such file or directory #53

Closed C0NQR0R closed 2 years ago

C0NQR0R commented 2 years ago

/usr/bin/env: ‘bash\r’: No such file or directory

Capture #

tusherh82 commented 2 years ago

I'm face exactly same.

  1. First of all open the install.sh script in nano: sudo nano install.sh In the first line of the script looks like this: #!/usr/bin/env bash
  2. Change to this: #!/bin/bash
  3. Click: ctrl+x
  4. Then click: y
  5. Press: Enter (For save the file)
  6. Now, run this fix command: sudo sed -i -e 's/\r$//' install.sh

Your problem solved here......... But, You'll come back with other problem. the problem solution shown below:

Big fix:

  1. Open the install.sh script in any editor. I'm using gedit. Command: sudo gedit install.sh
  2. Remove this code from entire script: > /dev/null 2>&1

It'll show verbose of all commands. You can check where the problem occurs for running the install.sh script.

R0X4R commented 2 years ago

Hi @C0NQR0R

Please read the README.md file you'll get the solution. And @tusherh82 thank you for your solution :)