mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
code refactoring
This commit is contained in:
parent
cda00c7501
commit
de54219571
3 changed files with 4 additions and 3 deletions
|
|
@ -19,6 +19,7 @@ from lib.core.common import extractRegexResult
|
|||
from lib.core.common import getDirs
|
||||
from lib.core.common import getDocRoot
|
||||
from lib.core.common import ntToPosixSlashes
|
||||
from lib.core.common import isTechniqueAvailable
|
||||
from lib.core.common import isWindowsDriveLetterPath
|
||||
from lib.core.common import normalizePath
|
||||
from lib.core.common import posixToNtSlashes
|
||||
|
|
@ -104,7 +105,7 @@ class Web:
|
|||
uplQuery = fileContent.replace("WRITABLE_DIR", directory.replace('/', '\\\\') if kb.os == "Windows" else directory)
|
||||
query = ""
|
||||
|
||||
if kb.technique and kb.technique in kb.injection.data:
|
||||
if isTechniqueAvailable(kb.technique):
|
||||
where = kb.injection.data[kb.technique].where
|
||||
|
||||
if where == 2:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue