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

Skip to content

Commit c082067

Browse files
committed
Removing some dead code (vulture)
1 parent e37c227 commit c082067

6 files changed

Lines changed: 1 addition & 30 deletions

File tree

lib/controller/checks.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,8 +519,6 @@ def genCmpPayload():
519519
except (MemoryError, OverflowError):
520520
pass
521521

522-
kb.prevFalsePage = falsePage
523-
524522
# Perform the test's True request
525523
trueResult = Request.queryPage(reqPayload, place, raise404=False)
526524
truePage, trueHeaders, trueCode = threadData.lastComparisonPage or "", threadData.lastComparisonHeaders, threadData.lastComparisonCode

lib/core/common.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,7 +1377,6 @@ def setPaths(rootPath):
13771377
paths.SQLMAP_EXTRAS_PATH = os.path.join(paths.SQLMAP_ROOT_PATH, "extra")
13781378
paths.SQLMAP_SETTINGS_PATH = os.path.join(paths.SQLMAP_ROOT_PATH, "lib", "core", "settings.py")
13791379
paths.SQLMAP_TAMPER_PATH = os.path.join(paths.SQLMAP_ROOT_PATH, "tamper")
1380-
paths.SQLMAP_WAF_PATH = os.path.join(paths.SQLMAP_ROOT_PATH, "waf")
13811380

13821381
paths.SQLMAP_PROCS_PATH = os.path.join(paths.SQLMAP_DATA_PATH, "procs")
13831382
paths.SQLMAP_SHELL_PATH = os.path.join(paths.SQLMAP_DATA_PATH, "shell")
@@ -2319,16 +2318,6 @@ def readCachedFileContent(filename, mode="rb"):
23192318

23202319
return kb.cache.content[filename]
23212320

2322-
def readXmlFile(xmlFile):
2323-
"""
2324-
Reads XML file content and returns its DOM representation
2325-
"""
2326-
2327-
checkFile(xmlFile)
2328-
retVal = minidom.parse(xmlFile).documentElement
2329-
2330-
return retVal
2331-
23322321
def average(values):
23332322
"""
23342323
Computes the arithmetic mean of a list of numbers.

lib/core/dump.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,6 @@ def setOutputFile(self):
107107
errMsg = "error occurred while opening log file ('%s')" % getSafeExString(ex)
108108
raise SqlmapGenericException(errMsg)
109109

110-
def getOutputFile(self):
111-
return self._outputFile
112-
113110
def singleString(self, data, content_type=None):
114111
self._write(data, content_type=content_type)
115112

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.4.1.22"
21+
VERSION = "1.4.1.23"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/utils/hash.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -248,18 +248,6 @@ def oracle_old_passwd(password, username, uppercase=True): # prior to version '
248248

249249
return retVal.upper() if uppercase else retVal.lower()
250250

251-
def md4_generic_passwd(password, uppercase=False):
252-
"""
253-
>>> md4_generic_passwd(password='testpass', uppercase=False)
254-
'5b4d300688f19c8fd65b8d6ccf98e0ae'
255-
"""
256-
257-
password = getBytes(password)
258-
259-
retVal = hashlib.new("md4", password).hexdigest()
260-
261-
return retVal.upper() if uppercase else retVal.lower()
262-
263251
def md5_generic_passwd(password, uppercase=False):
264252
"""
265253
>>> md5_generic_passwd(password='testpass', uppercase=False)

plugins/generic/enumeration.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def __init__(self):
3131
kb.data.banner = None
3232
kb.data.hostname = ""
3333
kb.data.processChar = None
34-
kb.data.characterSet = None
3534

3635
Custom.__init__(self)
3736
Databases.__init__(self)

0 commit comments

Comments
 (0)