mirror of
				https://github.com/byReqz/conn.git
				synced 2025-11-04 05:11:31 +00:00 
			
		
		
		
	small fixes
- added shebang - added response if no options or arguments are delivered
This commit is contained in:
		
							
								
								
									
										11
									
								
								conn.sh
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								conn.sh
									
									
									
									
									
								
							@@ -1,9 +1,18 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
while [ ! -n "$1" ]; do
 | 
			
		||||
      echo "Usage: $0 (-m) <ip> (y/n)"
 | 
			
		||||
      echo "Options:"
 | 
			
		||||
      echo " -m/--multi -- test multiple ips / disable portscan"
 | 
			
		||||
      echo " -h/--help -- show help"
 | 
			
		||||
      exit
 | 
			
		||||
done
 | 
			
		||||
while [ ! -z "$1" ]; do
 | 
			
		||||
   if [[ "$1" == "--help" ]] || [[ "$1" == "-h" ]];then
 | 
			
		||||
      echo "Usage: $0 (-m) <ip> (y/n)"
 | 
			
		||||
      echo "Options:"
 | 
			
		||||
      echo " -m/--multi -- test multiple ips / disable portscan"
 | 
			
		||||
      printf " -h/--help -- show help"
 | 
			
		||||
      echo " -h/--help -- show help"
 | 
			
		||||
      exit
 | 
			
		||||
   elif [[ $1 == "-m" ]] || [[ "$1" == "--multi" ]];then
 | 
			
		||||
      echo "multi-ip mode, portscan disabled"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user