mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +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
|
# Reference: http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_basedir
|
||||||
self.__basedir = unArrayizeValue(inject.getValue("SELECT @@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)
|
Backend.setOs(OS.WINDOWS)
|
||||||
else:
|
else:
|
||||||
Backend.setOs(OS.LINUX)
|
Backend.setOs(OS.LINUX)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user