Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8be91a9

Browse files
committed
Minor bug fix and adjustment
1 parent 1387ed0 commit 8be91a9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/takeover/metasploit.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ def __initVars(self):
121121

122122
self.__msfSMBPortsList = {
123123
"windows": {
124-
1: ( "139/TCP (default)", "139" ),
125-
2: ( "445/TCP", "445" ),
124+
1: ( "139/TCP", "139" ),
125+
2: ( "445/TCP (default)", "445" ),
126126
}
127127
}
128128

@@ -547,7 +547,7 @@ def createMsfShellcode(self, exitfunc, format, extra, encode):
547547
errMsg = "failed to create the shellcode (%s)" % payloadStderr.replace("\n", "")
548548
raise sqlmapFilePathException, errMsg
549549

550-
self.__shellcodeFP = codecs.open(self.__shellcodeFilePath, "rb", conf.dataEncoding)
550+
self.__shellcodeFP = codecs.open(self.__shellcodeFilePath, "rb")
551551
self.shellcodeString = self.__shellcodeFP.read()
552552
self.__shellcodeFP.close()
553553

0 commit comments

Comments
 (0)