Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   Can ANYONE Do this? (http://www.programmingforums.org/showthread.php?t=15268)

tehpwnengine Feb 27th, 2008 7:01 PM

Can ANYONE Do this?
 
Hello,
My group has been experimenting with mutiple codes and languages to try to find something that works. Seems that everything has failed. As a last resort, im asking if anyone knows how to solve our dilema on the forums. Well here goes.
We need a program that is loaded onto an electronic, like a iPod, and when the electronic is inserted, the program sends the IP address of the computer that you just plugged it into, to a email, or a general server. So if ANYONE knows anything, please post whatever you can... ill be forever grateful.

Thank you for your time.

Narue Feb 27th, 2008 7:18 PM

Re: Can ANYONE Do this?
 
And you want this, why?

Canis Major Feb 27th, 2008 7:36 PM

Re: Can ANYONE Do this?
 
I'm sorry for being paranoid, but why does this sound like a potential prototype for a virus which sends IP addresses to someone?

andro Feb 27th, 2008 7:50 PM

Re: Can ANYONE Do this?
 
Sounds more like a track my stolen iPod type of thing to me :p

lectricpharaoh Feb 27th, 2008 9:14 PM

Re: Can ANYONE Do this?
 
On a Windows machine, when you connect a device that appears as a 'mass storage device' to the computer, such as a flash disk, media player, phone, etc, it will automatically run software stored on the device, given two conditions. First is that Autoplay is enabled for the logical drive in question, ie the drive letter. This may not be the same assignment between sessions, if the user connects different devices, and is unlikely to be the same between computers. The second is that the device needs an autorun.inf file that specifies what program(s) to run.

This means that it's a simple matter to do this on a Windows-based machine if Autoplay is enabled (it's enabled by default, and many novice users don't change this). Once your program is executed, it can do pretty much whatever it wants, including obtaining the local IP address(es) assigned to the computer. This might be different from the external IP address, if the machine is behind a router, but you can determine that easily enough by parsing the returned data from sites such as whatismyip.org. Alternatively, you can query the router if this is supported, but a direct method probably isn't on many home routers, which leaves parsing a mess of generated HTML for the address, and it will be different for each router model.

Once you have the IP address(es) you need, it's a simple matter to send the data to your destination.

Ancient Dragon Feb 27th, 2008 11:03 PM

Re: Can ANYONE Do this?
 
I worked for several years on Symbols barcode scanner wireless devices. The IP address is stored in the registry. Have no idea how it works on IPOD, possibly similar.

tehpwnengine Mar 3rd, 2008 4:37 PM

Re: Can ANYONE Do this?
 
Well Narue and Canis Major, definetly not a virus.. It's a huge @$$ business programming project that we've been working for some time now. But we cant get a working code. We thought about the autorun.inf but we dont have enough programming experiance to make the program work. Thats our big dilema. And yes, it is a stolen ipod kind of thing andro :). So if anyone has anything, or any idea in terms of code or advice ... yaay please post

Wizard1988 Mar 3rd, 2008 4:59 PM

Re: Can ANYONE Do this?
 
This is pretty complicated. The autorun.ini method has major flaws to it. First you must rely on autorun being enabled, and I don't think it would work across different platforms. Chances are that this will be "almost" impossible for you to do. I don't think that that you will be able to solve this problem through software, you would most likely have to modify the hardware itself..

OpenLoop Mar 3rd, 2008 5:17 PM

Re: Can ANYONE Do this?
 
Quote:

Originally Posted by tehpwnengine (Post 141958)
We thought about the autorun.inf but we dont have enough programming experiance to make the program work.

I don't think it takes much experience:
:

  1. [autorun]
  2. Open=myprogram.exe
  3. Icon=myprogram.exe,0


Benoit Mar 3rd, 2008 5:26 PM

Re: Can ANYONE Do this?
 
What is the nature of this huge buttoxed business project?

I made a keylogger that uses autorun after reading a book by Mitnick, only small problem is that windows asks the user manually if they should run the program.


All times are GMT -5. The time now is 3:53 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC