Skip to content

Commit fc3c321

Browse files
committed
Minor update
1 parent 0f581cc commit fc3c321

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

plugins/generic/takeover.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -336,12 +336,9 @@ def osBof(self):
336336

337337
msg = "this technique is likely to DoS the DBMS process, are you "
338338
msg += "sure that you want to carry with the exploit? [y/N] "
339-
inp = readInput(msg, default="N")
339+
choice = readInput(msg, default="N")
340340

341-
if inp and inp[0].lower() == "y":
342-
dos = True
343-
else:
344-
dos = False
341+
dos = choice and choice[0].lower() == "y"
345342

346343
if dos:
347344
self.initEnv(mandatory=False, detailed=True)

0 commit comments

Comments
 (0)