Skip to contentSkip to conversation

smtp

DISCUSSION azeem ahmad 2 participants 2 messages May 14, 2004

lore
Share & tools
lore
#0 lore raw

hi
sorry for disturbing you a lot
but i dont know how can i capture the screen. should i write it down

Regards
Azeem

Quoted 29 lines

From: Gavin Hamill <[email protected]>
To: [email protected]
Subject: Re: smtp
Date: Fri, 14 May 2004 14:40:16 +0100

Quoted 4 lines · azeem ahmad

hi
please tell me how can i save the output of tcpdump to a file

i tried -F anf -w but it doesnt seem to work

-w is the one to use, but you do need to tell it a filename. However, what I
meant was simply copy + paste the output you see on the console since that will be a lot easier for us to glance at.. I mean the stuff like this:

tel# tcpdump -i eth1 -n port 25
tcpdump: listening on eth1
14:39:37.592117 10.0.0.52.3564 > 194.200.209.13.25: S 1292097321:1292097321(0) win 64240 <mss 1460,nop,nop,sackOK> (DF)
14:39:37.592174 10.0.0.254.3564 > 10.0.0.253.25: S 1292097321:1292097321(0) win 64240 <mss 1460,nop,nop,sackOK> (DF)
14:39:37.592353 10.0.0.253.25 > 10.0.0.254.3564: S 958030498:958030498(0) ack 1292097322 win 5840 <mss 1460,nop,nop,sackOK> (DF) 14:39:37.592381 194.200.209.13.25 > 10.0.0.52.3564: S 958030498:958030498(0) ack 1292097322 win 5840 <mss 1460,nop,nop,sackOK> (DF) 14:39:37.592587 10.0.0.52.3564 > 194.200.209.13.25: . ack 1 win 64240 (DF) 14:39:37.592603 10.0.0.254.3564 > 10.0.0.253.25: . ack 1 win 64240 (DF)

Quoted 3 lines

Cheers,
Gavin.

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail

#1 lore raw
Quoted 3 lines · azeem ahmad

hi
sorry for disturbing you a lot
but i dont know how can i capture the screen. should i write it down

That's OK there are a couple of easy alternatives. Either 'ssh' into the machine (google for 'putty' - a good SSH client for windows) and copy and paste the output.. or redirect the output from tcpdump to a file, the same way you can with any UNIX command...

$ tcpdump -n -i eth1 port 25 >dump.txt

Then you can just insert this text file into the body of your email.

Cheers,
Gavin.