python - scapy sniff only sniffing my pc's data -


i new scapy , trying out code seem having problem, not sure if code or pc code looks :

from scapy.all import *  def callback(pkt):    if pkt.haslayer(tcp):       print pkt.summary()       print pkt.show()       print pkt[tcp] # equivalent to: print pkt.getlayer(tcp)  sniff(filter='port 80', prn=callback, store=0) 

but when run script seem catching traffic computers ip , there way catch traffic on wifi router scapy ?

possibly.

during normal operations, scapy (or packet monitoring program) can see data going or computer on. there ways of re-routing information go through computer, that's discussion. can use packet monitoring program monitor data on wifi network if , if wireless network card's chipset (or driver) allows enter "monitor" or "rfmon" mode.

here webpage seems want. again, works if can switch montior/rfmon mode first.

good luck!


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -