Skip to content

Commit

Permalink
Add one additional guard clause in to prevent outputting a message if…
Browse files Browse the repository at this point in the history
… the database isn't properly connected
  • Loading branch information
gwillcox-r7 committed Apr 12, 2021
1 parent 0b06904 commit 54aa9d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/post/windows/gather/screen_spy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def run
return
end
print_status("Screen Spying Complete")
if record? && file_locations and not file_locations.empty?
if record? && framework.db.active && file_locations and not file_locations.empty?
print_status "run loot -t screenspy.screenshot to see file locations of your newly acquired loot"
end

Expand Down

0 comments on commit 54aa9d4

Please sign in to comment.