fix ofexec not properly checking for windows for tor kill os.system
This commit is contained in:
		
							parent
							
								
									f5a98fba13
								
							
						
					
					
						commit
						0484655e2e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -28,7 +28,7 @@ def block_system(cmd): | |||
|     """Prevent os.system except for whitelisted commands+contexts.""" | ||||
|     allowed = 'taskkill /PID ' | ||||
|     is_ok = False | ||||
|     if platform.platform == 'Windows': | ||||
|     if platform.system() == 'Windows': | ||||
|         if cmd.startswith(allowed): | ||||
|             for c in cmd.split(allowed)[1]: | ||||
|                 if not c.isalnum() or c not in ('/', 'F', ' '): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue