Skip to content
/ eyer Public

This is a bash script that allows you to monitor multiple files for modifications and receive notifications when changes occur. It uses the inotifywait command-line tool to track file system events and provide real-time monitoring capabilities.

Notifications You must be signed in to change notification settings

Hunt3r0x/eyer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

File Monitor Tool

The eyer.sh script is a bash script that monitors a file for modifications and sends a notification when the file is modified. The script takes several optional parameters:

  • -f: The path to the file(s) to monitor
  • -i: The interval (in seconds) between checks for modifications (default: 5)
  • -n: The ID of the notify tool service to use
  • -up: Specify the action to send the file when a file is updated
  • -filename: Specify the name of the file

Usage

To use the script, simply provide the path to the file(s) to monitor using the -f flag, and the ID of the notify service to use using the -n flag. You can also optionally specify the interval between checks for modifications using the -i flag, the action to perform when a file is updated using the -up flag -up ok, and the name of the file using the -filename flag.

To monitor one file

./eyer.sh -f /path/to/file -n notify-id -i 10

To monitor multiple files

./eyer.sh -f /path/to/file1 -f /path/to/file2 -f /path/to/file3 -n notify-id -i 10

To monitor files and send updated file to discord

./eyer.sh -f /path/to/file1 -f /path/to/file2 -f /path/to/file3 -n notify-id -i 10 -up ok -filename "subdomains-of-hackerone"

For more details on usage and available options, you can run the script with the -h or --help flag.

./eyer.sh --help

About

This is a bash script that allows you to monitor multiple files for modifications and receive notifications when changes occur. It uses the inotifywait command-line tool to track file system events and provide real-time monitoring capabilities.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages