mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +03:00
Removal of fun code
This commit is contained in:
parent
9f679a952f
commit
9563e429d3
|
@ -586,13 +586,6 @@ def paramToDict(place, parameters=None):
|
|||
test = readInput(message, default="N")
|
||||
if test[0] not in ("y", "Y"):
|
||||
raise SqlmapSilentQuitException
|
||||
elif test.lower() == "yy":
|
||||
pass
|
||||
else:
|
||||
original = [_ for _ in string.ascii_letters + string.digits]
|
||||
shuffled = list(original)
|
||||
random.shuffle(shuffled)
|
||||
kb.easterEgg = dict(_ for _ in zip(original, shuffled))
|
||||
elif not _:
|
||||
warnMsg = "provided value for parameter '%s' is empty. " % parameter
|
||||
warnMsg += "Please, always use only valid parameter values "
|
||||
|
@ -831,9 +824,6 @@ def dataToStdout(data, forceOutput=False, bold=False, content_type=None, status=
|
|||
else:
|
||||
message = data
|
||||
|
||||
if kb.get("easterEgg"):
|
||||
message = "".join(kb.easterEgg.get(_, _) for _ in message)
|
||||
|
||||
if hasattr(conf, "api"):
|
||||
sys.stdout.write(message, status, content_type)
|
||||
else:
|
||||
|
|
|
@ -478,8 +478,6 @@ def _adjustLoggingFormatter():
|
|||
|
||||
def format(record):
|
||||
message = FORMATTER._format(record)
|
||||
if kb.get("easterEgg"):
|
||||
message = "".join(kb.easterEgg.get(_, _) for _ in message)
|
||||
message = boldifyMessage(message)
|
||||
if kb.get("prependFlag"):
|
||||
message = "\n%s" % message
|
||||
|
@ -1719,7 +1717,6 @@ def _setKnowledgeBaseAttributes(flushAll=True):
|
|||
kb.followSitemapRecursion = None
|
||||
kb.forcedDbms = None
|
||||
kb.forcePartialUnion = False
|
||||
kb.easterEgg = None
|
||||
kb.headersFp = {}
|
||||
kb.heuristicDbms = None
|
||||
kb.heuristicMode = False
|
||||
|
|
Loading…
Reference in New Issue
Block a user