@@ -3081,14 +3081,14 @@ def show_global_options
3081
3081
'Columns' => columns
3082
3082
)
3083
3083
[
3084
- [ 'ConsoleLogging' , framework . datastore [ 'ConsoleLogging' ] || '' , 'Log all console input and output' ] ,
3085
- [ 'LogLevel' , framework . datastore [ 'LogLevel' ] || '' , 'Verbosity of logs (default 0, max 5)' ] ,
3086
- [ 'MinimumRank' , framework . datastore [ 'MinimumRank' ] || '' , 'The minimum rank of exploits that will run without explicit confirmation' ] ,
3087
- [ 'SessionLogging' , framework . datastore [ 'SessionLogging' ] || '' , 'Log all input and output for sessions' ] ,
3088
- [ 'TimestampOutput' , framework . datastore [ 'TimestampOutput' ] || '' , 'Prefix all console output with a timestamp' ] ,
3089
- [ 'Prompt' , framework . datastore [ 'Prompt' ] || '' , "The prompt string, defaults to \" #{ Msf ::Ui ::Console ::Driver ::DefaultPrompt } \" " ] ,
3090
- [ 'PromptChar' , framework . datastore [ 'PromptChar' ] || '' , "The prompt character, defaults to \" #{ Msf ::Ui ::Console ::Driver ::DefaultPromptChar } \" " ] ,
3091
- [ 'PromptTimeFormat' , framework . datastore [ 'PromptTimeFormat' ] || '' , 'A format for timestamp escapes in the prompt, see ruby\'s strftime docs ' ] ,
3084
+ [ 'ConsoleLogging' , framework . datastore [ 'ConsoleLogging' ] || "false" , 'Log all console input and output' ] ,
3085
+ [ 'LogLevel' , framework . datastore [ 'LogLevel' ] || "0" , 'Verbosity of logs (default 0, max 5)' ] ,
3086
+ [ 'MinimumRank' , framework . datastore [ 'MinimumRank' ] || "0" , 'The minimum rank of exploits that will run without explicit confirmation' ] ,
3087
+ [ 'SessionLogging' , framework . datastore [ 'SessionLogging' ] || "false" , 'Log all input and output for sessions' ] ,
3088
+ [ 'TimestampOutput' , framework . datastore [ 'TimestampOutput' ] || "false" , 'Prefix all console output with a timestamp' ] ,
3089
+ [ 'Prompt' , framework . datastore [ 'Prompt' ] || Msf ::Ui ::Console ::Driver ::DefaultPrompt . to_s . gsub ( /%.../ , "" ) , "The prompt string " ] ,
3090
+ [ 'PromptChar' , framework . datastore [ 'PromptChar' ] || Msf ::Ui ::Console ::Driver ::DefaultPromptChar . to_s . gsub ( /%.../ , "" ) , "The prompt character " ] ,
3091
+ [ 'PromptTimeFormat' , framework . datastore [ 'PromptTimeFormat' ] || Time :: DATE_FORMATS [ :db ] . to_s , 'Format for timestamp escapes in prompts ' ] ,
3092
3092
] . each { |r | tbl << r }
3093
3093
3094
3094
print ( tbl . to_s )
0 commit comments