mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-10 18:21:14 +00:00
I am back on stage and here to stay!!! to start.. a removal of confirm switch which masked cases where file write operations failed when set to False automatically, now at least it asks the user and defaults to Yes
This commit is contained in:
parent
d7cd55fb28
commit
ab412da27f
14 changed files with 25 additions and 28 deletions
|
|
@ -80,7 +80,7 @@ class ICMPsh:
|
|||
if web:
|
||||
self.webFileUpload(self.__icmpslave, self.__icmpslaveRemote, self.webDirectory)
|
||||
else:
|
||||
self.writeFile(self.__icmpslave, self.__icmpslaveRemote, "binary", False)
|
||||
self.writeFile(self.__icmpslave, self.__icmpslaveRemote, "binary")
|
||||
|
||||
def icmpPwn(self):
|
||||
self.__prepareIngredients()
|
||||
|
|
|
|||
|
|
@ -554,7 +554,7 @@ class Metasploit:
|
|||
if web:
|
||||
self.webFileUpload(self.shellcodeexecLocal, self.shellcodeexecRemote, self.webDirectory)
|
||||
else:
|
||||
self.writeFile(self.shellcodeexecLocal, self.shellcodeexecRemote, "binary", False)
|
||||
self.writeFile(self.shellcodeexecLocal, self.shellcodeexecRemote, "binary")
|
||||
|
||||
def pwn(self, goUdf=False):
|
||||
if goUdf:
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ class Registry:
|
|||
logger.debug("creating batch file '%s'" % self.__batPathRemote)
|
||||
|
||||
self.__createLocalBatchFile()
|
||||
self.writeFile(self.__batPathLocal, self.__batPathRemote, "text", False)
|
||||
self.writeFile(self.__batPathLocal, self.__batPathRemote, "text")
|
||||
|
||||
os.unlink(self.__batPathLocal)
|
||||
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ class UDF:
|
|||
|
||||
if len(self.udfToCreate) > 0:
|
||||
self.udfSetRemotePath()
|
||||
self.writeFile(self.udfLocalFile, self.udfRemoteFile, "binary", False)
|
||||
self.writeFile(self.udfLocalFile, self.udfRemoteFile, "binary")
|
||||
|
||||
for udf, inpRet in udfDict.items():
|
||||
if udf in self.udfToCreate and udf not in self.createdUdf:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue