From fc3c321b0105df321112f8b957d219d0a32082dc Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 15 May 2014 19:08:41 +0200 Subject: [PATCH] Minor update --- plugins/generic/takeover.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/generic/takeover.py b/plugins/generic/takeover.py index 06b5d54db..e4aa96249 100644 --- a/plugins/generic/takeover.py +++ b/plugins/generic/takeover.py @@ -336,12 +336,9 @@ class Takeover(Abstraction, Metasploit, ICMPsh, Registry, Miscellaneous): msg = "this technique is likely to DoS the DBMS process, are you " msg += "sure that you want to carry with the exploit? [y/N] " - inp = readInput(msg, default="N") + choice = readInput(msg, default="N") - if inp and inp[0].lower() == "y": - dos = True - else: - dos = False + dos = choice and choice[0].lower() == "y" if dos: self.initEnv(mandatory=False, detailed=True)