Reputation: 31
I am working on a project which consists primly on detect a usb intrusion and execute some code. So first i need to know how to detect this usb insertion using python 3.6. Thank you
Upvotes: 0
Views: 101
Reputation: 86
Perhaps something like this: https://github.com/Ming-Shu/How-to-detect-USB-plug-in-on-Windows-using-Python and already answered here for python specific: How to detect a new usb device is connected on python
On Linux, you would want to be monitoring the mount or devices partitions.
Upvotes: 0