Jump to content

appreciate a review

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
Deathcry

Deathcry

    Learning Programmer

  • Members
  • PipPipPip
  • 68 posts
made a few programs and would like to share. :)

// net send spammer

#include <cstdlib>

#include <iostream>


using namespace std;


int main(int argc, char *argv[])

{

    string message, comp_name, sendstring;

    char buffer[50];

    int i, n;

    

    cout << "Enter a computer name, ip, or * to send: ";

    cin >> comp_name;

    

    cout << "\nEnter message to send: ";

    cin >> buffer, 50;

    message = buffer;

    

    cout << "\nLastly enter number of times to send: ";

    cin >> i;

    

    sendstring = "msg " + comp_name + " " + message;

    

    system("net start messenger");

    for (n = 1; n <= i; n++)

    system(sendstring.c_str());

    

    

    system("PAUSE");

    return EXIT_SUCCESS;

}



//proxy and ping program

#include <iostream>

#include <fstream>

using namespace std;


int main () {


    int i;

    double pinged;

    string pingstuff, sendstring, info;

    char buffer[50];

    system("TITLE Unforgiven Production");

    system("CLS");    

    cout << "Welcome to ProxyPing v 1.1\n\n"; 

    cout << "1:change proxy to one of our proxys\n2:Ping website\n";

    cout << "ENTER A CHOICE: ";

    cin >> i;

    if (i == 1) {

          system("proxycfg -p 125.190.251.103:8080");

          cout << "proxy loaded press any key to load another\n";

          system("PAUSE");

          system("proxycfg -p 218.135.68.67:8080");

          cout << "proxy loaded press any key to load another\n";

          system("PAUSE");

          cout << "proxy loaded press any key to load another\n";

          system("PAUSE");

          system("proxycfg -p 202.175.95.171:8080");

          cout << "proxy loaded press any key to load another\n";

          system("PAUSE");

          system("proxycfg -p 124.53.186.14:8080");

          cout << "proxy loaded press any key to load another\n";

          system("PAUSE");

          system("proxycfg -p 203.160.1.57:80");

          cout << "proxy loaded press any key to load another\n";

          system("PAUSE");

          system("proxycfg -p 203.145.131.158:8080");

          cout << "proxy loaded press any key to load another\n";

          system("PAUSE");

          system("proxycfg -p 212.50.138.204:80");

          cout << "proxy loaded press any key to load another\n";

          system("PAUSE");

          system("proxycfg -p 70.161.39.114:7212");

          cout << "proxy loaded press any key to load another\n";

          system("PAUSE");

          system("proxycfg -p 24.4.236.198:7212");

          cout << "proxy loaded press any key to load another\n";

          cout << "\nSorry no more proxies yet!\n";

          system("PAUSE");

          }

    else if (i == 2){

    cout << "Enter Website (ex. Myspace.com): ";

    cin >> buffer, 50;

    pingstuff = buffer;

    

    sendstring = "ping " + pingstuff;

    info = system(sendstring.c_str());

    cout << info;

}

    system("PAUSE");

    return EXIT_SUCCESS;

}


was just bored today in school. rate please :)

#2
Void

Void

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 411 posts
Looks well coded, I'll give them a test and get back to you.
Void

#3
Deathcry

Deathcry

    Learning Programmer

  • Members
  • PipPipPip
  • 68 posts

Void said:

Looks well coded, I'll give them a test and get back to you.
thanks alot!
the code is with you

#4
taskiyu

taskiyu

    Newbie

  • Members
  • Pip
  • 3 posts
Deathcry ive heard about you on other forums!
your a god!