diff --git a/lib/controller/checks.py b/lib/controller/checks.py index 9cd6f2816..dc716da3d 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -396,7 +396,7 @@ def checkSqlInjection(place, parameter, value): elif detailKey == "os" and injection.os is None: injection.os = detailValue - if conf.beep: + if conf.beep or conf.scriptKiddie: beep() # There is no need to perform this test for other diff --git a/lib/controller/controller.py b/lib/controller/controller.py index 6f7b5e81d..4488a9f43 100644 --- a/lib/controller/controller.py +++ b/lib/controller/controller.py @@ -226,7 +226,9 @@ def start(): elif test[0] in ("q", "Q"): break - elif not conf.scriptKiddie: + elif conf.scriptKiddie: + logger.info(message) + else: message += "\ndo you want to test this url? [Y/n/q]" test = readInput(message, default="Y") diff --git a/lib/request/connect.py b/lib/request/connect.py index 2bdb80f4e..998bb6edc 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -196,7 +196,7 @@ class Connect: if hasattr(conn, "setcookie"): kb.redirectSetCookie = conn.setcookie - if hasattr(conn, "redurl") and hasattr(conn, "redcode") and not conf.redirectHandled: + if hasattr(conn, "redurl") and hasattr(conn, "redcode") and not conf.redirectHandled and not conf.scriptKiddie: msg = "sqlmap got a %d redirect to " % conn.redcode msg += "%s - What target address do you " % conn.redurl msg += "want to use from now on? %s " % conf.url