blib/lib/LaBrea/Tarpit/Report.pm untested

filter: Statementstmt 0.0% 0 / 35 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 43 Podpod 0.0% 0 / 36 totaltotal 0.0% 0 / 114 CC 1 SCAR 6.9
CC
1
Cov
0%
DESTROY
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl
2 package LaBrea::Tarpit::Report;
3 #
4 use strict;
5 #use diagnostics;
6 use vars qw(
7 $VERSION
8 @ISA
9 @EXPORT_OK
10 $geek1
11 $geek2
12 $geek3
13 $hard_font_clr
14 $scan_font_clr
15 $h_ex_font_clr
16 $TCP
17 @std_images
18 );
19  
20 $VERSION = do { my @r = (q$Revision: 1.16 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
21  
22 use AutoLoader 'AUTOLOAD';
23  
24 use LaBrea::Tarpit qw(
25 their_date
26 array2_tarpit
27 prep_report
28 process_log
29 cull_threads
30 write_cache_file
31 );
32 use LaBrea::Tarpit::Util qw(
33 ex_open
34 script_name
35 );
36 use LaBrea::NetIO qw(
37 fetch
38 );
39  
40 require Exporter;
41 @ISA = qw(Exporter);
42 @EXPORT_OK = qw (
43 capture_summary
44 generate
45 gen_short
46 get_versions
47 got_away
48 guests
49 guests_by_IP
50 make_image_cache
51 make_port_graph
52 my_IPs
53 port_stats
54 short_report
55 syslog2_cache
56 time2local
57 other_sites
58 make_buttons
59 get_config
60 make_jsPOP_win
61 );
62  
63 # package variables
64  
65 # address of GEEKS whois lookup
66 $geek1 = q|<a href="#top" onClick="popwin();whois.query.value='|;
67 $geek2 = q|';whois.submit();return false;" onMouseOut="status='';return true;" onMouseOver="status='|;
68 $geek3 = q|';return true;">|;
69  
70 # colors
71 $hard_font_clr = '#ffffcc'; # hard captured font color
72 $scan_font_clr = '#990000'; # new arrival font color
73 $h_ex_font_clr = '#000099'; # hard exclude font color
74  
75 # persistent protocol
76 $TCP = 6;
77  
78 # standard images
79 @std_images = qw(
80 bludot.gif
81 cleardot.gif
82 grndot.gif
83 ltbdot.gif
84 magdot.gif
85 orgdot.gif
86 reddot.gif
87 yeldot.gif
88 );
89  
90 # autoload declarations
91  
92 sub generate;
93 sub gen_short;
94 sub syslog2_cache;
95 sub port_stats;
96 sub guests;
97 sub guests_by_IP;
98 sub capture_summary;
99 sub got_away;
100 sub my_IPs;
101 sub make_port_graph;
102 sub age2hex;
103 sub txt2td;
104 sub time2local;
105 sub get_portname;
106 sub Getservbyport;
107 sub element;
108 sub pcolor;
109 sub scale_array;
110 sub max;
111 sub get_versions;
112 sub init_lnf;
113 sub init_tdcfg;
114 sub tdcfg_font;
115 sub lnf_font;
116 sub inc255;
117 sub inc_ipv4;
118 sub next_ipv4;
119 sub range_ipv4;
120 sub short_report;
121 sub make_buttons;
122 sub other_sites;
123 sub make_image_cache;
124 sub get_config;
125 sub make_jsPOP_win;
126 sub scriptname;
127 sub DESTROY {};
128  
129 1;
130 __END__