Python Scapy begginer questions

JC724

Weaksauce
Joined
Jan 20, 2016
Messages
118
I apologize in advance for my questions. I am fairly new to networking.

I am trying to write a program that listens for packets. Basically I am trying to get some guidance on how to use scapy to listen for packets and figure out if the packet type that pings me is a arp request or not?

Also I have been watching some videos on scapy and they all are using it from the command line.

I need to used scapy from actually inside the source code. Like when I am coding in python?

Also I am using Ubuntu 14.04 and scapy 2.2.0.

I have seen more videos for scapy 2.3.. and some of the commands don't match up.

Like for example I was trying to run sniff command.

But I keep getting an error when I do it like this, packet = sniff(filter = "TCP", iface = "eth0").

I can't find any examples of how to sniff and using the filter and iface in scapy 2.2.0.
 
Back
Top