Computing.Net > Forums > Programming > Jumpdrive home-made security

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Jumpdrive home-made security

Reply to Message Icon

Name: Pard
Date: August 2, 2008 at 16:24:27 Pacific
OS: Vista
CPU/Ram: 8g dual
Product: Dell XPS
Comment:

Hi, I am trying to build some form of program that will keep my jumpdrive secure. I know there are programs I can add to my drive that will do this for me, however I find it fun to do it myself and it isn't like the security is much of a deal as actually doing this.

What I have right now is a autorun.inf. It is very simple and states

[Autorun]
Open = G:\autonrun.exe


Autorun.exe is a batch file I converted. It is also rather simple and says:

@echo off

cls
start shutdown -r


So right now all it does is restart whatever PC I plug it into, that was how this got started by the way. What I want to do is add a password type program that asks for a password. If the password isn't entered correctly in 30 seconds it will open my autorun.exe and restart the PC

So, what do I do to run that password program? I was thinking an If...Than...Else... on VB, but I only took 1 semester of VB and that was a few months ago. I also am not very good with shell(), which is what I believe you have to use to open a file. I have VB and C#, a GUI is not a requirment, if it were to just pop-up in a command line that would be fine.

Thanks in advanced!



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: August 3, 2008 at 16:41:09 Pacific
Reply:

There are at least four VB's in play these days. You're going to have to specify which one.


0

Response Number 2
Name: Pard
Date: August 3, 2008 at 18:28:52 Pacific
Reply:

VB '05 Express Edition. That is one reason I am not doing so good with it I think, I used VB6 in school


0

Response Number 3
Name: klint
Date: August 4, 2008 at 04:39:26 Pacific
Reply:

This is not much of a security measure. An unauthorized user can simply avoid running your autorun by holding down the Shift key whilst inserting the USB drive.

In fact, I always do that whenever I insert a USB drive that's not my own, in case it's got an autorun with a virus on it.


0

Response Number 4
Name: tonysathre
Date: August 4, 2008 at 13:16:02 Pacific
Reply:

It's not a good idea to hardcore the drive letter either, because if that was plugged into my system, it would try to run autorun.exe from my raid array, and would fail.


0

Response Number 5
Name: Pard
Date: August 4, 2008 at 17:41:27 Pacific
Reply:

Yes, I know how to go around it... It is for fun really... My PC doesn't even try running autorun...


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Jumpdrive home-made security

Numerical order in batch/cmd www.computing.net/answers/programming/numerical-order-in-batchcmd/16931.html

batch script to upload to ftp www.computing.net/answers/programming/batch-script-to-upload-to-ftp/16987.html

Can't get file to work in for loop www.computing.net/answers/programming/cant-get-file-to-work-in-for-loop-/17103.html