stephenbrannon / IOCextractor

IOC (Indicator of Compromise) Extractor: a program to help extract IOCs from text files.
135 stars 39 forks source link

Change to the ipv4 regular expression #1

Closed blackfist closed 12 years ago

blackfist commented 12 years ago

Steve, I've made a change to the regular expression that looks for IPv4 addresses. Before the change the regular expression would tag an ip address in something like 121.234.121.241.168. Or we would also see v2.12.2.1 picked up as an IP address. So I've made the regular expression look for a word boundary on both sides of the ip address. It will no longer incorrectly identify ip addresses in substrings.

...t as ip addresses.