mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Minor patches (--purge instead of --purge-output)
This commit is contained in:
parent
4badb54607
commit
5e2d0bd320
8 changed files with 52 additions and 46 deletions
|
|
@ -1638,13 +1638,13 @@ def _cleanupEnvironment():
|
|||
if hasattr(socket, "_ready"):
|
||||
socket._ready.clear()
|
||||
|
||||
def _purgeOutput():
|
||||
def _purge():
|
||||
"""
|
||||
Safely removes (purges) output directory.
|
||||
Safely removes (purges) sqlmap data directory.
|
||||
"""
|
||||
|
||||
if conf.purgeOutput:
|
||||
purge(paths.SQLMAP_OUTPUT_PATH)
|
||||
if conf.purge:
|
||||
purge(paths.SQLMAP_HOME_PATH)
|
||||
|
||||
def _setConfAttributes():
|
||||
"""
|
||||
|
|
@ -2450,7 +2450,7 @@ def init():
|
|||
_setRequestFromFile()
|
||||
_cleanupOptions()
|
||||
_cleanupEnvironment()
|
||||
_purgeOutput()
|
||||
_purge()
|
||||
_checkDependencies()
|
||||
_createTemporaryDirectory()
|
||||
_basicOptionValidation()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue