View Full Version : not sure where to start
08-10-2007, 12:20 AM
here is what i want to do:
when my flash drive is inserted, i want it to email me with the ip address of my computer
what i need to know:
what's the easiest language/combo of languages to achieve this?
is there a way i can store this program on the flash drive itself to do this?
is this even possible?
thanks guys, anxious to get started on this project
08-10-2007, 12:47 AM
The problem will be starting the program when you insert your flash drive. That will depend on the target OS but I know in XP it is almost virtually impossible to do. There is however a certain type of flash drive, I forget the type that you can do it with, if memory serves. But your run of the mill flash drives won't let you automatically start a program when it is inserted.
It is still possible to do the rest of what you want though. The best way to do it would be to have your program send the information to a page on a web server some where and it would take the information in and email it to you.
08-10-2007, 01:33 AM
ah i see...
would it really be running a program or can i just execute code? (might be a dumb question, im sorry)
this is kinda something that i need to happen "behind the scenes" like:
i insert the flash drive.. once detected, itll somehow contact a web server or ftp server or email my ip address to my email.. all without the user knowing
*i assure you this isn't for malicious intent*
what i want it to do is if i misplace the flash drive and someone else uses it, id like to know what ip address it is being used on without the *assumed*thief knowing theyve been caught ;)
or another way i thought of doin it would be to write the ip or some other significant detail about the pc to a local file on usb detection and once an internet connection is available, it would upload that txt file to my web server or ftp. this possible?
where should i start?
08-10-2007, 05:23 PM
Recording the IP is going to be easy. The trouble will be getting the program to load upon inserting the jump drive. Windows doesn't treat it like a CD where it will read the autorun.inf file on the disk and run the program specified.
And then you run into issues with other platforms, for example Linux doesn't autorun anything when you mount the jump drive.
I'm not trying to rain on your parade here. I tried to do a similar thing a little more than a year ago and I couldn't find a reliable way to start a program upon inserting the jump drive without having to modify the OS on the computer first.
If it is data protection you are worried about, I'd suggest just encrypting the files on your jump drive.
08-10-2007, 05:44 PM
well how bout this.
is there a way when they insert the drive or go to access it with "My Computer' that it will launch a prompt that says something like "The owner of this flash media requires authentication" and when you click ok it sends the ip or somethin to a web server or local file?
it's not really for data encrypting or anything, more of a flash drive locator or tracker.
but i get what you're saying about the autorunning being a problem... not sure how to go about gettin it to work without user intervention
08-10-2007, 10:05 PM
Well if there is a way to do it, I'm not aware of it. (Not to say it is impossible) But there are fairly obvious security concerns with unauthorized code execution (which I'm sure you realize) and that is why doing what you want is difficult.
Sorry I can't be more help. If you do figure out a way though, I'd love to hear about it.
08-14-2007, 02:24 AM
Password all the files they need and have a program that gave them the password after they sent their IP address or whatever to your server or whatever. You could do any programming language (Java, C#, C/C++, Basic, et cetera) for the 'password-giver' and you could use any freeware folder locking program to lock the folders.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.