A small bash script which uses USBRIP to parse sytem logs and alert user if suspicious devices have been connected to their computer via email. Meant to be used as a crontab.
Simply clone the shell script to a directory of your choosing and modify the $authDir
variable in the script to the auth.json file that you made with USBRip (more information can be found here). Also ensure you change [email protected]
and [email protected]
in the scrip to the email adress for the updates to be sent to and the email adress sending the messages
Additionally [email protected]
must be configured with your linux MTA. As of now, this script only supports sendmail
, meaning that if you use a different MTA such as PostFix
you must modify line 14 of the code to work with your MTA of choice. If you don't know what this means, you can easily configure your machine to work with this script by following this guide