0

TODO:

#   Task 1: Return n being:
#       n = Number of packets with only SYN+ACK flags
def syn_ack(self):
    n = 0
    syn = 0
    ack = 0
    
    # TODO: Implement me
    for syn in pyshark.FileCapture('TCP.reflection_fall2023.pcap'):
        n += 1

    return n

I am able to pull all packets but not sure how to filter to only pull syn and ack packets from wireshark.

1 Answers1

0

You should probably attempt to do your school assignments on your own. You even posted the file name verbatim. This is actually considered plagiarism.