mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Minor patch
This commit is contained in:
parent
295b2f8603
commit
2beeb178fb
|
@ -42,7 +42,7 @@ class Takeover(GenericTakeover):
|
|||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_basedir
|
||||
self.__basedir = unArrayizeValue(inject.getValue("SELECT @@basedir"))
|
||||
|
||||
if re.search("^[\w]\:[\/\\\\]+", self.__basedir, re.I):
|
||||
if re.search("^[\w]\:[\/\\\\]+", (self.__basedir or ""), re.I):
|
||||
Backend.setOs(OS.WINDOWS)
|
||||
else:
|
||||
Backend.setOs(OS.LINUX)
|
||||
|
|
Loading…
Reference in New Issue
Block a user