Thread: Port Scanner

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    24

    Port Scanner

    I have decided i would like to try and make a portscanner using winsock. I have a little experience with network programming, but only basic sending and recieving messages. If i understand correctly could i check for a ports status by just simply trying to connect to it, if i get an error- it's closed?
    Is this how 'good' portscanners work? or do they do something far more intelligent than i could ever imagine?
    i look forward to any responses, hints and tips you can give me.

    thanks

  2. #2
    Registered User
    Join Date
    Sep 2004
    Posts
    197
    Thats how the simple ones work, simply trying to connect, and seeing if an error occurs or not. More advanced ones may use whats called half open scans. Check out http://www.insecure.org for more info. Its also the home page of Nmap, which happens to be a popular port scanner.

  3. #3
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    yeah mean the best port scanner

    another important thing you will need is threads or multi-process to make the scanner as fast as possible, because if you're planning to connect each port and wait for it to timeout, it will take you forever.
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A more advanced port scanner
    By fssp in forum C Programming
    Replies: 6
    Last Post: 03-23-2009, 01:14 AM
  2. FTP program
    By jakemott in forum Linux Programming
    Replies: 14
    Last Post: 10-06-2008, 01:58 PM
  3. My TCP Port Scanner in C
    By billy786 in forum Networking/Device Communication
    Replies: 5
    Last Post: 06-28-2008, 07:12 PM
  4. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  5. Basic port scanner code .. pls help ???
    By intruder in forum C Programming
    Replies: 18
    Last Post: 03-13-2003, 08:47 AM