MITRECND / chopshop

Protocol Analysis/Decoder Framework
https://chopshop.readthedocs.org/
487 stars 112 forks source link

Port Numbers & http_extractor #22

Closed paramduggal closed 10 years ago

paramduggal commented 10 years ago

As per current code, module http_extractor discovers HTTP traffic only over port 80.

def taste(tcp):
    ((src, sport), (dst, dport)) = tcp.addr
    if sport != 80 and dport != 80:
        return False

As many malware communicate using http protocol over non-standard ports, it is suggested that the module should:

Mraoul commented 10 years ago

It's a good idea. I'll incorporate a change into the ChopShop v4 branch.

Since we're using libhtp, it'd make more sense to do the first option and allow the user to specify the port (giving the option to allow all ports to be scanned).