What is the variable “THRESH” used for? Explain in detail.
![def findAttack(pcap): pktCount- for (ts, buf) in pcap: try: eth dpkt.ethernet.Ethernet (buf) p eth.data src = https://www.chegg.com/homework-help/questions-and-answers/socket . inet_ntoa(ip. src) dst socket.inet ntoa(ip.dst) tcp- İp.data dport tcp.dport f dport 88 stream-src:dst if pktCount.has_key (stream): else: pktCount[stream]-1 except: pass for strean in pktCount: pktssent - pktcount(stream if pktsSent > THRESH: sre-stream.split)te] dst stream. split(1] print+ src+ attacked +dst+ with str(pktsSent) pkts.](https://media.cheggcdn.com/media%2F63f%2F63fd0cae-c724-429b-8399-f23c6aed363f%2FphplOjG0w.png)
def findAttack(pcap): pktCount- for (ts, buf) in pcap: try: eth dpkt.ethernet.Ethernet (buf) p eth.data src = socket . inet_ntoa(ip. src) dst socket.inet ntoa(ip.dst) tcp- İp.data dport tcp.dport f
PayPal Gateway not configured
PayPal Gateway not configured