mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 09:57:38 +03:00 
			
		
		
		
	Now can work 'cause isWindowsPath has been fixed, normalizePath called after ntToPosixSlashes
This commit is contained in:
		
							parent
							
								
									1f2a1bb24c
								
							
						
					
					
						commit
						42f53f380f
					
				| 
						 | 
				
			
			@ -498,7 +498,7 @@ class MySQLMap(Fingerprint, Enumeration, Filesystem, Miscellaneous, Takeover):
 | 
			
		|||
 | 
			
		||||
                    # Reference: http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_basedir
 | 
			
		||||
                    self.__basedir = inject.getValue("SELECT @@basedir")
 | 
			
		||||
                    self.__basedir = ntToPosixSlashes(normalizePath(self.__basedir))
 | 
			
		||||
                    self.__basedir = normalizePath(ntToPosixSlashes(self.__basedir))
 | 
			
		||||
 | 
			
		||||
                    if re.search("^[\w]\:[\/\\\\]+", self.__basedir, re.I):
 | 
			
		||||
                        kb.os = "Windows"
 | 
			
		||||
| 
						 | 
				
			
			@ -519,7 +519,7 @@ class MySQLMap(Fingerprint, Enumeration, Filesystem, Miscellaneous, Takeover):
 | 
			
		|||
                # NOTE: specifying the relative path as './udf.dll'
 | 
			
		||||
                # saves in @@datadir on both MySQL 4.1 and MySQL 5.0
 | 
			
		||||
                self.__datadir = "."
 | 
			
		||||
                self.__datadir = ntToPosixSlashes(normalizePath(self.__datadir))
 | 
			
		||||
                self.__datadir = normalizePath(ntToPosixSlashes(self.__datadir))
 | 
			
		||||
 | 
			
		||||
                if re.search("[\w]\:\/", self.__datadir, re.I):
 | 
			
		||||
                    kb.os = "Windows"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user