mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
code refactoring regarding dictionary attack
This commit is contained in:
parent
ba4ea32603
commit
3cae76627c
3 changed files with 13 additions and 3 deletions
|
|
@ -26,6 +26,7 @@ from ConfigParser import DEFAULTSECT
|
|||
from ConfigParser import RawConfigParser
|
||||
from StringIO import StringIO
|
||||
from difflib import SequenceMatcher
|
||||
from inspect import getmembers
|
||||
from subprocess import PIPE
|
||||
from subprocess import Popen as execute
|
||||
from tempfile import NamedTemporaryFile
|
||||
|
|
@ -1604,3 +1605,12 @@ def logHTTPTraffic(requestLogMsg, responseLogMsg):
|
|||
dataToTrafficFile("\n%s\n\n" % (76 * '#'))
|
||||
|
||||
kb.locks.reqLock.release()
|
||||
|
||||
def getPublicTypeMembers(type_):
|
||||
retVal = []
|
||||
|
||||
for name, value in getmembers(type_):
|
||||
if not name.startswith('__'):
|
||||
retVal.append((name, value))
|
||||
|
||||
return retVal
|
||||
Loading…
Add table
Add a link
Reference in a new issue