mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
removed some blank trailing spaces (with extra/shutils/blanks.sh)
This commit is contained in:
parent
1a3f57e5fe
commit
6b37ddada4
|
@ -59,7 +59,7 @@ pad -> Optional argument. Only when using padmode of PAD_NORMAL. For
|
|||
bytes of the unencrypted data block.
|
||||
padmode -> Optional argument, set the padding mode, must be one of PAD_NORMAL
|
||||
or PAD_PKCS5). Defaults to PAD_NORMAL.
|
||||
|
||||
|
||||
|
||||
Example
|
||||
-------
|
||||
|
@ -153,7 +153,7 @@ class _baseDes(object):
|
|||
def getPadMode(self):
|
||||
"""getPadMode() -> pyDes.PAD_NORMAL or pyDes.PAD_PKCS5"""
|
||||
return self._padmode
|
||||
|
||||
|
||||
def setPadMode(self, mode):
|
||||
"""Sets the type of padding mode, pyDes.PAD_NORMAL or pyDes.PAD_PKCS5"""
|
||||
self._padmode = mode
|
||||
|
@ -188,7 +188,7 @@ class _baseDes(object):
|
|||
if not pad:
|
||||
raise ValueError("Data must be a multiple of " + str(self.block_size) + " bytes in length. Use padmode=PAD_PKCS5 or set the pad character.")
|
||||
data += (self.block_size - (len(data) % self.block_size)) * pad
|
||||
|
||||
|
||||
elif padmode == PAD_PKCS5:
|
||||
pad_len = 8 - (len(data) % self.block_size)
|
||||
if _pythonMajorVersion < 3:
|
||||
|
@ -454,7 +454,7 @@ class des(_baseDes):
|
|||
def __permutate(self, table, block):
|
||||
"""Permutate this block with the specified table"""
|
||||
return list(map(lambda x: block[x], table))
|
||||
|
||||
|
||||
# Transform the secret key, so that it is ready for data processing
|
||||
# Create the 16 subkeys, K[1] - K[16]
|
||||
def __create_sub_keys(self):
|
||||
|
@ -554,7 +554,7 @@ class des(_baseDes):
|
|||
|
||||
i += 1
|
||||
iteration += iteration_adjustment
|
||||
|
||||
|
||||
# Final permutation of R[16]L[16]
|
||||
self.final = self.__permutate(des.__fp, self.R + self.L)
|
||||
return self.final
|
||||
|
@ -597,7 +597,7 @@ class des(_baseDes):
|
|||
# result.append(dict[data[i:i+8]])
|
||||
# i += 8
|
||||
# continue
|
||||
|
||||
|
||||
block = self.__String_to_BitList(data[i:i+8])
|
||||
|
||||
# Xor with IV if using CBC mode
|
||||
|
|
|
@ -1558,7 +1558,7 @@ def pushValue(value):
|
|||
"""
|
||||
Push value to the stack (thread dependent)
|
||||
"""
|
||||
|
||||
|
||||
getCurrentThreadData().valueStack.append(value)
|
||||
|
||||
def popValue():
|
||||
|
@ -1761,7 +1761,7 @@ def removeDynamicContent(page):
|
|||
|
||||
def filterStringValue(value, regex):
|
||||
retVal = ""
|
||||
|
||||
|
||||
if value:
|
||||
for char in value:
|
||||
if re.search(regex, char):
|
||||
|
|
|
@ -172,7 +172,7 @@ class Dump:
|
|||
self.__write("+%s+\n" % lines)
|
||||
else:
|
||||
self.string("tables", dbTables)
|
||||
|
||||
|
||||
def dbTableColumns(self, tableColumns):
|
||||
for db, tables in tableColumns.items():
|
||||
if not db:
|
||||
|
|
|
@ -265,7 +265,7 @@ class Connect:
|
|||
|
||||
except (urllib2.URLError, socket.error, socket.timeout, httplib.BadStatusLine, httplib.IncompleteRead), e:
|
||||
tbMsg = traceback.format_exc()
|
||||
|
||||
|
||||
if "no host given" in tbMsg:
|
||||
warnMsg = "invalid url address used (%s)" % repr(url)
|
||||
raise sqlmapSyntaxException, warnMsg
|
||||
|
|
|
@ -37,7 +37,7 @@ def tableExists(tableFile):
|
|||
iolock = threading.Lock()
|
||||
kb.locks.seqLock = threading.Lock()
|
||||
kb.threadContinue = True
|
||||
|
||||
|
||||
def tableExistsThread():
|
||||
while count[0] < length and kb.threadContinue:
|
||||
tbllock.acquire()
|
||||
|
|
|
@ -1271,7 +1271,7 @@ class Enumeration:
|
|||
conf.col = None
|
||||
kb.data.cachedDbs = []
|
||||
kb.data.cachedTables = self.getTables()
|
||||
|
||||
|
||||
if kb.data.cachedTables:
|
||||
if isinstance(kb.data.cachedTables, list):
|
||||
kb.data.cachedTables = { None : kb.data.cachedTables }
|
||||
|
|
Loading…
Reference in New Issue
Block a user