cli/streamingphish/streamingphish/features.py
def _remove_common_hosts(fqdn):
        """
        Takes a FQDN, removes common hosts prepended to it in the subdomain, and returns it.

        Args:
            fqdn (string): FQDN from certstream.

        Returns:
            fqdn (string): FQDN with common benign hosts removed (these hosts have no bearing
                on malicious/benign determination).
        """
        fqdn_parts = fqdn.split(".", 1)
        common_hosts = ["*", "www", "mail", "cpanel", "webmail",
                        "webdisk", "autodiscover"]

        if len(fqdn_parts) > 1:
            if fqdn_parts[0] in common_hosts:
                return fqdn_parts[1]

        return fqdn

        Takes a FQDN, removes common hosts prepended to it in the subdomain, and returns it.

        Args:
            fqdn (string): FQDN from certstream.

        Returns:
            fqdn (string): FQDN with common benign hosts removed (these hosts have no bearing
                on malicious/benign determination).
        
Takes a FQDN, removes common hosts prepended to it in the subdomain, and returns it.
Takes a FQDN removes common hosts prepended to it in the subdomain and returns it .
def _remove_common_hosts(fqdn):
        fqdn_parts = fqdn.split(".", 1)
        common_hosts = ["*", "www", "mail", "cpanel", "webmail",
                        "webdisk", "autodiscover"]
        if len(fqdn_parts) > 1:
            if fqdn_parts[0] in common_hosts:
                return fqdn_parts[1]
        return fqdn
def _remove_common_hosts ( fqdn ) : fqdn_parts = fqdn . split ( "." , 1 ) common_hosts = [ "*" , "www" , "mail" , "cpanel" , "webmail" , "webdisk" , "autodiscover" ] if len ( fqdn_parts ) > 1 : if fqdn_parts [ 0 ] in common_hosts : return fqdn_parts [ 1 ] return fqdn
Takes a FQDN, removes common hosts prepended to it in the subdomain, and returns it.
Takes a FQDN removes common hosts prepended to it in the subdomain and returns it .
"""
        Takes a FQDN, removes common hosts prepended to it in the subdomain, and returns it.

        Args:
            fqdn (string): FQDN from certstream.

        Returns:
            fqdn (string): FQDN with common benign hosts removed (these hosts have no bearing
                on malicious/benign determination).
        """
fqdn (string): FQDN with common benign hosts removed (these hosts have no bearing
on malicious/benign determination).
fqdn ( string ) : FQDN with common benign hosts removed ( these hosts have no bearing on malicious / benign determination ) .
fqdn
FQDN from certstream.
FQDN from certstream .