fix for a bug reported by Kirill (value is None in attack table phase) and minor fix for loading request file

This commit is contained in:
Miroslav Stampar 2011-03-24 08:43:40 +00:00
parent bd75fd26e9
commit 0bb08d09d2
3 changed files with 3 additions and 2 deletions

View File

@ -268,6 +268,7 @@ Anastasios Monachos <anastasiosm@gmail.com>
for suggesting a feature
Kirill Morozov <l0rda@l0rda.biz>
for reporting a bug
for suggesting a feature
Alejo Murillo Moya <alex@65535.com>

View File

@ -215,7 +215,7 @@ def __feedTargetsDict(reqFile, addedTargetUrls):
for line in lines:
if len(line) == 0 or line == "\n":
if method == HTTPMETHOD.POST:
if method == HTTPMETHOD.POST and data is None:
data = ""
params = True

View File

@ -261,7 +261,7 @@ def attackDumpedTable():
value = table[column]['values'][i]
if value.lower() == hash_.lower():
if all(map(lambda x: x, [value, hash_])) and value.lower() == hash_.lower():
table[column]['values'][i] += " (%s)" % password
table[column]['length'] = max(table[column]['length'], len(table[column]['values'][i]))