File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
lib/rex/post/meterpreter/ui/console/command_dispatcher Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -542,16 +542,17 @@ def cmd_run(*args)
542
542
# fall back to using the scripting interface.
543
543
if ( msf_loaded? and mod = client . framework . modules . create ( script_name ) )
544
544
original_mod = mod
545
+ reloaded_mod = client . framework . modules . reload_module ( original_mod )
545
546
546
- unless original_mod
547
+ unless reloaded_mod
547
548
error = client . framework . modules . module_load_error_by_path [ original_mod . file_path ]
548
549
print_error ( "Failed to reload module: #{ error } " )
549
550
550
551
return
551
552
end
552
553
553
554
opts = ( args + [ "SESSION=#{ client . sid } " ] ) . join ( ',' )
554
- original_mod . run_simple (
555
+ reloaded_mod . run_simple (
555
556
#'RunAsJob' => true,
556
557
'LocalInput' => shell . input ,
557
558
'LocalOutput' => shell . output ,
You can’t perform that action at this time.
0 commit comments