Advent of Cyber 2023 — Day 2

Mansoor Barri
Dec 4, 2023

--

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 use
df.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 use
df.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 use
df[‘Protocol’].value_counts()

ICMP

Visit mansoorbarri.com for other hacking & IT related articles.

--

--

Mansoor Barri
Mansoor Barri

Written by Mansoor Barri

Profile designed to share technology content about Penetration testing, Linux and Windows.

No responses yet