Reduce timeout, add some alternatives for activating monitor mode
This commit is contained in:
		
							parent
							
								
									7a3622e8ef
								
							
						
					
					
						commit
						5af65b5f31
					
				
					 1 changed files with 11 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -15,13 +15,21 @@ then
 | 
			
		|||
fi
 | 
			
		||||
 | 
			
		||||
# Activate Monitor mode
 | 
			
		||||
trackerjacker --monitor-mode-on -i $adapter
 | 
			
		||||
#trackerjacker --monitor-mode-on -i $adapter
 | 
			
		||||
 | 
			
		||||
#ip link set $adapter down
 | 
			
		||||
#iw dev $adapter set monitor control
 | 
			
		||||
#ip link set $adapter up
 | 
			
		||||
 | 
			
		||||
# Run scan
 | 
			
		||||
timeout 60 trackerjacker -i $adapter --map
 | 
			
		||||
timeout 30 trackerjacker -i $adapter --map
 | 
			
		||||
 | 
			
		||||
# Deactivate Monitor mode
 | 
			
		||||
trackerjacker --monitor-mode-off -i $adapter
 | 
			
		||||
#trackerjacker --monitor-mode-off -i $adapter
 | 
			
		||||
 | 
			
		||||
#ip link set $adapter down
 | 
			
		||||
#iw dev $adapter set type managed
 | 
			
		||||
#ip link set $adapter up
 | 
			
		||||
 | 
			
		||||
# Test network & try to restart if it fails
 | 
			
		||||
for i in 1 2 3 4 5
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue