(indicator)
Guess the type of the indicator
    returns string in "IPv4", "IPv6", "md5", "sha1", "sha256", "domain"
Guess the type of the indicator
    returns string in "IPv4", "IPv6", "md5", "sha1", "sha256", "domain"
Guess the type of the indicator returns string in IPv4 IPv6 md5 sha1 sha256 domain
def typeguess(indicator):
    """
    Guess the type of the indicator
    returns string in "IPv4", "IPv6", "md5", "sha1", "sha256", "domain"
    """
    if re.match("^\w{32}$", indicator):
        return "md5"
    elif re.match("^\w{40}$", indicator):
        return "sha1"
    elif re.match("^\w{64}$", indicator):
        return "sha256"
    else:
        try:
            i = IP(indicator)
            if i.version() == 4:
                return "IPv4"
            else:
                return "IPv6"
        except ValueError:
            return "domain"
def typeguess ( indicator ) : if re . match ( "^\w{32}$" , indicator ) : return "md5" elif re . match ( "^\w{40}$" , indicator ) : return "sha1" elif re . match ( "^\w{64}$" , indicator ) : return "sha256" else : try : i = IP ( indicator ) if i . version ( ) == 4 : return "IPv4" else : return "IPv6" except ValueError : return "domain"