LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-20-2017, 07:45 PM   #16
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55

Quote:
Originally Posted by ntubski View Post
You're referring to http://www.secdev.org/projects/scapy....html#sniffing? I guess it's a nicer interface to the kernel filter I linked to before. That method would probably be better in terms of efficiency.
Thanks! I'm going with that option.

Code:
scapy.all.sniff(prn=mon_callback, filter="port %s"%sys.argv[1], store=0)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How could server detect closed client socket using TCP and c++? Lobinho Programming 6 08-10-2010 02:28 PM
IPTables portscan detection introuble Linux - Security 3 04-30-2008 04:01 AM
Snort/base and portscan El Fluffo Linux - Security 0 11-03-2007 03:20 PM
How to detect lost socket connection sasha_baranov Programming 4 02-16-2005 11:46 PM
portscan from my own machine groegert Linux - Security 1 07-12-2001 09:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration