mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-17 03:50:42 +03:00
Minor bug fix and adjustment
This commit is contained in:
parent
1387ed0c25
commit
8be91a98cc
|
@ -121,8 +121,8 @@ class Metasploit:
|
||||||
|
|
||||||
self.__msfSMBPortsList = {
|
self.__msfSMBPortsList = {
|
||||||
"windows": {
|
"windows": {
|
||||||
1: ( "139/TCP (default)", "139" ),
|
1: ( "139/TCP", "139" ),
|
||||||
2: ( "445/TCP", "445" ),
|
2: ( "445/TCP (default)", "445" ),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -547,7 +547,7 @@ class Metasploit:
|
||||||
errMsg = "failed to create the shellcode (%s)" % payloadStderr.replace("\n", "")
|
errMsg = "failed to create the shellcode (%s)" % payloadStderr.replace("\n", "")
|
||||||
raise sqlmapFilePathException, errMsg
|
raise sqlmapFilePathException, errMsg
|
||||||
|
|
||||||
self.__shellcodeFP = codecs.open(self.__shellcodeFilePath, "rb", conf.dataEncoding)
|
self.__shellcodeFP = codecs.open(self.__shellcodeFilePath, "rb")
|
||||||
self.shellcodeString = self.__shellcodeFP.read()
|
self.shellcodeString = self.__shellcodeFP.read()
|
||||||
self.__shellcodeFP.close()
|
self.__shellcodeFP.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user