LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-25-2004, 12:36 PM   #1
Paul McLean
LQ Newbie
 
Registered: Nov 2004
Posts: 1

Rep: Reputation: 0
tcpdump of a telnet session


Hi,

I need to produce a tcpdump of a telnet session (up until the login screen) and need a few pointers in how to set up the filters so that i only get the the telnet session packets and nothing else.

Any help would be apperated,

Thanks
 
Old 11-26-2004, 01:13 PM   #2
zaphodiv
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
You could use ethereal instead and click "follow TCP connection", much easier.
 
Old 11-26-2004, 01:33 PM   #3
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Just like the man page says:


tcpdump -i <your interface> port 23

or, if you know the source IP:

tcpdump -i <your interface> host <sourceIP> and port 23

Those will only get you headers though. If you want the contents, you can do:

tcpdump -XX -s 0 -i <your interface> host <sourceIP> and port 23
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
See a telnet session log Linux - Newbie 5 01-13-2003 08:11 AM
Run a telnet session?... lhoff Linux - Newbie 1 12-30-2001 06:58 PM
watching another telnet session JustinHoMi Linux - General 2 09-22-2001 03:15 AM
Telnet session limit.. killjoy Linux - Networking 1 03-22-2001 01:57 PM
Automatic telnet session kobilevi Programming 2 03-18-2001 04:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:32 AM.

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