Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 49915f3

Browse files
committed
minor update
1 parent 8abcdae commit 49915f3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/takeover/udf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
from lib.core.exception import sqlmapFilePathException
3535
from lib.core.exception import sqlmapMissingMandatoryOptionException
3636
from lib.core.exception import sqlmapUnsupportedFeatureException
37+
from lib.core.exception import sqlmapUserQuitException
3738
from lib.core.unescaper import unescaper
3839
from lib.request import inject
3940
from lib.techniques.outband.stacked import stackedTest
@@ -308,9 +309,12 @@ def udfInjectCustom(self):
308309
msg += "functions now? [Y/n/q] "
309310
choice = readInput(msg, default="Y")
310311

311-
if choice[0] not in ( "y", "Y" ):
312+
if choice[0] in ( "n", "N" ):
312313
self.cleanup(udfDict=self.udfs)
313314
return
315+
elif choice[0] in ( "q", "Q" ):
316+
self.cleanup(udfDict=self.udfs)
317+
raise sqlmapUserQuitException
314318

315319
while True:
316320
udfList = []

0 commit comments

Comments
 (0)