ssh packets sniffing from my router with scapy

本小妞迷上赌 提交于 2020-01-07 05:12:09

问题


I want to sniff ssh connection to any pc on my network. I have scapy on my router and I would like to get a sniff result whenever someone connect to any of my pc in my network using ssh. This what I did by I have no result.

#!/usr/bin/python
from scapy.all import *

def sniffSSHRequest():
    sniff(iface='eth0', filter="tcp and host 192.168.1.2 and port 22", count=1)

 sniffSSHRequest()

Note that all my pc can ping the router and they can also ping each other. The question is why don't I get a sniff.

来源:https://stackoverflow.com/questions/42141691/ssh-packets-sniffing-from-my-router-with-scapy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!