File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
lib/msf/ui/console/command_dispatcher Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1516,8 +1516,13 @@ def cmd_spool(*args)
1516
1516
# Restore color and prompt
1517
1517
driver . output . config [ :color ] = color
1518
1518
prompt = framework . datastore [ 'Prompt' ] || Msf ::Ui ::Console ::Driver ::DefaultPrompt
1519
+ if active_module
1520
+ # intentionally += and not << because we don't want to modify
1521
+ # datastore or the constant DefaultPrompt
1522
+ prompt += " #{ active_module . type } (%bld%red#{ active_module . shortname } %clr)"
1523
+ end
1519
1524
prompt_char = framework . datastore [ 'PromptChar' ] || Msf ::Ui ::Console ::Driver ::DefaultPromptChar
1520
- driver . update_prompt ( "#{ prompt } #{ active_module . type } (%bld%red #{ active_module . shortname } %clr) " , prompt_char , true )
1525
+ driver . update_prompt ( "#{ prompt } " , prompt_char , true )
1521
1526
1522
1527
print_status ( msg )
1523
1528
return
You can’t perform that action at this time.
0 commit comments