Skip to content

Commit

Permalink
Fix null tasking Interact display
Browse files Browse the repository at this point in the history
  • Loading branch information
cobbr committed Sep 14, 2019
1 parent 19f07bb commit a707517
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
### Fixed
- Fixed null tasking display

## [v0.3.2] - 2019-09-11
### Added
- Added PersistAutorun task, PersistStartup task, and PersistWMI task
Expand Down
4 changes: 2 additions & 2 deletions Covenant/Views/Grunt/Interact.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
<div class="card-body">
@if (command.CommandOutput != null)
{
if (command.GruntTasking.GruntTask.Name == "ScreenShot")
if (command.GruntTasking != null && command.GruntTasking.GruntTask != null && command.GruntTasking.GruntTask.Name == "ScreenShot")
{
<img style="max-width: 100%" src="data:image/png;base64, @command.CommandOutput.Output" />
}
Expand Down Expand Up @@ -800,4 +800,4 @@
}
});
});</script>
}
}

0 comments on commit a707517

Please # to comment.