Sofiane Senoune
Sofiane Senoune

Reputation: 31

Usb key insertion detector on Windows

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

Answers (1)

jklmnop
jklmnop

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

Related Questions