mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-26 05:31:04 +03:00 
			
		
		
		
	Update for an Issue #287 regarding read_output returning values
This commit is contained in:
		
							parent
							
								
									76eb894bc7
								
							
						
					
					
						commit
						b78b56d782
					
				|  | @ -54,14 +54,13 @@ class XMLRPCServer: | ||||||
|         return kb.get("busyFlag") |         return kb.get("busyFlag") | ||||||
| 
 | 
 | ||||||
|     def read_output(self): |     def read_output(self): | ||||||
|         retval = [] |         sys.stdout.seek(0) | ||||||
|         for _ in ("stdout", "stderr"): |         retval = sys.stdout.read() | ||||||
|             stream = getattr(sys, _) |         sys.stdout.truncate(0) | ||||||
|             stream.seek(0) | 
 | ||||||
|             retval.append(stream.read()) |         if not retval and not self.is_busy(): | ||||||
|             stream.truncate(0) |  | ||||||
|         if not filter(None, retval) and not self.is_busy(): |  | ||||||
|             retval = None |             retval = None | ||||||
|  | 
 | ||||||
|         return retval |         return retval | ||||||
| 
 | 
 | ||||||
|     def run(self): |     def run(self): | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user