mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-31 16:07:55 +03:00 
			
		
		
		
	Potential patch for #4367
This commit is contained in:
		
							parent
							
								
									a2a73b88ea
								
							
						
					
					
						commit
						21cc6e3c99
					
				|  | @ -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.10.1" | VERSION = "1.4.10.2" | ||||||
| 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) | ||||||
|  |  | ||||||
|  | @ -1147,6 +1147,12 @@ def dictionaryAttack(attack_dict): | ||||||
|                     warnMsg = "user aborted during dictionary-based attack phase (Ctrl+C was pressed)" |                     warnMsg = "user aborted during dictionary-based attack phase (Ctrl+C was pressed)" | ||||||
|                     logger.warn(warnMsg) |                     logger.warn(warnMsg) | ||||||
| 
 | 
 | ||||||
|  |                 finally: | ||||||
|  |                     if _multiprocessing: | ||||||
|  |                         gc.enable() | ||||||
|  | 
 | ||||||
|  |                     # NOTE: https://github.com/sqlmapproject/sqlmap/issues/4367 | ||||||
|  |                     # NOTE: https://dzone.com/articles/python-101-creating-multiple-processes | ||||||
|                     for process in processes: |                     for process in processes: | ||||||
|                         try: |                         try: | ||||||
|                             process.terminate() |                             process.terminate() | ||||||
|  | @ -1154,10 +1160,6 @@ def dictionaryAttack(attack_dict): | ||||||
|                         except (OSError, AttributeError): |                         except (OSError, AttributeError): | ||||||
|                             pass |                             pass | ||||||
| 
 | 
 | ||||||
|                 finally: |  | ||||||
|                     if _multiprocessing: |  | ||||||
|                         gc.enable() |  | ||||||
| 
 |  | ||||||
|                     if retVal: |                     if retVal: | ||||||
|                         if conf.hashDB: |                         if conf.hashDB: | ||||||
|                             conf.hashDB.beginTransaction() |                             conf.hashDB.beginTransaction() | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user