-
-
Save jrelo/97f4c775d3cc950ba1ee0b806b6e55ab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perl -MPOSIX -MIO::Socket -We ' | |
my $s = IO::Socket::INET->new( | |
Proto => "udp", | |
LocalAddr => "0.0.0.0:162" | |
); | |
while ( $s->recv( $_, 65535 ) ) { | |
print strftime( "%F %T", localtime ), " ", $s->peerhost(), " $_\n"; | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment