Skip to content

Commit b85403a

Browse files
committed
Revert "POST module duplicate search results"
This reverts commit 0bca3a2.
1 parent 0bca3a2 commit b85403a

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,16 +542,17 @@ def cmd_run(*args)
542542
# fall back to using the scripting interface.
543543
if (msf_loaded? and mod = client.framework.modules.create(script_name))
544544
original_mod = mod
545+
reloaded_mod = client.framework.modules.reload_module(original_mod)
545546

546-
unless original_mod
547+
unless reloaded_mod
547548
error = client.framework.modules.module_load_error_by_path[original_mod.file_path]
548549
print_error("Failed to reload module: #{error}")
549550

550551
return
551552
end
552553

553554
opts = (args + [ "SESSION=#{client.sid}" ]).join(',')
554-
original_mod.run_simple(
555+
reloaded_mod.run_simple(
555556
#'RunAsJob' => true,
556557
'LocalInput' => shell.input,
557558
'LocalOutput' => shell.output,

0 commit comments

Comments
 (0)