-
Run entire shell script as root
$ #!/usr/bin/sudo /bin/bash Placing sudo in the shebang line of a shell script runs the entire thing as root. Useful for scripts designed to, e.g. automate system upgrades or package manager wrappers — makes prepending everything with sudo no longer necessary View this command to comment, vote or add to...
-
How to identify potentially vulnerable network daemons on your Linux systems
Identifying vulnerable network daemons for remediation and how attackers find vulnerable resources. Article Source.
-
How to embed a binary file in a bash shell script
You may have been in a situation where you want to embed a binary file in your shell script before sharing it with others. For example, you are working on an installation script that includes a tarball. Or you are writing a portable shell script that includes any external dependency....