rapid7/metasploit-framework — pull request #2776 by jvazquez-r7 (2013-12-17 19:50:27+00:00)
Title: ChrisJohnRiley fix for sap_service_discovery

I'm doing this pull request on behalf of Chris John Riley since he isn't able to do pull request atm. Short history: it tries to avoid repeated on the scanned ports because of wildcars:

Verification
========

- [ ] Run the module, there shouldn't be results (ports) twice:

```
msf auxiliary(sap_service_discovery) > run

[*] [SAP] Beginning service Discovery '10.20.37.51'

[+] 10.20.37.51:3200	- SAP Dispatcher sapdp00 OPEN
[+] 10.20.37.51:8100	- SAP Message Server [HTTP] OPEN
[+] 10.20.37.51:50013	- SAP StartService [SOAP] sapctrl00 OPEN
[+] 10.20.37.51:3900	- ITS AGate sapavw00_ OPEN
[+] 10.20.37.51:3601	- SAP Message Server sapms01 OPEN
[+] 10.20.37.51:3299	- SAP Router OPEN
[+] 10.20.37.51:7200	- LiveCache MaxDB (formerly SAP DB) OPEN
[+] 10.20.37.51:7269	- LiveCache MaxDB (formerly SAP DB) OPEN
[+] 10.20.37.51:7210	- LiveCache MaxDB (formerly SAP DB) OPEN
[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
```

* Before this pull request you could get the same port two times in results because of wildcards:

```
msf auxiliary(sap_service_discovery) > run

[*] [SAP] Beginning service Discovery '10.20.37.51'

[+] 10.20.37.51:3200	- SAP Dispatcher sapdp00 OPEN
[+] 10.20.37.51:8100	- SAP Message Server [HTTP] OPEN
[+] 10.20.37.51:50013	- SAP StartService [SOAP] sapctrl00 OPEN
[+] 10.20.37.51:3900	- ITS AGate sapavw00_ OPEN
[+] 10.20.37.51:3299	- SAP Router OPEN
[+] 10.20.37.51:7210	- LiveCache MaxDB (formerly SAP DB) OPEN
[+] 10.20.37.51:7269	- LiveCache MaxDB (formerly SAP DB) OPEN
[+] 10.20.37.51:7200	- LiveCache MaxDB (formerly SAP DB) OPEN
[+] 10.20.37.51:3601	- SAP Message Server sapms01 OPEN
[+] 10.20.37.51:7269	- LiveCache MaxDB (formerly SAP DB) OPEN
[+] 10.20.37.51:7210	- LiveCache MaxDB (formerly SAP DB) OPEN
[+] 10.20.37.51:7200	- LiveCache MaxDB (formerly SAP DB) OPEN
[+] 10.20.37.51:3299	- SAP Router OPEN
[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
```