This file is indexed.

/usr/share/doc/libnet-frame-dump-perl/examples/dump-online2.pl is in libnet-frame-dump-perl 1.14-1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/perl
use strict;
use warnings;

my $dev    = shift || die("Specify network interface to use\n");
my $filter = shift;

my $oDump;

use Net::Frame::Dump::Online2;
use Net::Frame::Simple;
use Class::Gomor qw($Debug);
$Debug = 3;

$oDump = Net::Frame::Dump::Online2->new(
   dev    => $dev,
   filter => $filter ? $filter : '',
);
$oDump->start;

while (1) {
   if (my $f = $oDump->next) {
      my $raw            = $f->{raw};
      my $firstLayerType = $f->{firstLayer};
      my $timestamp      = $f->{timestamp};
      print "Received at: $timestamp\n";
      my $frame = Net::Frame::Simple->newFromDump($f);
      print $frame->print."\n";
   }

   if ($oDump->timeout) {
      print "Timeout occured, end of capture\n";
      last;
   }
}