We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a9f813 commit 3d99554Copy full SHA for 3d99554
lib/rex/post/meterpreter/ui/console/command_dispatcher/powershell.rb
@@ -107,7 +107,7 @@ def cmd_powershell_import(*args)
107
result = client.powershell.import_file(opts)
108
if result.nil? || result == false
109
print_error("File failed to load.")
110
- elsif result.empty?
+ elsif result == true || result.empty?
111
print_good("File successfully imported. No result was returned.")
112
else
113
print_good("File successfully imported. Result:\n#{result}")
0 commit comments