From 8e5deac3f48ee8f4343a487ea46ae9c7ed001ca5 Mon Sep 17 00:00:00 2001 From: William Vu Date: Fri, 20 Oct 2017 00:38:01 -0500 Subject: [PATCH] Fix nil bug in setting PromptChar without Prompt --- lib/msf/ui/console/driver.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/ui/console/driver.rb b/lib/msf/ui/console/driver.rb index f43d99e36c85..1e303bf4ee75 100644 --- a/lib/msf/ui/console/driver.rb +++ b/lib/msf/ui/console/driver.rb @@ -593,7 +593,7 @@ def on_variable_set(glob, var, val) when "prompt" update_prompt(val, framework.datastore['PromptChar'] || DefaultPromptChar, true) when "promptchar" - update_prompt(framework.datastore['Prompt'], val, true) + update_prompt(framework.datastore['Prompt'] || DefaultPrompt, val, true) end end