Avoid to check for existence of not needed UDFs and minor code adjustment for cleanup() method

This commit is contained in:
Bernardo Damele
2010-02-05 23:14:16 +00:00
parent b08a4efb4b
commit 5c92fad5dc
5 changed files with 18 additions and 17 deletions

View File

@@ -116,6 +116,13 @@ class UDF:
return output
def checkNeededUdfs(self):
if not conf.osPwn:
self.sysUdfs.pop("sys_bineval")
if not conf.osCmd and not conf.osShell and not conf.regRead:
self.sysUdfs.pop("sys_eval")
def udfCreateFromSharedLib(self):
errMsg = "udfSetRemotePath() method must be defined within the plugin"
raise sqlmapUnsupportedFeatureException(errMsg)