Skip to content

shubhamk008/IP-Quit-Trigger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IP-Quit-Trigger

📦 Package(s) necessary:

  • fping: Click here to visit fping's website.

🔧 Usage:

Arguments are IPv4 address fields. To test your IP, check your current IP address.
Then provide arguments as the starting & ending IP to scan. These boundary values allow multiple IPs to be pinged & monitored. Say your connected device has the IP 192.168.0.103 . You could test all devices of interest having IPs ranging from 192.168.0.100 to 192.168.0.110 like this:

sh ipquit.sh 192.168.0 100 110

Range: sh ipquit.sh [0-255].[0-255].[0-255] [0-255] [0-255]

📜 Instructions:

  1. Test devices connected to network by running the script. They shall show up in the 'Active IPs' section.
  2. Connect a new device to the network. The corresponding IP address will now show up in the 'Active IPs' section.
  3. Disconnect the new device from the network and run the script again.
  4. You will now see that device's IP address & MAC address are listed in the 'Trigger IPs' & 'Trigger MACs' section.
  5. Edit the commented portion of the script to take desired action over those IP addresses & MAC addresses.
  6. Rerun the script and now the disconneted device will disappear from all sections.

🚩 Example:

$ sh ipquit.sh 192.168.0 100 110

This will inspect IPs from 192.168.0 to 192.168.0.110:

192.168.0.100
192.168.0.101
192.168.0.102
192.168.0.103
192.168.0.104
192.168.0.105
192.168.0.106
192.168.0.107
192.168.0.108
192.168.0.109
192.168.0.110

🔎 Screenshots:

Alttext Alttext Alttext Alttext