How to find out how many ICMP Echo requests/replies did this node receive from 192.168.200.1 using a
Fantastic news! We've Found the answer you've been seeking!
Question:
How to find out how many ICMP Echo requests/replies did this node receive from 192.168.200.1 using a pcap file.
from scapy.all import * packets = rdpcap('example.pcap')
packets[ICMP].summary()
then what?
Transcribed Image Text:
Ether/ IP / ICMP 192.168.100.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.100.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.100.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.100.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.100.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.100.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.100.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.100.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.100.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.100.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.100.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.100.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.100.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.100.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.100.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.100.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.100.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.100.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.100.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.100.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.200.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.200.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.200.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.200.2 echo-reply 0 / Raw Ether/ IP / ICMP 192.168.100.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.100.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.100.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.100.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.100.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.100.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.100.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.100.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.100.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.100.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.100.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.100.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.100.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.100.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.100.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.100.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.100.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.100.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.100.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.100.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.200.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.200.2 echo-reply 0 / Raw Ether / IP / ICMP 192.168.200.2 > 192.168.100.1 echo-request 0 / Raw Ether / IP / ICMP 192.168.100.1 > 192.168.200.2 echo-reply 0 / Raw
Expert Answer:
Answer rating: 100% (QA)
Answer I just change the packets as mypackets Here a loop is exe... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
How many records does the file contain? How many fields are there perrecord? PROJECT CODE PROJECT MANAGER MANAGER PHONE 21-52 25-2D 25-5A 25-9T 27-40 29-2D 31-7P MANAGER ADDRES 3334 Lee Rd.,...
-
Using any test covered in this chapter, find out which of the following series converge absolutely, which converge conditionally, and which diverge. a) b) c) d) 3.5 (2k 1) i 2.4 2k 1.3 i 5-7 (2k-1)...
-
Using the table from Example 2, find the assessed value of the house in this classified ad? New Listing: Cape-Cod style home w 2 baths, 700 sq. ft first flr, upstairs 15 x 26 dormer, 12 x 20 garage,...
-
Jerome Neeson is a shareholder in Gourmet Chefs Inc., a company that owns and operates a test kitchen in a large metropolitan area. The company is involved in a number of businesses, including...
-
X and Y are independent identically distributed Gaussain (0,1) random variables. Find the CDF of W = X2 + Y2.
-
An article in Electric Power Systems Research [Modeling Real-Time Balancing Power Demands in Wind Power Systems Using Stochastic Differential Equations (2010, Vol. 80(8), pp. 966974)] considered a...
-
Are the input specifiers for scanf() identical to the output specifiers for printf()?
-
Southwestern University (SWU), a large state college in Stephenville, Texas, 30 miles southwest of the Dallas/Fort Worth metroplex, enrolls close to 20,000 students. In a typical town-gown...
-
Give the steps required to use the Oracle Enterprise Manager to monitor the performance of the Oracle Database and identify any potential performance bottlenecks.
-
Howies Bakery is one of the most popular bakeries in town, and the favorite at Howies is French bread. Each day of the week, Howies bakes a number of loaves of French bread, more or less according to...
-
In a dielectric medium, P = 0.45D. Therefore the relative permittivity of the medium is O a 545 O b.3.64 Oc091 Od 1.82 O e. 0.55 O1.727
-
Formulate and state your hypothesis. (Which molecule, potassium permanganate or malachite green, do you expect to diffuse faster?) Explain in statement form.
-
Pre-lab questions 1. When solutions of two dissolved salts (AX and BY, for example) are combined and result in the formation of an insoluble salt in the form of a solid precipitate (AY, for example),...
-
The compound below shows 1 single resonance peak in carbon and proton NMR spectra. Provide an explanationusing resonance. Use illustrations and provide a clear statement to support this statement
-
1. a) What is the frequency of a light that has a wavelength of 532 nm? b) Calculate the energy of a photon of light with a wavelength of 532 nm. 2. Consider the transition of the electron in the...
-
Pentanoic acid can be utilized for deoxygenation reactions using titanium oxide and zirconium oxides. The products are important for biomass up - grading as they increase the amount of diesel fuel....
-
Suppose you have the follow information about Intrinsic Co. and the market. What is the Beta of Intrinsic Co.? Probability Intrinsic Co. Returns Market Returns 0.48 15.4% 9.1% 0.35 17.9% 10.8% 0.17...
-
What types of inventory issues Starbucks might reflect upon at the end of each year? The mission of Starbucks is to inspire and nurture the human spiritone person, one cup, and one neighborhood at a...
-
For each of the following, find a (piecewise) smooth parametrization of S which agrees with the induced orientation, and compute S F Tds. a) S is the truncated paraboloid y = 9 - x2 - z2, y > 0,...
-
Suppose that f : [a, b] R is continuous and that for all integers n > 0. a) Evaluate ba P(x) f(x) dx for any polynomial P on R. b) Prove that ba|f(x)|2 dx = 0. c) Show that f(x) = 0 for all x [a,...
-
Prove that f(x, y) = |x, y| is not differentiable at (0, 0).
-
How many structural isomers are there for hydrocarbons that have the molecular formula C 4 H 10 ? (a) none (b) one (c) two (d) three
-
Which contains more hydrogen atomsa five-carbon saturated hydrocarbon molecule or a five-carbon unsaturated hydrocarbon molecule? (a) The unsaturated hydrocarbon has more hydrogen atoms. (b) The...
-
Explain why caprylic acid, CH 3 (CH 2 ) 6 COOH, dissolves in a 5, aqueous solution of sodium hydroxide but caprylaldehyde, CH 3 (CH 2 ) 6 CHO, does not dissolve. (a) With two oxygens, the caprylic...
Study smarter with the SolutionInn App