"Untitled" By gando (https://pastebin.com/u/gando) URL: https://pastebin.com/gsV1NPQM Created on: Sunday 19th of June 2011 04:20:39 PM CDT Retrieved on: Saturday 31 of October 2020 07:58:36 AM UTC #!/bin/bash # motdgen - generate a MOTD for this box. # created by hunter echo "[+] Generating MOTD..." USER_INFO=$(grep :100.*:100.*: /etc/passwd | sort -ud | cut -d':' -f1,6 | sed 's/:/ - /') echo " $(figlet -f smslant BitLegend) ~IRCbro Shell~ ~~~ Need packages installed? Put a list of them in /home/group/install-requests/. You can find a list of installed packages in /home/group/installed-packages. ~~~ List of users: $USER_INFO " | figlet -f term -c -w 80 > "$HOME/.motdgen_temp" echo "[+] Generated! Now writing to /etc/motd.tail..." sudo tee "/etc/motd.tail" < "$HOME/.motdgen_temp" echo "[+] Running \"sudo updatemotd\"..." sudo updatemotd echo "[+] Done!" rm -f "$HOME/.motdgen_temp"