Tcpdump
khlif1986
Messages postés
59
Statut
Membre
-
lami20j Messages postés 21644 Statut Modérateur, Contributeur sécurité -
lami20j Messages postés 21644 Statut Modérateur, Contributeur sécurité -
Bonjour,
Je veux analyser le traffic dans ma carte réseau wifi avec tcpdump je tape
tcpdump -i eth1
ça marche, mais comment faire pour enregistrer ses paquets dans un fichier
Je veux analyser le traffic dans ma carte réseau wifi avec tcpdump je tape
tcpdump -i eth1
ça marche, mais comment faire pour enregistrer ses paquets dans un fichier
3 réponses
Salut,
tcpdump -i eth1 > fichier.loget en lisant le "man tcpdump" :
-l Make stdout line buffered. Useful if you want to see the data while capturing it. E.g.,
‘‘tcpdump -l | tee dat'' or ‘‘tcpdump -l > dat & tail -f dat''.;-))
Salut.
Il suffit d'utiliser le caractère ">" pour rediriger dans un fichier :
# tcpdump -i eth1 > traffic
--
Sylvain
Il suffit d'utiliser le caractère ">" pour rediriger dans un fichier :
# tcpdump -i eth1 > traffic
--
Sylvain
Salut,
ESCRIPTION
Tcpdump prints out a description of the contents of packets on a network interface that match the boolean expression. It can also be run with
the -w flag, which causes it to save the packet data to a file for later analysis, and/or with the -r flag, which causes it to read from a saved
packet file rather than to read packets from a network interface.
tu peux aussi faire avec l'option -w
ESCRIPTION
Tcpdump prints out a description of the contents of packets on a network interface that match the boolean expression. It can also be run with
the -w flag, which causes it to save the packet data to a file for later analysis, and/or with the -r flag, which causes it to read from a saved
packet file rather than to read packets from a network interface.
tu peux aussi faire avec l'option -w
tcpdump -i eth1 -w log.outpour lire log.out
tcpdump -r log.out