mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
Fix for an Issue #218
This commit is contained in:
parent
c0f57f4e90
commit
65ec715828
|
@ -9,6 +9,7 @@ import os
|
||||||
import zipfile
|
import zipfile
|
||||||
|
|
||||||
from lib.core.exception import sqlmapDataException
|
from lib.core.exception import sqlmapDataException
|
||||||
|
from lib.core.settings import UNICODE_ENCODING
|
||||||
|
|
||||||
class Wordlist:
|
class Wordlist:
|
||||||
"""
|
"""
|
||||||
|
@ -63,6 +64,10 @@ class Wordlist:
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
self.adjust()
|
self.adjust()
|
||||||
retVal = self.iter.next().rstrip()
|
retVal = self.iter.next().rstrip()
|
||||||
|
try:
|
||||||
|
retVal = retVal.decode(UNICODE_ENCODING)
|
||||||
|
except UnicodeDecodeError:
|
||||||
|
continue
|
||||||
if not self.proc_count or self.counter % self.proc_count == self.proc_id:
|
if not self.proc_count or self.counter % self.proc_count == self.proc_id:
|
||||||
break
|
break
|
||||||
return retVal
|
return retVal
|
||||||
|
|
Loading…
Reference in New Issue
Block a user