Skip to content

Instantly share code, notes, and snippets.

View thistac's full-sized avatar

Thiago Magalhães de Estacio thistac

View GitHub Profile
@thistac
thistac / parse-tcpdump-udp-port-53.php
Created December 16, 2016 01:25 — forked from jtai/parse-tcpdump-udp-port-53.php
Quick and dirty script to parse output of /usr/sbin/tcpdump -vvv -s 0 -l port 53
<?php
// quick and dirty argument parsing
foreach ($argv as $arg) {
if ($arg == '-f') {
define('FOLLOW', true);
}
if ($arg == '-h') {
define('HISTOGRAM', true);
}