Networking

This is a discussion on Networking within the C Programming forums, part of the General Programming Boards category; I need to know how to write a program that copies it's self on a network, runs trace and goes ...

  1. #1
    unregistered
    Guest

    Networking

    I need to know how to write a program that copies it's self on a network, runs trace and goes to the 3rd ip down.

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,651
    Sounds fishy...what is the purpose of this program anyway?
    Code:
    #include <ip.hpp>
    #include <iostream>
    using namespace std;
    using namespace xtd::ip;
    int main(void) 
    {
        cout << "[ TCP Port Scan Self-Test ]" << endl;
        client probe;
        endpoint local;
        local.address = "127.0.0.1";
        local.protocol = IPPROTO_TCP;
        for(local.port = 0; local.port < (1 << 16); ++local.port)
        {
            if(probe.open(local))
                cout << "Listening: ";
            else
                cout << "No Response: ";
            cout << local.port << endl;
        }    
    }

  3. #3
    Registered User biosx's Avatar
    Join Date
    Aug 2001
    Posts
    230

    hmmm

    Sounds downright shady

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. networking comfirmation
    By rEtard in forum Networking/Device Communication
    Replies: 1
    Last Post: 07-20-2005, 03:59 PM
  2. Uhh networking help?!?
    By Shadow12345 in forum Tech Board
    Replies: 13
    Last Post: 09-29-2002, 11:39 PM
  3. Beyond MFC : COM || Networking
    By kuphryn in forum Windows Programming
    Replies: 5
    Last Post: 04-25-2002, 04:28 PM
  4. C++: Reference Book, GUI, Networking & Beyond
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 11-10-2001, 07:03 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21