mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-31 15:40:46 +00:00
Minor patches
This commit is contained in:
parent
a7931751ee
commit
f8f57e1030
7 changed files with 63 additions and 11 deletions
|
|
@ -16,10 +16,14 @@ from thirdparty import six
|
|||
class Wordlist(six.Iterator):
|
||||
"""
|
||||
Iterator for looping over a large dictionaries
|
||||
|
||||
>>> from lib.core.option import paths
|
||||
>>> isinstance(next(Wordlist(paths.SMALL_DICT)), six.string_types)
|
||||
True
|
||||
"""
|
||||
|
||||
def __init__(self, filenames, proc_id=None, proc_count=None, custom=None):
|
||||
self.filenames = filenames
|
||||
self.filenames = [filenames] if isinstance(filenames, six.string_types) else filenames
|
||||
self.fp = None
|
||||
self.index = 0
|
||||
self.counter = -1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue