InQuest / iocextract

Defanged Indicator of Compromise (IOC) Extractor.
https://inquest.readthedocs.io/projects/iocextract/
GNU General Public License v2.0
498 stars 91 forks source link

URL is not extracted correctly #68

Closed t-mtsmt closed 1 year ago

t-mtsmt commented 1 year ago

When I ran the sample script with one line of text, all text was displayed without extracting URLs.

import iocextract

content = \
"""
All the bots are on hxxp://example.com/bad/url these days.
"""

for url in iocextract.extract_urls(content):
    print(url)

The output result is as follows.

$ python3 test.py

All the bots are on hxxp://example.com/bad/url these days.
battleoverflow commented 1 year ago

Hi, @t-mtsmt!

This issue should be fixed in the newest version of iocextract. The script you provided in the original issue should work as expected now.

You can update the iocextract package using the following command: pip3 install iocextract -U

New version: https://pypi.org/project/iocextract/1.15.2/