| line |
true |
false |
branch |
|
49
|
0 |
0 |
if (defined $ct) |
|
54
|
0 |
0 |
if ($global->{'api_unrated_endpoint'} and $username) |
|
56
|
0 |
0 |
if $self->verbose |
|
57
|
0 |
0 |
unless (defined $username and defined $apikey) |
|
58
|
0 |
0 |
unless $self->silent |
|
71
|
0 |
0 |
defined $total && $total ? : |
|
76
|
0 |
0 |
defined $maxpage && $maxpage ? : |
|
81
|
0 |
0 |
defined $results && @$results ? : |
|
85
|
0 |
0 |
unless $result |
|
90
|
0 |
0 |
if ($@) |
|
92
|
0 |
0 |
unless $self->silent |
|
103
|
0 |
0 |
ref $results eq 'ARRAY' ? : |
|
105
|
0 |
0 |
if defined $_->{'@category'} and $_->{'@category'} eq "none" |
|
116
|
0 |
0 |
unless $first |
|
131
|
0 |
0 |
unless defined $apikey |
|
132
|
0 |
0 |
unless defined $endpoint |
|
147
|
0 |
0 |
if defined $input |
|
150
|
0 |
0 |
if defined $page |
|
151
|
0 |
0 |
if $global->{'api_trackquery'} |
|
152
|
0 |
0 |
if $global->{'api_calculated'} |
|
153
|
0 |
0 |
if $global->{'api_keepalive'} |
|
154
|
0 |
0 |
if (defined $params and ref $params eq "HASH" and keys %$params) |
|
156
|
0 |
0 |
unless defined $params->{$this} or defined $$params{'api_' . $this} |
|
161
|
0 |
0 |
if $args |
|
164
|
0 |
0 |
if $self->verbose |
|
171
|
0 |
0 |
if ($@) |
|
173
|
0 |
0 |
unless $self->silent |
|
176
|
0 |
0 |
unless ($res->is_success) |
|
179
|
0 |
0 |
unless (defined $res->json) |
|
186
|
0 |
0 |
if ($code == 429) |
|
187
|
0 |
0 |
unless $self->silent |
|
192
|
0 |
0 |
unless $self->silent |
|
200
|
0 |
0 |
if (defined $params and $params->{'count'}) |
|
207
|
0 |
0 |
unless defined $this_max_page |
|
208
|
0 |
0 |
if (defined $input and not $this_max_page) |
|
209
|
0 |
0 |
unless $self->silent |
|
211
|
0 |
0 |
if $self->verbose |
|
216
|
0 |
0 |
if (defined $input and not @$results) |
|
217
|
0 |
0 |
unless $self->silent |
|
219
|
0 |
0 |
if $self->verbose |
|
224
|
0 |
0 |
unless defined $page and defined $maxpage |
|
226
|
0 |
0 |
if $page == $maxpage or $page >= $this_max_page |
|
241
|
0 |
0 |
unless defined $apikey |
|
242
|
0 |
0 |
unless defined $endpoint |
|
259
|
0 |
0 |
if defined $page |
|
260
|
0 |
0 |
if $global->{'api_trackquery'} |
|
261
|
0 |
0 |
if $global->{'api_calculated'} |
|
262
|
0 |
0 |
if $global->{'api_keepalive'} |
|
263
|
0 |
0 |
if (defined $params and ref $params eq "HASH" and keys %$params) |
|
265
|
0 |
0 |
unless defined $params->{$this} or defined $$params{'api_' . $this} |
|
270
|
0 |
0 |
if $args |
|
273
|
0 |
0 |
if $self->verbose |
|
280
|
0 |
0 |
if ($@) |
|
282
|
0 |
0 |
unless $self->silent |
|
285
|
0 |
0 |
unless ($res->is_success) |
|
288
|
0 |
0 |
unless (defined $res->json) |
|
295
|
0 |
0 |
if ($code == 429) |
|
296
|
0 |
0 |
unless $self->silent |
|
301
|
0 |
0 |
unless $self->silent |
|
308
|
0 |
0 |
unless defined $this_max_page |
|
309
|
0 |
0 |
if (defined $input and not $this_max_page) |
|
310
|
0 |
0 |
unless $self->silent |
|
312
|
0 |
0 |
if $self->verbose |
|
317
|
0 |
0 |
if (defined $input and not @$results) |
|
318
|
0 |
0 |
unless $self->silent |
|
320
|
0 |
0 |
if $self->verbose |
|
325
|
0 |
0 |
unless defined $page and defined $maxpage |
|
327
|
0 |
0 |
if $page == $maxpage or $page >= $this_max_page |
|
374
|
0 |
0 |
ref $results eq 'ARRAY' ? : |
|
376
|
0 |
0 |
if /.\@category.\s*:\s*.none./ |
|
388
|
0 |
0 |
if (defined $bytes and $bytes =~ /"status":"nok"/) |
|
392
|
0 |
0 |
if (not defined $this) { } |
|
396
|
0 |
0 |
defined $tail ? : |
|
411
|
0 |
0 |
unless defined $apikey |
|
412
|
0 |
0 |
unless defined $endpoint |
|
419
|
0 |
0 |
if ($method eq "POST") |
|
424
|
0 |
0 |
unless (-f $input) |
|
425
|
0 |
0 |
if ($method eq "GET") |
|
432
|
0 |
0 |
if $global->{'api_trackquery'} |
|
433
|
0 |
0 |
if $global->{'api_calculated'} |
|
434
|
0 |
0 |
if $global->{'api_keepalive'} |
|
435
|
0 |
0 |
if (defined $params and ref $params eq "HASH" and keys %$params) |
|
437
|
0 |
0 |
unless defined $params->{$this} or defined $$params{'api_' . $this} |
|
442
|
0 |
0 |
if $args |
|
444
|
0 |
0 |
if $self->verbose |
|
450
|
0 |
0 |
if ($method eq 'GET') { } |
|
|
0 |
0 |
elsif ($method eq 'POST') { } |
|
459
|
0 |
0 |
if (-f $input) |
|
460
|
0 |
0 |
if $self->verbose |
|
474
|
0 |
0 |
unless defined $apikey |
|
475
|
0 |
0 |
unless defined $endpoint |
|
487
|
0 |
0 |
if $global->{'api_trackquery'} |
|
488
|
0 |
0 |
if $global->{'api_calculated'} |
|
489
|
0 |
0 |
if $global->{'api_keepalive'} |
|
490
|
0 |
0 |
if (defined $params and ref $params eq "HASH" and keys %$params) |
|
492
|
0 |
0 |
unless defined $params->{$this} or defined $$params{'api_' . $this} |
|
497
|
0 |
0 |
if $args |
|
499
|
0 |
0 |
if $self->verbose |
|
508
|
0 |
0 |
if (-f $input) |
|
509
|
0 |
0 |
if $self->verbose |
|
518
|
0 |
0 |
unless (-f $file) |
|
519
|
0 |
0 |
unless $self->silent |
|
529
|
0 |
0 |
unless $self->_check_file($file) |
|
537
|
0 |
0 |
unless $self->_check_file($file) |
|
545
|
0 |
0 |
unless $self->_check_file($file) |
|
554
|
0 |
0 |
unless $self->_check_file($file) |
|
559
|
0 |
0 |
if (defined $oql) |
|
572
|
0 |
0 |
if defined $filename and -f $filename |
|
590
|
0 |
0 |
ref $results eq 'ARRAY' ? : |
|
603
|
0 |
0 |
unless defined $apikey |
|
604
|
0 |
0 |
unless defined $endpoint |
|
617
|
0 |
0 |
if $self->verbose |
|
622
|
0 |
0 |
if defined $name |
|
623
|
0 |
0 |
if defined $oql |
|
624
|
0 |
0 |
if defined $email |
|
625
|
0 |
0 |
if defined $threshold |
|
628
|
0 |
0 |
if defined $post |
|
637
|
0 |
0 |
if ($@) |
|
639
|
0 |
0 |
unless $self->silent |
|
642
|
0 |
0 |
unless ($res->is_success) |
|
645
|
0 |
0 |
unless (defined $res->json) |
|
652
|
0 |
0 |
if ($code == 429) |
|
653
|
0 |
0 |
unless $self->silent |
|
658
|
0 |
0 |
unless $self->silent |
|
676
|
0 |
0 |
if ($self->verbose) |
|
680
|
0 |
0 |
if defined $threshold |
|
695
|
0 |
0 |
ref $results eq 'ARRAY' ? : |
|
707
|
0 |
0 |
unless defined $apikey |
|
708
|
0 |
0 |
unless defined $endpoint |
|
721
|
0 |
0 |
if (defined $param) |
|
722
|
0 |
0 |
if defined $param->{'maxscantime'} |
|
723
|
0 |
0 |
$param->{'aslines'} ? : |
|
|
0 |
0 |
if defined $param->{'aslines'} |
|
724
|
0 |
0 |
$param->{'aslink'} ? : |
|
|
0 |
0 |
if defined $param->{'aslink'} |
|
725
|
0 |
0 |
$param->{'full'} ? : |
|
|
0 |
0 |
if defined $param->{'full'} |
|
726
|
0 |
0 |
$param->{'urlscan'} ? : |
|
|
0 |
0 |
if defined $param->{'urlscan'} |
|
727
|
0 |
0 |
$param->{'vulnscan'} ? : |
|
|
0 |
0 |
if defined $param->{'vulnscan'} |
|
728
|
0 |
0 |
$param->{'riskscan'} ? : |
|
|
0 |
0 |
if defined $param->{'riskscan'} |
|
729
|
0 |
0 |
$param->{'asm'} ? : |
|
|
0 |
0 |
if defined $param->{'asm'} |
|
730
|
0 |
0 |
$param->{'import'} ? : |
|
|
0 |
0 |
if defined $param->{'import'} |
|
731
|
0 |
0 |
if defined $param->{'ports'} |
|
734
|
0 |
0 |
if $self->verbose |
|
739
|
0 |
0 |
if defined $post |
|
748
|
0 |
0 |
if ($@) |
|
750
|
0 |
0 |
unless $self->silent |
|
753
|
0 |
0 |
unless ($res->is_success) |
|
756
|
0 |
0 |
unless (defined $res->json) |
|
764
|
0 |
0 |
if ($code == 429) |
|
765
|
0 |
0 |
unless $self->silent |
|
770
|
0 |
0 |
unless $self->silent |
|
776
|
0 |
0 |
if (defined $param and $param->{'aslines'}) { } |
|
805
|
0 |
0 |
unless (-f $file) |
|
806
|
0 |
0 |
unless $self->silent |
|
812
|
0 |
0 |
unless (@lines) |
|
813
|
0 |
0 |
unless $self->silent |
|
823
|
0 |
0 |
unless (-f $file) |
|
824
|
0 |
0 |
unless $self->silent |
|
830
|
0 |
0 |
unless (@lines) |
|
831
|
0 |
0 |
unless $self->silent |
|
841
|
0 |
0 |
unless (-f $file) |
|
842
|
0 |
0 |
unless $self->silent |
|
848
|
0 |
0 |
unless (@lines) |
|
849
|
0 |
0 |
unless $self->silent |
|
871
|
0 |
0 |
unless (-f $file) |
|
872
|
0 |
0 |
unless $self->silent |
|
878
|
0 |
0 |
unless (@lines) |
|
879
|
0 |
0 |
unless $self->silent |
|
901
|
0 |
0 |
ref $results eq 'ARRAY' ? : |
|
913
|
0 |
0 |
unless defined $apikey |
|
914
|
0 |
0 |
unless defined $endpoint |
|
927
|
0 |
0 |
if (defined $param) |
|
928
|
0 |
0 |
if defined $param->{'domain'} |
|
929
|
0 |
0 |
$param->{'aslines'} ? : |
|
|
0 |
0 |
if defined $param->{'aslines'} |
|
930
|
0 |
0 |
$param->{'astask'} ? : |
|
|
0 |
0 |
if defined $param->{'astask'} |
|
931
|
0 |
0 |
$param->{'trusted'} ? : |
|
|
0 |
0 |
if defined $param->{'trusted'} |
|
932
|
0 |
0 |
if defined $param->{'field'} |
|
933
|
0 |
0 |
if defined $param->{'query'} |
|
935
|
0 |
0 |
if defined $param->{'includep'} |
|
937
|
0 |
0 |
if defined $param->{'excludep'} |
|
940
|
0 |
0 |
if $self->verbose |
|
941
|
0 |
0 |
if $self->verbose |
|
947
|
0 |
0 |
if defined $post |
|
956
|
0 |
0 |
if ($@) |
|
958
|
0 |
0 |
if ($@ =~ /Premature connection close/i) |
|
961
|
0 |
0 |
unless $self->silent |
|
964
|
0 |
0 |
unless ($res->is_success) |
|
967
|
0 |
0 |
unless (defined $res->json) |
|
975
|
0 |
0 |
if ($code == 429) |
|
976
|
0 |
0 |
unless $self->silent |
|
981
|
0 |
0 |
unless $self->silent |
|
987
|
0 |
0 |
if (defined $param and $param->{'aslines'}) { } |
|
1000
|
0 |
0 |
if (-f $arg) { } |
|
1002
|
0 |
0 |
unless (defined $docs and @$docs) |
|
1016
|
0 |
0 |
if ref $arg eq "ARRAY" and not ref $arg->[0] |
|
1019
|
0 |
0 |
unless defined $_->{$field} |
|
1060
|
0 |
0 |
if ref $arg eq "ARRAY" and not ref $arg->[0] |
|
1064
|
0 |
0 |
unless defined $doc->{$field} |
|
1146
|
0 |
0 |
unless ($_ =~ /[=:]/) |
|
1153
|
0 |
0 |
unless defined $k and defined $v |
|
1158
|
0 |
0 |
if $self->verbose |