mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-13 10:00:36 +03:00
some consistency in variable naming at the file level
This commit is contained in:
parent
db526bdbc0
commit
00d22f013f
|
@ -326,13 +326,13 @@ def attackDumpedTable():
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
found = False
|
found = False
|
||||||
colUser = ''
|
col_user = ''
|
||||||
colPasswords = set()
|
col_passwords = set()
|
||||||
attack_dict = {}
|
attack_dict = {}
|
||||||
|
|
||||||
for column in columns:
|
for column in columns:
|
||||||
if column and column.lower() in COMMON_USER_COLUMNS:
|
if column and column.lower() in COMMON_USER_COLUMNS:
|
||||||
colUser = column
|
col_user = column
|
||||||
break
|
break
|
||||||
|
|
||||||
for i in xrange(count):
|
for i in xrange(count):
|
||||||
|
@ -340,7 +340,7 @@ def attackDumpedTable():
|
||||||
break
|
break
|
||||||
|
|
||||||
for column in columns:
|
for column in columns:
|
||||||
if column == colUser or column == '__infos__':
|
if column == col_user or column == '__infos__':
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if len(table[column]['values']) <= i:
|
if len(table[column]['values']) <= i:
|
||||||
|
@ -351,19 +351,19 @@ def attackDumpedTable():
|
||||||
if hashRecognition(value):
|
if hashRecognition(value):
|
||||||
found = True
|
found = True
|
||||||
|
|
||||||
if colUser and i < len(table[colUser]['values']):
|
if col_user and i < len(table[col_user]['values']):
|
||||||
if table[colUser]['values'][i] not in attack_dict:
|
if table[col_user]['values'][i] not in attack_dict:
|
||||||
attack_dict[table[colUser]['values'][i]] = []
|
attack_dict[table[col_user]['values'][i]] = []
|
||||||
|
|
||||||
attack_dict[table[colUser]['values'][i]].append(value)
|
attack_dict[table[col_user]['values'][i]].append(value)
|
||||||
else:
|
else:
|
||||||
attack_dict['%s%d' % (DUMMY_USER_PREFIX, i)] = [value]
|
attack_dict['%s%d' % (DUMMY_USER_PREFIX, i)] = [value]
|
||||||
|
|
||||||
colPasswords.add(column)
|
col_passwords.add(column)
|
||||||
|
|
||||||
if attack_dict:
|
if attack_dict:
|
||||||
message = "recognized possible password hashes in column%s " % ("s" if len(colPasswords) > 1 else "")
|
message = "recognized possible password hashes in column%s " % ("s" if len(col_passwords) > 1 else "")
|
||||||
message += "'%s'. Do you want to " % ", ".join(col for col in colPasswords)
|
message += "'%s'. Do you want to " % ", ".join(col for col in col_passwords)
|
||||||
message += "crack them via a dictionary-based attack? [Y/n/q]"
|
message += "crack them via a dictionary-based attack? [Y/n/q]"
|
||||||
test = readInput(message, default="Y")
|
test = readInput(message, default="Y")
|
||||||
|
|
||||||
|
@ -384,7 +384,7 @@ def attackDumpedTable():
|
||||||
|
|
||||||
for i in xrange(count):
|
for i in xrange(count):
|
||||||
for column in columns:
|
for column in columns:
|
||||||
if not (column == colUser or column == '__infos__' or len(table[column]['values']) <= i):
|
if not (column == col_user or column == '__infos__' or len(table[column]['values']) <= i):
|
||||||
value = table[column]['values'][i]
|
value = table[column]['values'][i]
|
||||||
|
|
||||||
if value and value.lower() in lut:
|
if value and value.lower() in lut:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user