mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
clean up the file system from sqlmap created web files
This commit is contained in:
@@ -103,11 +103,18 @@ class Miscellaneous:
|
||||
inject.goStacked("DROP TABLE %s" % tblName, silent=True)
|
||||
inject.goStacked("CREATE TABLE %s(%s %s)" % (tblName, tblField, tblType))
|
||||
|
||||
def cleanup(self, onlyFileTbl=False, udfDict=None):
|
||||
def cleanup(self, onlyFileTbl=False, udfDict=None, web=False):
|
||||
"""
|
||||
Cleanup database from sqlmap create tables and functions
|
||||
Cleanup file system and database from sqlmap create files, tables
|
||||
and functions
|
||||
"""
|
||||
|
||||
if web:
|
||||
logger.info("cleaning up the web files uploaded")
|
||||
|
||||
self.delRemoteFile(self.webStagerFilePath)
|
||||
self.delRemoteFile(self.webBackdoorFilePath)
|
||||
|
||||
if not isTechniqueAvailable(PAYLOAD.TECHNIQUE.STACKED) and not conf.direct:
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user