Command line Pastebin using curl

In this post, I will demonstrate how to use the Ubuntu Pastebin utility with cURL to make pastes from the command line.

Sed Substitution Cheatsheet

This is a comprehensive list of examples for the sed (stream editor command). This command is used to find, replace, refactor, and modify text.

Writing a port scanner in Bash shell

A primitive port scanner can be constructed using solely the bash shell via its /dev/tcp virtual file. The script will scan common ports, and if an open port is found, it will display a base64 encoded output of the servers response.

Pretty printing terminal output into JSON/CSV

There is a command called column which allows you to format the lines produced by a command into symmetrical rows/columns, which can then be easily converted into CSV or JSON. This will be quite handy for reading and populating files. In this case, I needed to populate /etc/ethers/