mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Some refactoring (data)
This commit is contained in:
parent
82efb0ca79
commit
ef7d4bb404
79 changed files with 50 additions and 30 deletions
|
|
@ -9,6 +9,7 @@ import os
|
|||
import zipfile
|
||||
|
||||
from lib.core.common import getSafeExString
|
||||
from lib.core.common import isZipFile
|
||||
from lib.core.exception import SqlmapDataException
|
||||
from lib.core.exception import SqlmapInstallationException
|
||||
from thirdparty import six
|
||||
|
|
@ -45,7 +46,7 @@ class Wordlist(six.Iterator):
|
|||
self.iter = iter(self.custom)
|
||||
else:
|
||||
self.current = self.filenames[self.index]
|
||||
if os.path.splitext(self.current)[1].lower() == ".zip":
|
||||
if isZipFile(self.current):
|
||||
try:
|
||||
_ = zipfile.ZipFile(self.current, 'r')
|
||||
except zipfile.error as ex:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue