Skip to content

Commit 3d99554

Browse files
author
Brent Cook
committed
check for true before empty string
1 parent 2a9f813 commit 3d99554

File tree

1 file changed

+1
-1
lines changed
  • lib/rex/post/meterpreter/ui/console/command_dispatcher

1 file changed

+1
-1
lines changed

lib/rex/post/meterpreter/ui/console/command_dispatcher/powershell.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def cmd_powershell_import(*args)
107107
result = client.powershell.import_file(opts)
108108
if result.nil? || result == false
109109
print_error("File failed to load.")
110-
elsif result.empty?
110+
elsif result == true || result.empty?
111111
print_good("File successfully imported. No result was returned.")
112112
else
113113
print_good("File successfully imported. Result:\n#{result}")

0 commit comments

Comments
 (0)