mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 01:47:37 +03:00 
			
		
		
		
	Fixes #4131
This commit is contained in:
		
							parent
							
								
									41bdb93655
								
							
						
					
					
						commit
						111201978c
					
				| 
						 | 
					@ -18,7 +18,7 @@ from lib.core.enums import OS
 | 
				
			||||||
from thirdparty.six import unichr as _unichr
 | 
					from thirdparty.six import unichr as _unichr
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
 | 
					# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
 | 
				
			||||||
VERSION = "1.4.3.4"
 | 
					VERSION = "1.4.3.5"
 | 
				
			||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
 | 
					TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
 | 
				
			||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
 | 
					TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
 | 
				
			||||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
 | 
					VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -450,7 +450,7 @@ class Users(object):
 | 
				
			||||||
                            # In PostgreSQL we get 1 if the privilege is
 | 
					                            # In PostgreSQL we get 1 if the privilege is
 | 
				
			||||||
                            # True, 0 otherwise
 | 
					                            # True, 0 otherwise
 | 
				
			||||||
                            if Backend.isDbms(DBMS.PGSQL) and getUnicode(privilege).isdigit():
 | 
					                            if Backend.isDbms(DBMS.PGSQL) and getUnicode(privilege).isdigit():
 | 
				
			||||||
                                if int(privilege) == 1:
 | 
					                                if int(privilege) == 1 and count in PGSQL_PRIVS:
 | 
				
			||||||
                                    privileges.add(PGSQL_PRIVS[count])
 | 
					                                    privileges.add(PGSQL_PRIVS[count])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                            # In MySQL >= 5.0 and Oracle we get the list
 | 
					                            # In MySQL >= 5.0 and Oracle we get the list
 | 
				
			||||||
| 
						 | 
					@ -585,10 +585,8 @@ class Users(object):
 | 
				
			||||||
                        i = 1
 | 
					                        i = 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        for priv in privs:
 | 
					                        for priv in privs:
 | 
				
			||||||
                            if priv.isdigit() and int(priv) == 1:
 | 
					                            if priv.isdigit() and int(priv) == 1 and i in PGSQL_PRIVS:
 | 
				
			||||||
                                for position, pgsqlPriv in PGSQL_PRIVS.items():
 | 
					                                privileges.add(PGSQL_PRIVS[i])
 | 
				
			||||||
                                    if position == i:
 | 
					 | 
				
			||||||
                                        privileges.add(pgsqlPriv)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
                            i += 1
 | 
					                            i += 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user