Closed frost19k closed 2 years ago
Hii @frost19k,
Thanks for your suggestion. To debug the script users can use bash -x
command to debug the script file.
$ bash -x /usr/bin/garud -d target.tld -o output -s -t 100
Also adding verbose mode option make the code so big it will make the script slow.
Problem Description: Currently Garud does not print STDOUT or STDERR from any tool. Which is to say that its working is opaque. Given that some commands can take up to 50 minutes to complete (line 141) this causes confusion among users about whether Garud is actually doing anything. Further, if something goes wrong then Users cannot post error messages when opening issues, making the maintainer's job more difficult.
Porposed solution: Make Garud more verbose. A simple message to STDOUT about what is hapening behind the scenes & whether or not it succeeded.
Example:
Output will look like this.
Pros: This code adds transparency while maintaining the clean look of Garud's output.
Cons: The code baloons each line 9x - which would make the script nearly unmaintainable!
Given that each command is unique in it's input, output, & operation, I cannot determine a pattern which allows for functionalising the code above.
@R0X4R thoughts?