| line |
true |
false |
branch |
|
105
|
1 |
1 |
if (ref $params{'categories'} eq "ARRAY") |
|
109
|
1 |
1 |
if (ref $params{'technologies'} eq "ARRAY") |
|
147
|
0 |
1 |
unless $params{'html'} or $params{'headers'} or $params{'url'} |
|
150
|
11 |
7 |
if ($params{'html'}) |
|
154
|
1 |
17 |
if ($params{'url'}) |
|
159
|
14 |
4 |
if ($params{'headers'}) |
|
160
|
1 |
13 |
unless ref $params{'headers'} eq "HASH" |
|
165
|
5 |
9 |
ref $header_vals_ref ? : |
|
177
|
3 |
14 |
unless scalar keys %{$$self{"_categories"};} |
|
180
|
2 |
15 |
$params{'cats'} && (ref $params{'cats'} || '') eq 'ARRAY' ? : |
|
184
|
3 |
14 |
if (my $cookies_header = $headers_ref->{'set-cookie'}) |
|
186
|
0 |
5 |
unless $cookie_str =~ /^(?.+?)=(?.*?);\s/ |
|
194
|
0 |
1469 |
unless my $apps_ref = $self->{'_categories'}{$cat} |
|
202
|
8038 |
44575 |
if (@cats > 1 and $app_ref->{'multi_cat'} and exists $tried_multi_cat_apps{$app_ref->{'name'}}) { } |
|
211
|
5986 |
38589 |
if (defined $headers_ref and exists $app_ref->{'headers_rules'}) |
|
216
|
7185 |
909 |
unless my $header_vals_ref = $headers_ref->{$header} |
|
219
|
10 |
903 |
if ($header_val =~ /$rule->{'re'}/) |
|
221
|
10 |
0 |
if ($confidence >= 100) |
|
230
|
576 |
2279 |
if (not $detected and exists $app_ref->{'cookies_rules'} and scalar keys %cookies) |
|
235
|
840 |
3 |
unless my $cookie_val = $cookies{$cookie} |
|
237
|
3 |
0 |
if ($cookie_val =~ /$rule->{'re'}/) |
|
239
|
3 |
0 |
if ($confidence >= 100) |
|
247
|
44562 |
13 |
unless ($detected) |
|
252
|
18316 |
11276 |
if (defined $params{$rule_type} and exists $app_ref->{$rule_name}) |
|
254
|
11 |
18861 |
if ($params{$rule_type} =~ /$rule->{'re'}/) |
|
256
|
9 |
2 |
if ($confidence >= 100) |
|
267
|
7560 |
36929 |
if (@cats > 1 and $app_ref->{'multi_cat'}) |
|
272
|
52585 |
28 |
unless $detected |
|
277
|
26 |
2 |
unless $MULTIPLE_APP_CATS{$cat} |
|
296
|
1 |
15 |
unless scalar keys %{$$self{"_categories"};} |
|
317
|
0 |
11941 |
unless my $new_app_ref = _process_app_techs($app, $app_ref) |
|
319
|
0 |
11941 |
unless my(@cats) = @{$app_ref->{'cats'};} |
|
321
|
2016 |
9925 |
if @cats > 1 |
|
324
|
0 |
14101 |
unless my $cat = $cats_ref->{$cat_id} |
|
336
|
0 |
118 |
unless open my $fh, "<", $file |
|
348
|
0 |
118 |
if $@ |
|
350
|
0 |
118 |
unless ref $res eq "HASH" |
|
370
|
1228 |
3803 |
ref $rule_ref eq 'ARRAY' ? : |
|
|
6864 |
5031 |
!ref($rule_ref) ? : |
|
373
|
1449 |
10446 |
if ($field eq 'html' or $field eq 'scripts') { } |
|
|
6371 |
4075 |
elsif ($field eq 'scriptSrc') { } |
|
|
272 |
3803 |
elsif ($field eq 'url') { } |
|
|
1403 |
2400 |
elsif ($field eq 'meta') { } |
|
|
2400 |
0 |
elsif ($field eq 'headers' or $field eq 'cookies') { } |
|
417
|
8149 |
3792 |
if (@html_rules) |
|
432
|
266 |
2392 |
if (($confidence) = $tag =~ /^\s*confidence\s*:\s*(\d+)\s*$/) |
|
439
|
12464 |
1743 |
defined $re ? : |
|
466
|
12316 |
1891 |
if ($parser->regex($re)) |
|
471
|
270121 |
40530 |
if ($ref eq 'Regexp::Parser::exact' or $ref eq 'Regexp::Parser::anyof_char') { } |
|
487
|
1575 |
6846 |
if (@$rules > 1 and @$rules == grep({$_->{'confidence'} == 100;} @$rules)) |