 |
|
 |
Hi!
Is there any provision that detects remote IP when the remote computer tries to connect to host computer? In other words, I want to know how to code that detects remote computer that tries to open any port on my PC. Provide some idea or code.
Thank you.
Abhay
|
|
|
|
 |
|
 |
I don't find include afxwin.h, afxext.h, afxdisp.h, afxdtctl.h, afxcmn.h, afxsock.h !Please help me!!!
|
|
|
|
 |
|
 |
I've recreated the program "A simple windows port scanner"
hopefully for the better.
http://www.codeproject.com/useritems/pcscan2.asp
--ice911
(just small improvements to a good program)
|
|
|
|
 |
|
 |
the loopback address doesn't seem to work on your port scanner. I'll look around and see what i can find to fix it.
tip - instead of saying "connection accepted" for connections that are open maybe you should say "port is open" or "port is listening".
--ice911
(it is not bad though, i was going to do something like this)
|
|
|
|
 |
|
 |
It works just use 127.0.0.1 Not all TCP services will listen on the loopback address! I used "Connection accepted" because that is what pscan is doing. I use CSocket::connect() to test the port. If the connection is accepted then the port is "open".
Starting scan
127.0.0.1:135 Connection accepted
Finished scan
Rod
|
|
|
|
 |
|
 |
its just not working for me. I probably have some kind of program up that is stoping it from working correctly. Or can you even scan the loopback? I don't know.
--ice911
|
|
|
|
 |
|
 |
The end result looks pretty, but I think the article was skimped over a tad. Perhaps this is the first draft?
The code is all very well, but explaining the structure, problems faced and overcome would add alot to this article, and could potentially aid other developers more then the actual code!
I'll reserve voting on it until I see if this article is going to be finished.
Cheers,
Paul
/**********************************
Paul Evans, Dorset, UK.
Personal Homepage "EnjoySoftware" @
http://www.enjoysoftware.co.uk/
**********************************/
|
|
|
|
 |
|
 |
Downloadable exe would be good too.
There is a difference in knowing the path and walking the path.
|
|
|
|
 |
|
 |
nmap
--
-Blake (com/bcdev/blake)
|
|
|
|
 |
|
|
 |
|
 |
http://www.codeproject.com/useritems/DfsmvPorty.asp now thats what we call an article. Rod please take note.
Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
|
|
|
|
 |
|
|
 |