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

Skip to content

Commit 60a1b48

Browse files
committed
Major bug fix for --os-pwn
1 parent 73ececd commit 60a1b48

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

plugins/dbms/mysql/takeover.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,6 @@ def udfSetRemotePath(self):
7070
self.__datadir = "."
7171
self.__datadir = ntToPosixSlashes(normalizePath(self.__datadir))
7272

73-
if re.search("^[\w]\:[\/\\\\]+", self.__datadir, re.I):
74-
kb.os = "Windows"
75-
else:
76-
kb.os = "Linux"
77-
7873
# The DLL can be in either C:\WINDOWS, C:\WINDOWS\system,
7974
# C:\WINDOWS\system32, @@basedir\bin or @@datadir
8075
self.udfRemoteFile = "%s/%s.%s" % (self.__datadir, self.udfSharedLibName, self.udfSharedLibExt)

0 commit comments

Comments
 (0)