Getting different IP addresses in scapy

Question:

from scapy.all import *
sniffdata = sniff(count=10)
sniffdata.summary()

Output:

Ether / IP / TCP 192.168.1.35:51642 > 20.42.65.85:https A / Raw
Ether / IP / TCP 34.233.187.197:https > 192.168.1.35:51654 A / Raw
Ether / IP / TCP 34.233.187.197:https > 192.168.1.35:51654 A / Raw

Scapy is not working, it gives me different IPs. I’m not using any proxies.

Asked By: Mr.spook

||

Answers:

The first line is (I’m assuming from the private address) your machine sending data to 20.42.65.85, the next two are the host 34.233.187.197 sending packets to your IP. See how the from IP matches the to?

These might not be a single session.

Answered By: brunson
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.