From 60a1b48194222e52c8ad124863315776a6f97993 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Sun, 17 Oct 2010 20:44:16 +0000 Subject: [PATCH] Major bug fix for --os-pwn --- plugins/dbms/mysql/takeover.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/plugins/dbms/mysql/takeover.py b/plugins/dbms/mysql/takeover.py index 860a6c2cd..bd4d80d60 100644 --- a/plugins/dbms/mysql/takeover.py +++ b/plugins/dbms/mysql/takeover.py @@ -70,11 +70,6 @@ class Takeover(GenericTakeover): self.__datadir = "." self.__datadir = ntToPosixSlashes(normalizePath(self.__datadir)) - if re.search("^[\w]\:[\/\\\\]+", self.__datadir, re.I): - kb.os = "Windows" - else: - kb.os = "Linux" - # The DLL can be in either C:\WINDOWS, C:\WINDOWS\system, # C:\WINDOWS\system32, @@basedir\bin or @@datadir self.udfRemoteFile = "%s/%s.%s" % (self.__datadir, self.udfSharedLibName, self.udfSharedLibExt)