Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Including headers
- // ---------------------------
- #include <iostream>
- #include <stdexcept>
- #include <cstdlib>
- #include <ctime>
- #include <string>
- #include <float.h>
- // ----------------------------
- #if _WIN32_WINNT < 0x0500
- #undef _WIN32_WINNT
- #define _WIN32_WINNT 0x0500
- #endif
- #include <windows.h>
- // ----------------------------
- using namespace std;
- class STC {
- public:
- void SetColor(int index)
- {
- /** This sets only one line to be colored **/
- SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), index);
- }
- void ResetColor()
- {
- /** This sets the line to normal ( reseting it ) **/
- SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 7);
- }
- };
- void waitingTime()
- {
- Sleep(300);
- cout << "\n Verifying";
- Sleep(1000);
- cout << ".";
- Sleep(1000);
- cout << ".";
- Sleep(1000);
- cout << ".\n";
- }
- void waitingTime_Confirming()
- {
- Sleep(800);
- cout << " Confirming";
- Sleep(500);
- cout << ".";
- Sleep(500);
- cout << ".";
- Sleep(500);
- cout << ".\n";
- }
- string getpassword( const string& prompt = "Password: " )
- {
- string result;
- // Set the console mode to no-echo, not-line-buffered input
- DWORD mode, count;
- HANDLE ih = GetStdHandle( STD_INPUT_HANDLE );
- HANDLE oh = GetStdHandle( STD_OUTPUT_HANDLE );
- if (!GetConsoleMode( ih, &mode ))
- throw runtime_error(
- "getpassword: You must be connected to a console to use this program.\n"
- );
- SetConsoleMode( ih, mode & ~(ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT) );
- // Get the password string
- WriteConsoleA( oh, prompt.c_str(), prompt.length(), &count, NULL );
- char c;
- while (ReadConsoleA( ih, &c, 1, &count, NULL) && (c != '\r') && (c != '\n'))
- {
- if (c == '\b')
- {
- if (result.length())
- {
- WriteConsoleA( oh, "\b \b", 3, &count, NULL );
- result.erase( result.end() -1 );
- }
- }
- else
- {
- WriteConsoleA( oh, "*", 1, &count, NULL );
- result.push_back( c );
- }
- }
- // Restore the console mode
- SetConsoleMode( ih, mode );
- return result;
- }
- string Options[8]{
- "exit", // 0
- "help", // 1
- "writeMessage", // 2
- "clear", // 3
- "./sudoAPT-upRank", // 4
- "AC-start", // 5
- "AC-help", // 6
- "logout" // 7
- };
- string selectOpt, selectOptADM;
- string writeMessage_str;
- string IGusernameChosen, IGusernameChosenLOG;
- string IGpassword = "qwERtY{[u7I0px(645@#)]}";
- string IGusernameDefault = "USWER";
- int age, ageminlimit = 14, agemaxlimit= 150;
- int passLevel = 0, permission = 1;
- int n = 1;
- int option = 0;
- int x;
- int y;
- int times = 900000000;
- float done = 0;
- int sleepy = 10;
- int main(int argc, char * argv[])
- {
- // Settings for the program
- ShowWindow( GetConsoleWindow(), SW_RESTORE );
- system("CLS");
- system("MODE 132, 50");
- system("TITLE FillInHack - Logging..");
- system("COLOR 07");
- STC textColor;
- time_t now = time(0);
- char* dt = ctime(&now);
- cout << "\n Enter your age: ";
- cin >> age;
- waitingTime();
- // Verifying the age to be in the max & min limit
- if(age >= ageminlimit && age <= agemaxlimit)
- {
- passLevel += 1; // changing the passLevel to 1
- } else
- {
- waitingTime_Confirming();
- cout << "\nSorry, your age is not in the limit..\nTry again later..";
- Sleep(200);
- system("PAUSE >nul");
- return 0;
- }
- switch(passLevel)
- {
- case 1:
- system("CLS");
- enterUsernameAgain:
- Sleep(300);
- cout << "\n Choose an username (8 characters minimum) : ";
- cin >> IGusernameChosen;
- if(IGusernameChosen.length() >= 8) passLevel = 2;
- else if(IGusernameChosen.length() < 8)
- {
- cout << "\n\n *Your username is under the 8 characters limit..*\nYours was: " << IGusernameChosen.length() << "\n\n";
- Sleep(200);
- goto enterUsernameAgain;
- }
- if(IGusernameChosen == "./default")
- {
- IGusernameChosen = IGusernameDefault;
- passLevel += 1;
- }
- case 2:
- Sleep(500);
- cout << "\n Enter the account below to login..\n\n";
- Sleep(500);
- cout << " Chosen Username: ";
- textColor.SetColor(5);
- cin >> IGusernameChosenLOG;
- textColor.ResetColor();
- Sleep(800);
- try {
- string password = getpassword( " Password: " );
- textColor.ResetColor();
- Sleep(700);
- if(IGusernameChosenLOG == IGusernameChosen && password == IGpassword)
- {
- waitingTime();
- Sleep(200);
- waitingTime_Confirming();
- Sleep(50);
- passLevel += 1;
- } else {
- waitingTime();
- Sleep(200);
- waitingTime_Confirming();
- Sleep(50);
- textColor.SetColor(4);
- cout << "\n\n Wrong password or username! ";
- textColor.ResetColor();
- cout << "Exiting program..";
- Sleep(800);
- system("PAUSE >nul");
- break;
- }
- }
- catch (exception& e)
- {
- cerr << e.what();
- }
- case 3:
- system("CLS");
- system("TITLE FillInHack");
- Sleep(2000);
- textColor.SetColor(2);
- cout << "\n Welcome, ";
- textColor.SetColor(5);
- cout << IGusernameChosen;
- textColor.SetColor(2);
- cout << " to FillInHack!\n";
- cout << " Login Time and Date: " << dt << "\n";
- textColor.ResetColor();
- Sleep(100);
- enterOption:
- selectOpt = "";
- // OPTION LINE
- textColor.SetColor(3);
- cout << "\n\nguest@user/";
- textColor.SetColor(5);
- cout << IGusernameChosen;
- textColor.SetColor(3);
- cout << "/home-$ ";
- textColor.ResetColor();
- cin >> selectOpt;
- // OPTIONS
- if(selectOpt == Options[1])
- {
- cout << "\n\n*--> This is a list of all commands that you can use: ";
- Sleep(800);
- textColor.SetColor(4);
- cout << "\n help ";
- Sleep(200);
- textColor.ResetColor();
- cout << "Shows you a list of all commands that you can use.";
- Sleep(500);
- textColor.SetColor(4);
- cout << "\n writeMessage ";
- Sleep(200);
- textColor.ResetColor();
- cout << "Write a message to display on your screen. ( NOT VALABILE YET )";
- Sleep(500);
- textColor.SetColor(4);
- cout << "\n exit ";
- Sleep(200);
- textColor.ResetColor();
- cout << "Exit the program.";
- Sleep(500);
- textColor.SetColor(4);
- cout << "\n clear ";
- Sleep(200);
- textColor.ResetColor();
- cout << "Clear the screen.";
- Sleep(100);
- goto enterOption;
- }
- if(selectOpt == Options[0])
- {
- textColor.SetColor(2);
- cout << "\n\nLogging off Date and Time: " << dt;
- textColor.ResetColor();
- system("PAUSE >nul| (echo Press any key to exit..)");
- Sleep(200);
- return 0;
- }
- if(selectOpt == Options[2])
- {
- cout << "\n I'n sorry but this option ";
- textColor.SetColor(4);
- cout << "is not available ";
- textColor.ResetColor();
- cout << "yet..";
- goto enterOption;
- }
- if(selectOpt == Options[3])
- {
- system("CLS");
- goto enterOption;
- }
- if(selectOpt == Options[4] && permission == 1)
- {
- try {
- string password = getpassword( " Password: " );
- if(password == IGpassword)
- {
- enterOptionADM:
- selectOptADM = "";
- // OPTION LINE
- textColor.SetColor(3);
- cout << "\n\nadmin@user/";
- textColor.SetColor(5);
- cout << IGusernameChosen;
- textColor.SetColor(3);
- cout << "/home-$ ";
- textColor.ResetColor();
- cin >> selectOptADM;
- // OPTIONS
- if(selectOptADM == Options[0])
- {
- textColor.SetColor(2);
- cout << "\n\nLogging off Date and Time: " << dt;
- textColor.ResetColor();
- system("PAUSE >nul| (echo Press any key to exit..)");
- Sleep(200);
- return 0;
- }
- if(selectOptADM == Options[1])
- {
- cout << "\n\n*--> This is a list of all commands that you can use: ";
- Sleep(800);
- textColor.SetColor(4);
- cout << "\n help ";
- Sleep(200);
- textColor.ResetColor();
- cout << "Shows you a list of all commands that you can use.";
- Sleep(500);
- textColor.SetColor(4);
- cout << "\n writeMessage ";
- Sleep(200);
- textColor.ResetColor();
- cout << "Write a message to display on your screen. ( NOT VALABILE YET )";
- Sleep(500);
- textColor.SetColor(4);
- cout << "\n exit ";
- Sleep(200);
- textColor.ResetColor();
- cout << "Exit the program.";
- Sleep(500);
- textColor.SetColor(4);
- cout << "\n clear ";
- Sleep(200);
- textColor.ResetColor();
- cout << "Clear the screen.";
- Sleep(500);
- textColor.SetColor(4);
- cout << "\n AC-start ";
- Sleep(200);
- textColor.ResetColor();
- cout << "Open the autoclicker hack.";
- Sleep(500);
- textColor.SetColor(4);
- cout << "\n AC-help ";
- Sleep(200);
- textColor.ResetColor();
- cout << "Show all commands available for autoclicker.";
- Sleep(100);
- goto enterOptionADM;
- }
- if(selectOptADM == Options[2])
- {
- cout << "\n I'n sorry but this option ";
- textColor.SetColor(4);
- cout << "is not available ";
- textColor.ResetColor();
- cout << "yet..";
- goto enterOptionADM;
- }
- if(selectOptADM == Options[3])
- {
- system("CLS");
- goto enterOptionADM;
- }
- if(selectOptADM == Options[4])
- {
- Sleep(200);
- cout << "\nYou're already admin..";
- goto enterOptionADM;
- }
- if(selectOptADM == Options[5])
- { /*
- // DISPLAY AUTO CLICKER
- cout << "\n\n\n ##############################\n";
- cout << " # ";
- textColor.SetColor(5);
- cout << "AUTO CLICKER";
- textColor.ResetColor();
- cout << " #\n";
- cout << " # by Fillinlak3 #\n";
- cout << " ##############################\n\n\n";
- // AUTO CLICKER PROGRAM BODY
- cout << " Starting in 5..." << endl;
- Sleep(1000);
- cout << " Starting in 4..." << endl;
- Sleep(1000);
- cout << " Starting in 3..." << endl;
- Sleep(1000);
- cout << " Starting in 2..." << endl;
- Sleep(1000);
- cout << " Starting in 1..." << endl;
- Sleep(40);
- PlaySound(TEXT("AC-starting.wav"), NULL, SND_SYNC);
- system("CLS");
- // DISPLAY WORKING AUTO CLICKER
- cout << "\n\n\n ##############################\n";
- cout << " # ";
- textColor.SetColor(5);
- cout << "AUTO CLICKER";
- textColor.ResetColor();
- cout << " #\n";
- cout << " # by Fillinlak3 #\n";
- cout << " ##############################\n\n\n";
- cout << " Auto Click working!";
- ShowWindow( GetConsoleWindow(), SW_HIDE );
- Sleep(170);
- // LOOP FOR CLICKING
- while (done <= times)
- {
- if(option == 1) // IF THE USER WANT TO EXIT
- {
- system("PAUSE >nul| (echo Press any key to close the autoclicker)");
- done = 0;
- Sleep(800);
- goto enterOptionADM;
- } // IF THE USER WANTS TO EXIT PRORGAM
- startagain:
- Sleep(sleepy);
- mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0);
- mouse_event(MOUSEEVENTF_LEFTUP, x, y, 0, 0);
- // THIS TWO MAKES CLICKING FOREVER
- done++;
- times++;
- // TO STOP CLICKING OR EXITING THE PROGRAM
- if(GetAsyncKeyState(VK_ESCAPE)) // IF YOU PRESS ESC
- {
- ShowWindow( GetConsoleWindow(), SW_RESTORE );
- system("CLS");
- // DISPLAY
- cout << "\n\n\n ##############################\n";
- cout << " # ";
- textColor.SetColor(5);
- cout << "AUTO CLICKER";
- textColor.ResetColor();
- cout << " #\n";
- cout << " # by Fillinlak3 #\n";
- cout << " ##############################\n\n\n";
- cout << " Auto Click paused!";
- Sleep(170);
- cout << "\n\n The clicker have done: " << done << " clicks in total.\n";
- cout << "\n *--> You have paused the auto clicker. To start the auto clicker again press SHIFT + MIDDLE MOUSE BUTTON and to exit press SHIFT + CONTROL";
- while(true)
- {
- if(GetAsyncKeyState(VK_SHIFT) && GetAsyncKeyState(VK_MBUTTON))
- { // STARTING AGAIN THE AUTO CLICKER
- system("CLS");
- // DISPLAY AUTO CLICKER
- cout << "\n\n\n ##############################\n";
- cout << " # ";
- textColor.SetColor(5);
- cout << "AUTO CLICKER";
- textColor.ResetColor();
- cout << " #\n";
- cout << " # by Fillinlak3 #\n";
- cout << " ##############################\n\n\n";
- // AUTO CLICKER PROGRAM BODY
- Sleep(40);
- cout << " Starting in 5..." << endl;
- Sleep(1000);
- cout << " Starting in 4..." << endl;
- Sleep(1000);
- cout << " Starting in 3..." << endl;
- Sleep(1000);
- cout << " Starting in 2..." << endl;
- Sleep(1000);
- cout << " Starting in 1..." << endl;
- ShowWindow( GetConsoleWindow(), SW_RESTORE );
- Sleep(40);
- PlaySound(TEXT("AC-starting.wav"), NULL, SND_SYNC);
- system("CLS");
- // DISPLAY WORKING AUTO CLICKER
- cout << "\n\n\n ##############################\n";
- cout << " # ";
- textColor.SetColor(5);
- cout << "AUTO CLICKER";
- textColor.ResetColor();
- cout << " #\n";
- cout << " # by Fillinlak3 #\n";
- cout << " ##############################\n\n\n";
- cout << " Auto Click working!";
- ShowWindow( GetConsoleWindow(), SW_HIDE );
- Sleep(170);
- break;
- } // STARTING AGAIN THE AUTO CLICKER BODY
- if(GetAsyncKeyState(VK_SHIFT) && GetAsyncKeyState(VK_CONTROL))
- { // EXITING THE AUTO CLICKER
- Sleep(400);
- ShowWindow( GetConsoleWindow(), SW_RESTORE );
- option = 1;
- system("CLS");
- // DISPLAY
- cout << "\n\n\n ##############################\n";
- cout << " # ";
- textColor.SetColor(5);
- cout << "AUTO CLICKER";
- textColor.ResetColor();
- cout << " #\n";
- cout << " # by Fillinlak3 #\n";
- cout << " ##############################\n\n\n";
- cout << " Auto Click exiting!";
- Sleep(170);
- cout << "\n\n The clicker have done: " << done << " clicks in total.\n";
- break;
- } // EXITING THE AUTO CLICKER BODY
- } // ANTI BUGGING BODY
- } else goto startagain; // STOP CLICKING BODY
- } // WHILE LOOP BODY
- system("PAUSE >nul"); */
- cout << "\nThis option is not available yet..";
- goto enterOptionADM;
- }
- if(selectOptADM == Options[6])
- {
- Sleep(100);
- cout << "\n\n == AUTO CLICKER ==";
- Sleep(200);
- cout << "\n Press ESCAPE button to pause the autoclicker.";
- Sleep(200);
- cout << "\n Press SHIFT + MIDDLE MOUSE BUTTON when paused to start again the autoclicker.";
- Sleep(200);
- cout << "\n Press SHIFT + CONTROL when paused to exit the autoclicker.";
- goto enterOptionADM;
- }
- if(selectOptADM != Options[0] || selectOptADM != Options[1] || selectOptADM != Options[2] || selectOptADM != Options[3] || selectOptADM != Options[4] || selectOptADM != Options[5] || selectOptADM != Options[6])
- {
- textColor.SetColor(2);
- cout << "\n This is not a valid option";
- textColor.ResetColor();
- goto enterOptionADM;
- }
- } else {
- Sleep(500);
- textColor.SetColor(4);
- cout << "\nAccess denied ";
- textColor.ResetColor();
- cout << "to all control access of FillInHack for user " << IGusernameChosen;
- Sleep(200);
- permission = 0;
- goto enterOption;
- }
- }
- catch (exception& e)
- {
- cerr << e.what();
- }
- } else { // FINISH ADMIN PERMISSIONS BODY
- cout << "\nYou have no more permission for this..";
- goto enterOption;
- }
- if(selectOpt != Options[0] || selectOpt != Options[1] || selectOpt != Options[2] || selectOpt != Options[3] || selectOpt != Options[4])
- {
- textColor.SetColor(2);
- cout << "\n This is not a valid option";
- textColor.ResetColor();
- goto enterOption;
- }
- } // SWITCH(passLevel) CLOSING
- } // INT MAIN CLOSING
Add Comment
Please, Sign In to add comment