On Saturday, November 5, 2016 at 6:00:00 PM UTC-4, Brad Tucker wrote: > > sudo tcpdump -i eth0 dst port 80 > tcpdump: verbose output suppressed, use -v or -vv for full protocol decode > listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes > 14:53:48.501215 IP 192.168.1.18.4102 > > ec2-52-4-188-138.compute-1.amazonaws.com.http: Flags [S], seq 62518866, win > 400, options [mss 536], length 0 > > sudo tcpdump -A -n -p -l -i eth0 -s0 -w - tcp dst port 80 (Please note the > - tcp not -tcp) There is a space. w/o it I get 0 output. > tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size > 262144 bytes > <<&�8vB$�n�E(n�d�o��4��/P&}��|EPP����UX���&�8vB$�n�Exn�d���4��/P&}��|EPP��GET > /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1�UX�M``&�8vB$�n�ERn�d�C��4��/P&}�!|EPP�sI&id=24C86E06B15C&mt=5N1x31&sensor=00002179�UXkVQQ&�8vB$�n�ECn�d�Q��4��/P&}�K|EPP�ΐ&windspeedmph=1&winddir=203�UXFltt&�8vB$�n�Efn�d�-��4��/P&}�f|EPP�Ŧ&rainin=0.00&dailyrainin=0.20&humidity=30&tempf=83.2&dewptf=48�UX�ZZ&�8vB$�n�ELn�d�F��4��/P&}ؤ|EPP��S&baromin=29.28&battery=normal&rssi=3�UXP�GG&�8vB$�n�E9n�d�X��4��/P&}��|EPP��� > > HTTP/1.1 > Host: �UXl�__&�8vB$�n�EQod�?��4��/P&}��|EPP��jhubapi.myacurite.com > User-Agent: Hub/224�UXG�MM&�8vB$�n�E?od�P��4��/P&}�|EPP�2< > Connection: close >
good. neither of those alone is what we want, but tcpdump is doing what is supposed to do. now post the output from this: sudo tcpdump -Anpl -s0 -w - -i eth0 dst port 80 | stdbuf -oL strings -n8 the 'strings -n8' simply filters out any lines that are shorter than 8 characters the -Anpl gives us ascii, no name lookups, non-promiscuous, line-buffered output from tcpdump. the -w - sends to stdout instead of file, and controls the number of bytes snarfed (probably not an issue here). m -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
