Menu

Need help with Telus internet access

2002-12-17
2012-09-26
  • Curtis Sutter

    Curtis Sutter - 2002-12-17

    I have three computers and only 2 ip slots avib.  A router is out because of the price.  I am trying to make a program that would switch which computer is allowed internet access.  My current code is as follows...

    // Start Code
    #include <iostream>
    #include <stdlib.h>
    #include <windows.h>
    using namespace std;

    int main()
    {
      system("CLS");
      cout << "Please copy the MAC adress of your choice\n\n"
           << "Carrie's Computer:  Blah\n"
           << "Desktop Computer:   Blah\n"
           << "Laptop Computer:    Blah\n";
      system("PAUSE");
      WinExec("C:\\Program Files\\Internet Explorer\\iexplore.exe http://oca.ab.hsia.telus.net", SW_SHOW);
      cout << "\nHitting anykey will release and renew your ip address giving"
           << "\nyou internet access in about ";
      system("ECHO 1 min.  Please be patient && PAUSE > NUL");
      system("ipconfig /release");
      system("ipconfig /renew"); 
    }
    // End Prog

    As you can see, it displays my MAC address' of the three computers, and alows you time to copy one to change.  It then opens up the admin page where you have to type a userid and password.  I would like to be able to include the userid and password in my code so my sister can use this program, even better, have it change to registered MAC address of my choice.  When this is done I hope to convert it to Win32 API and have a list box of the MAC's to choose from.  And it would register it.  Any help in how to set the userid and password in the telus site and then hit Login (without actually doing it) would be much apprieciated.  Thank you for any help recieved.

    Curtis

     
    • Curtis Sutter

      Curtis Sutter - 2002-12-21

      No one feels like hacking a telus site?  ;)

      Curtis

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.