Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to capture only http with tcpdump with linux

First I capture all data with : tcpdump -i any -s 0 -w /tmp/http.cap

no I want capture 'only http'

I tried to add : and port http

But it is incorrect.

thanks

like image 710
user2302639 Avatar asked Aug 18 '16 07:08

user2302639


Video Answer


1 Answers

Check this:

tcpdump -i any -s 0 'tcp port http' -w /tmp/http.cap
like image 71
Dmitry Avatar answered Oct 20 '22 12:10

Dmitry