Branch Coverage

blib/lib/Metabrik/Remote/Sandbox.pm
Criterion Covered Total %
branch 0 132 0.0


line true false branch
113 0 0 if ($self->_client)
122 0 0 unless $self->brik_help_set_undef_arg('win_user', $win_user)
123 0 0 unless $self->brik_help_set_undef_arg('win_host', $win_host)
124 0 0 unless $self->brik_help_set_undef_arg('vm_id', $vm_id)
126 0 0 unless (defined $win_password)
127 0 0 unless my $sp = 'Metabrik::String::Password'->new_from_brik_init($self)
128 0 0 unless $win_password = $sp->prompt
135 0 0 unless my $cs = 'Metabrik::Client::Smbclient'->new_from_brik_init($self)
140 0 0 unless my $ce = 'Metabrik::Client::Elasticsearch'->new_from_brik_init($self)
142 0 0 unless $ce->open
144 0 0 unless my $rs = 'Metabrik::Remote::Sysmon'->new_from_brik_init($self)
149 0 0 unless my $rw = 'Metabrik::Remote::Winsvc'->new_from_brik_init($self)
154 0 0 unless my $rwd = 'Metabrik::Remote::Windefend'->new_from_brik_init($self)
159 0 0 unless my $sv = 'Metabrik::System::Virtualbox'->new_from_brik_init($self)
162 0 0 unless my $fs = 'Metabrik::Forensic::Sysmon'->new_from_brik_init($self)
180 0 0 unless $self->brik_help_run_undef_arg('create_client', $self->_client)
191 0 0 unless $self->brik_help_run_undef_arg('create_client', $self->_client)
197 0 0 unless $ce->delete_index($indices)
212 0 0 unless $self->brik_help_run_undef_arg('create_client', $self->_client)
215 0 0 unless $rs->generate_conf
216 0 0 unless $rs->update_conf
217 0 0 unless $rs->redeploy
220 0 0 unless $rs->restart('winlogbeat')
229 0 0 unless $self->brik_help_run_undef_arg('create_client', $self->_client)
230 0 0 unless $self->brik_help_run_undef_arg('upload_and_execute', $file)
231 0 0 unless $self->brik_help_run_file_not_found('upload_and_execute', $file)
240 0 0 unless $self->restore_elasticsearch_state
245 0 0 unless my $list = $sv->snapshot_list($self->vm_id)
248 0 0 if ($this->{'name'} eq $self->vm_snapshot_name)
253 0 0 if (not $found) { }
255 0 0 unless $sv->snapshot_live($self->vm_id, $self->vm_snapshot_name)
261 0 0 unless $sv->snapshot_restore($self->vm_id, $self->vm_snapshot_name)
262 0 0 unless $sv->start($self->vm_id)
269 0 0 unless $rwd->disable
273 0 0 unless $cs->upload($file)
277 0 0 unless $fs->save_state
291 0 0 unless $self->brik_help_run_undef_arg('create_client', $self->_client)
293 0 0 if (defined $processes)
294 0 0 unless $self->brik_help_run_invalid_arg('diff_ps_state', $processes, 'ARRAY')
307 0 0 unless $self->brik_help_run_undef_arg('create_client', $self->_client)
309 0 0 if (defined $processes)
310 0 0 unless $self->brik_help_run_invalid_arg('diff_ps_network_connections', $processes, 'ARRAY')
323 0 0 unless $self->brik_help_run_undef_arg('create_client', $self->_client)
325 0 0 if (defined $processes)
326 0 0 unless $self->brik_help_run_invalid_arg('diff_ps_target_filename_created', $processes, 'ARRAY')
339 0 0 unless $self->brik_help_run_undef_arg('create_client', $self->_client)
341 0 0 if (defined $processes)
342 0 0 unless $self->brik_help_run_invalid_arg('diff_ps_registry_value_set', $processes, 'ARRAY')
355 0 0 unless $self->brik_help_run_undef_arg('create_client', $self->_client)
357 0 0 if (defined $processes)
358 0 0 unless $self->brik_help_run_invalid_arg('diff_ps_registry_object_added_or_deleted', $processes, 'ARRAY')
371 0 0 unless $self->brik_help_run_undef_arg('create_client', $self->_client)
373 0 0 if (defined $processes)
374 0 0 unless $self->brik_help_run_invalid_arg('diff_ps_target_process_accessed', $processes, 'ARRAY')
387 0 0 unless $self->brik_help_run_undef_arg('create_client', $self->_client)
391 0 0 if (defined $processes)
392 0 0 unless $self->brik_help_run_undef_arg('loop_and_download_created_files', $processes)
394 0 0 unless $self->brik_help_run_invalid_arg('loop_and_download_created_files', $processes, 'ARRAY', 'SCALAR')
402 0 0 unless my $sf = 'Metabrik::System::File'->new_from_brik_init($self)
403 0 0 unless $sf->mkdir($output_dir)
406 0 0 unless my $diff = $fs->diff_current_state('ps_target_filename_created', $processes)
409 0 0 if (exists $diff->{'ps_target_filename_created'})
427 0 0 unless $self->brik_help_run_undef_arg('create_client', $self->_client)
432 0 0 unless my $output = $sv->dumpvmcore($vm_id)
440 0 0 unless $self->brik_help_run_undef_arg('create_client', $self->_client)
451 0 0 unless $self->brik_help_run_undef_arg('create_client', $self->_client)