mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 09:57:38 +03:00 
			
		
		
		
	minor update for multithreaded mode
This commit is contained in:
		
							parent
							
								
									accac776fe
								
							
						
					
					
						commit
						ff96c537a9
					
				| 
						 | 
					@ -168,19 +168,10 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio
 | 
				
			||||||
        if forwardException:
 | 
					        if forwardException:
 | 
				
			||||||
            raise
 | 
					            raise
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    except (sqlmapConnectionException, sqlmapValueException), errMsg:
 | 
					    except Exception, errMsg:
 | 
				
			||||||
        print
 | 
					        print
 | 
				
			||||||
        kb.threadException = True
 | 
					        kb.threadException = True
 | 
				
			||||||
        logger.error("thread %s: %s" % (threading.currentThread().getName(), errMsg))
 | 
					        logger.error("thread %s: '%s'" % (threading.currentThread().getName(), errMsg))
 | 
				
			||||||
 | 
					 | 
				
			||||||
    except:
 | 
					 | 
				
			||||||
        from lib.core.common import unhandledExceptionMessage
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        print
 | 
					 | 
				
			||||||
        kb.threadException = True
 | 
					 | 
				
			||||||
        errMsg = unhandledExceptionMessage()
 | 
					 | 
				
			||||||
        logger.error("thread %s: %s" % (threading.currentThread().getName(), errMsg))
 | 
					 | 
				
			||||||
        traceback.print_exc()
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    finally:
 | 
					    finally:
 | 
				
			||||||
        kb.multiThreadMode = False
 | 
					        kb.multiThreadMode = False
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user