Quick post on how I start my shell scripts. I tend to follow a similar pattern when developing any script to automate any tasks from running all my scan tools, to a simple building my recon folder structure.
Here is my code template you can copy and paste this and it should work standalone.
Output:
Notice that when I run the script with no flags it outputs the info message, when I add the -s flag the output is hidden but the message still gets sent into the log file.
Summary:
This code is pretty simple, if anything seems confusing please leave a comment below and I will explain into more detail your questions and doubts. If you want to see me extend this "Template" please let me know what you want me to build I will attempt to do so.
Comments