Advent of Cyber 2023 — Day 2
How many packets were captured (looking at the PacketNumber)?
Use the dataframe.count()
Function to Count the count of Columns(Packet Number). In our case data frame name is df, so usedf.count()
100
What IP address sent the most amount of traffic during the packet capture?
Use the dataframe.groupteby([‘ColumnName’]).size()
Function to find the IP that sent the most traffic. In our case data frame name is df, so usedf.groupby([‘Source’]).size()
What IP address sent the most amount of traffic during the packet capture?
What was the most frequent protocol?
Use the dataframe[‘ColumnHere’].value_counts()
Function to find the most frequent protocol. In our case data frame name is df, so usedf[‘Protocol’].value_counts()
ICMP
Visit mansoorbarri.com for other hacking & IT related articles.