iocextract icon indicating copy to clipboard operation
iocextract copied to clipboard

Defanged first.last Email Addresses do not refang correctly

Open bradchiappetta opened this issue 5 years ago • 1 comments

Issue seems to be around this defangged format:

firstname[.]lastname[@]domainname[.]org

When refanged, seeing the following:

[email protected]

For some reason, the username format of first.last is getting chopped off to just last.

bradchiappetta avatar Dec 12 '19 14:12 bradchiappetta

Actually, this might be an email parser issue in general. I just retested with refang disabled, and I get

lastname[@]domainname[.]org

bradchiappetta avatar Dec 12 '19 14:12 bradchiappetta

Hi, @bradchiappetta!

This issue is now resolved and in our development branch. Once a new version is available for download from PyPI, I will post another comment here.

Here's a quick example for when the new version is available:

import iocextract

def extract_data():
    data = "firstname[.]lastname[@]domainname[.]org"

    # refang
    print(list(iocextract.extract_emails(data, True)))

    # normal
    print(list(iocextract.extract_emails(data, False)))

extract_data()

battleoverflow avatar Jan 10 '23 22:01 battleoverflow

New version is now available on PyPI: https://pypi.org/project/iocextract/1.14.0/

battleoverflow avatar Jan 11 '23 19:01 battleoverflow