sensepost / gowitness

🔍 gowitness - a golang, web screenshot utility using Chrome Headless
GNU General Public License v3.0
2.87k stars 329 forks source link

Exclude mac addresses in nmap parser #59

Closed randomactsofsecurity closed 3 years ago

randomactsofsecurity commented 3 years ago

Describe the bug Nmap files containing MAC addresses are included in the scan for URL's when parsing the nmap XML file

To Reproduce Example NMAP File containing multiple addresses:

<address addr="192.168.1.1" addrtype="ipv4"/>
<address addr="00:00:00:00:00:00" addrtype="mac" vendor="FakeVendor"/>

Gowitness Result:

17 Sep 2020 10:50:00 ERR preflight failed for url error="Get \"https://00:00:00:00:00:00\": dial tcp: 
lookup 00:00:00:00:00:00: no such host"

Expected behavior Just need to modify cmd/nmap.go to exclude an address type of 'mac'

Version Information:

Additional context I'm 99% sure MAC addresses can't be used in a URL, but not 100% sure

randomactsofsecurity commented 3 years ago

Thank you!