Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Nov 2003
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

    not sure where to start

    hey everyone,

    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
    i'm always learning

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    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.
    OracleGuy

  • #3
    New Coder
    Join Date
    Nov 2003
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?
    i'm always learning

  • #4
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    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.
    OracleGuy

  • #5
    New Coder
    Join Date
    Nov 2003
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    i'm always learning

  • #6
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    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.
    OracleGuy

  • #7
    New Coder mentalhorse's Avatar
    Join Date
    Jul 2005
    Location
    Duanesburg, NY
    Posts
    89
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You could:
    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.
    Why is a raven like a writing desk?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •