Hiding communications with cryptcat
In this recipe we will use cryptcat
to transfer files between two hosts. Although we will use cryptcat
for transferring files in this example, it can be used for a wide variety of purposes such as secure chat, shell access, port scanning as well as others.
Getting ready
Let's ensure the following prerequisites:
- Your Kali Linux VM is powered up and you are logged in as root
- Your Ubuntu VM is powered up and you are logged in and on the NAT network and have internet connectivity
How to do it...
To use cryptcat
to create tunnels to hide communications, we will follow these steps:
- Validate the IP addresses of your Kali VM and your Ubuntu VM. For my purposes, my Kali box is
10.0.2.5
and Ubuntu are10.0.2.6
. - First we will start in the Ubuntu VM where we are currently logged in and we want to start by elevating ourselves to root by entering the following commands in the console:
sudo su <enter>
- We must next install
cryptcat
on the Ubuntu VM by entering the following...