Removal of fun code

This commit is contained in:
Miroslav Stampar 2015-01-30 21:49:22 +01:00
parent 9f679a952f
commit 9563e429d3
2 changed files with 0 additions and 13 deletions

View File

@ -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:

View File

@ -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