TCPDUMP...SNIFFIT...

From: Jochen Cichon (jc@versainter.net)
Date: Thu Dec 14 2000 - 10:58:46 CET


I use the Fist disk only, but there is no tcpdump :(
Because tcpdump only starts trafshow (SRV)

So what about that: if we use the first disk and type tcpdump...
we get a sniffit output???

--minitcpdump-----------------------------------------------------
#!/bin/sh
sniffit -x -F eth0 -s 172.16.11.169 &
sniffit -x -F eth0 -t 172.16.11.169 &
read x
killall sniffit
------------------------------------------------------------------

Hm ok. eth0 is the first parameter (replace with $1)
but, the IP :( ok we can create a huge Pipe for that :)

ip=`/sbin/ifconfig eth0|grep inet|sed 's/.* addr://g'|sed 's/ .*$//g'`

So now we have the $ip.
But I think there is a much more easy way to get that IP. But how ? :/

Ciao Joschi....

PS: Tnx to Michele. Cos of the missing tcpdump I've learned something about
        sniffit

---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.auc.dk
For additional commands, e-mail: mulinux-help@sunsite.auc.dk



This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:17 CET