line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Farly::ASA::PortFormatter;
|
2
|
|
|
|
|
|
|
|
3
|
11
|
|
|
11
|
|
21215
|
use 5.008008;
|
|
11
|
|
|
|
|
41
|
|
|
11
|
|
|
|
|
584
|
|
4
|
11
|
|
|
11
|
|
58
|
use strict;
|
|
11
|
|
|
|
|
18
|
|
|
11
|
|
|
|
|
315
|
|
5
|
11
|
|
|
11
|
|
55
|
use warnings;
|
|
11
|
|
|
|
|
118
|
|
|
11
|
|
|
|
|
3604
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.26';
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $String_To_Int = {
|
10
|
|
|
|
|
|
|
"aol" => 5190,
|
11
|
|
|
|
|
|
|
"bgp" => 179,
|
12
|
|
|
|
|
|
|
"biff" => 512,
|
13
|
|
|
|
|
|
|
"bootpc" => 68,
|
14
|
|
|
|
|
|
|
"bootps" => 67,
|
15
|
|
|
|
|
|
|
"chargen" => 19,
|
16
|
|
|
|
|
|
|
"cifs" => 3020,
|
17
|
|
|
|
|
|
|
"citrix-ica" => 1494,
|
18
|
|
|
|
|
|
|
"ctiqbe" => 2748,
|
19
|
|
|
|
|
|
|
"daytime" => 13,
|
20
|
|
|
|
|
|
|
"discard" => 9,
|
21
|
|
|
|
|
|
|
"dnsix" => 195,
|
22
|
|
|
|
|
|
|
"domain" => 53,
|
23
|
|
|
|
|
|
|
"echo" => 7,
|
24
|
|
|
|
|
|
|
"exec" => 512,
|
25
|
|
|
|
|
|
|
"finger" => 79,
|
26
|
|
|
|
|
|
|
"ftp" => 21,
|
27
|
|
|
|
|
|
|
"ftp-data" => 20,
|
28
|
|
|
|
|
|
|
"gopher" => 70,
|
29
|
|
|
|
|
|
|
"h323" => 1720,
|
30
|
|
|
|
|
|
|
"hostname" => 101,
|
31
|
|
|
|
|
|
|
"https" => 443,
|
32
|
|
|
|
|
|
|
"ident" => 113,
|
33
|
|
|
|
|
|
|
"imap4" => 143,
|
34
|
|
|
|
|
|
|
"irc" => 194,
|
35
|
|
|
|
|
|
|
"isakmp" => 500,
|
36
|
|
|
|
|
|
|
"kerberos" => 750,
|
37
|
|
|
|
|
|
|
"klogin" => 543,
|
38
|
|
|
|
|
|
|
"kshell" => 544,
|
39
|
|
|
|
|
|
|
"ldap" => 389,
|
40
|
|
|
|
|
|
|
"ldaps" => 636,
|
41
|
|
|
|
|
|
|
"login" => 513,
|
42
|
|
|
|
|
|
|
"lotusnotes" => 1352,
|
43
|
|
|
|
|
|
|
"lpd" => 515,
|
44
|
|
|
|
|
|
|
"mobile-ip" => 434,
|
45
|
|
|
|
|
|
|
"nameserver" => 42,
|
46
|
|
|
|
|
|
|
"netbios-dgm" => 138,
|
47
|
|
|
|
|
|
|
"netbios-ns" => 137,
|
48
|
|
|
|
|
|
|
"netbios-ssn" => 139,
|
49
|
|
|
|
|
|
|
"nfs" => 2049,
|
50
|
|
|
|
|
|
|
"nntp" => 119,
|
51
|
|
|
|
|
|
|
"ntp" => 123,
|
52
|
|
|
|
|
|
|
"pcanywhere-data" => 5631,
|
53
|
|
|
|
|
|
|
"pcanywhere-status" => 5632,
|
54
|
|
|
|
|
|
|
"pim-auto-rp" => 496,
|
55
|
|
|
|
|
|
|
"pop2" => 109,
|
56
|
|
|
|
|
|
|
"pop3" => 110,
|
57
|
|
|
|
|
|
|
"pptp" => 1723,
|
58
|
|
|
|
|
|
|
"radius" => 1645,
|
59
|
|
|
|
|
|
|
"radius-acct" => 1646,
|
60
|
|
|
|
|
|
|
"rip" => 520,
|
61
|
|
|
|
|
|
|
"rsh" => 514,
|
62
|
|
|
|
|
|
|
"rtsp" => 554,
|
63
|
|
|
|
|
|
|
"secureid-udp" => 5510,
|
64
|
|
|
|
|
|
|
"sip" => 5060,
|
65
|
|
|
|
|
|
|
"sip" => 5060,
|
66
|
|
|
|
|
|
|
"smtp" => 25,
|
67
|
|
|
|
|
|
|
"snmp" => 161,
|
68
|
|
|
|
|
|
|
"snmptrap" => 162,
|
69
|
|
|
|
|
|
|
"sqlnet" => 1521,
|
70
|
|
|
|
|
|
|
"ssh" => 22,
|
71
|
|
|
|
|
|
|
"sunrpc" => 111,
|
72
|
|
|
|
|
|
|
"syslog" => 514,
|
73
|
|
|
|
|
|
|
"tacacs" => 49,
|
74
|
|
|
|
|
|
|
"talk" => 517,
|
75
|
|
|
|
|
|
|
"telnet" => 23,
|
76
|
|
|
|
|
|
|
"tftp" => 69,
|
77
|
|
|
|
|
|
|
"time" => 37,
|
78
|
|
|
|
|
|
|
"uucp" => 540,
|
79
|
|
|
|
|
|
|
"who" => 513,
|
80
|
|
|
|
|
|
|
"whois" => 43,
|
81
|
|
|
|
|
|
|
"www" => 80,
|
82
|
|
|
|
|
|
|
"xdmcp" => 177,
|
83
|
|
|
|
|
|
|
};
|
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
our $Int_To_String = { reverse %$String_To_Int };
|
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
sub new {
|
88
|
19
|
|
|
19
|
1
|
844
|
return bless {}, $_[0];
|
89
|
|
|
|
|
|
|
}
|
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
sub as_string {
|
92
|
25
|
|
|
25
|
1
|
1005
|
return $Int_To_String->{ $_[1] };
|
93
|
|
|
|
|
|
|
}
|
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
sub as_integer {
|
96
|
121
|
|
|
121
|
1
|
1201
|
return $String_To_Int->{ $_[1] };
|
97
|
|
|
|
|
|
|
}
|
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
1;
|
100
|
|
|
|
|
|
|
__END__
|