Python Forum
scapy ssh connection my network sniffing from my router
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
scapy ssh connection my network sniffing from my router
#1
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()
Reply
#2
Well, you're sniffing, but then not doing anything with the results.  The docs show printing to the screen in various formats to show what's what, if it's a router, what's your gameplan on getting the info back out of it?

http://www.secdev.org/projects/scapy/doc...l#sniffing
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Scapy Basics Shivi 0 903 Sep-25-2023, 07:37 AM
Last Post: Shivi
  How to send a HTTP response packet using scapy JeffreyStoner 0 2,628 Apr-18-2022, 05:23 AM
Last Post: JeffreyStoner
  How to get every IP found by a Scapy traceroute? jao 0 2,434 Feb-06-2022, 01:00 AM
Last Post: jao
  scapy wifi scan to get payload \ data korenron 0 2,109 Nov-16-2021, 01:47 PM
Last Post: korenron
  can I set scan interval for scapy? korenron 0 2,304 Dec-31-2020, 01:43 PM
Last Post: korenron
  Help with my router. Pocket_Sand 2 2,188 Nov-19-2020, 04:06 PM
Last Post: Pocket_Sand
  scapy trazom 1 2,605 Aug-30-2020, 04:17 PM
Last Post: micseydel
  network and scapy trazom 0 2,043 Aug-16-2020, 03:54 PM
Last Post: trazom
  Acces Wifi router and scan all the available networks through router jenkins43 3 2,721 Mar-21-2020, 09:35 PM
Last Post: jenkins43
  Need Help with creating an IP packet with timestamp field using Scapy RTD 0 3,427 Jun-15-2019, 08:21 PM
Last Post: RTD

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020