• Advertisement
Sign in to follow this  

Internet connection question

This topic is 4874 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Can anyone give me some sample c/c++ code of how to determine if my computer is on-line? and if it's on-line what page( by ip maybe? ) it's currently visiting? Thanx in advance!

Share this post


Link to post
Share on other sites
Advertisement
That will be an operating system dependant question (read: what OS are you using?) and has nothing to do with C/C++ in general terms.
In Windows you will need to dig into the Win32 API, maybe you will find the information on MSDN.

Share this post


Link to post
Share on other sites
actually yes.
i am trying to get some hacking background for my resume.(:-p)

i am asking this question for winXP so yes i need some win32 code but i really can't seem to find info into the massive msdn lib.
It would be great I was given some tips.

I have already created a Keylogger with directinput( which means that not only it's not platform independent but also it's not api independent )

If anyone wants to have a look I can send a zipped file with source and executable.

I AM TRYING THESE THINGS FOR FUN... just to know.

Share this post


Link to post
Share on other sites
You could always try something simple like pinging Google.

For finding out where someone's browsing, that would be harder. One way would to write a fake network driver that would be basically a wrapper for the real driver, but watch what the user sends when they open a connection to a computer on port 80. If they were to send something like:

GET /some/file.html HTTP/1.1
HOST: www.example.com


You would know they were visiting www.example.com/some/file.html

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
If you want to get at what page the browser is displaying, if the target user is using IE then I'd imagine the easiest way to get this is to exploit the IWebBrowser2 interface under COM. This interface can allow you to do many things with IE, some for good purposes, yet many can be used for devious purposes as well.

=Nervo

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement