Friday, 21 August 2015

Shutdown Prank




#include<iostream>
#include<windows.h>
using namespace std;
 main()
{
    cout<<"#GE*RGE!#";
    cout<<"\n\t\t\t\t\t\tloading.";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    system("cls");
    cout<<"#GE*RGE!#";
    cout<<"\n\t\t\t\t\t\tloading.";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    system("cls");
    cout<<"#GE*RGE!#";
    cout<<"\n\t\t\t\t\t\tloading.";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    system("cls");
    cout<<"#GE*RGE!#";
    cout<<"\n\t\t\t\t\t\tloading.";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    cout<<".";
    Sleep(0700);
    system("cls");
    cout<<"#GE*RGE!#";
    system("color b");
    cout<<"\n\t\t\t\t\t   Press any key in 1 sec";
    Sleep(1500);
    system("cls");
    cout<<"#GE*RGE!#";
    int a,b=5456;
    system("color 9");
    system("shutdown /s" );
    Sleep(1500);
    cout<<"\n\n\n\n\n\t\t\t\t Enter the password to abort shutdown:";
    system("color e");
    cin>>a;
    system("cls");
    cout<<"#GE*RGE!#";

    if(a==b)
    {   system("color b");
        cout<<"\n\n\n\n\n\n\t\t\t\t  Correct entry! Shutdown aborting in t-6sec";
        Sleep(6000);
        system("cls");
        cout<<"#GE*RGE!#";
        system("shutdown /a");
        Sleep(2000);
        return 0;

    }

    else(a!=b);
    {   system("cls");
        cout<<"#GE*RGE!#";
        Sleep(1000);
        system("color c");
        system("cls");
        cout<<"#GE*RGE!#";
        cout<<"\n\n\t\t\t\t\t    WRONG KEY ENTRY";
        cout<<"\n\n\t\t\t              Hint:Convert 'TV' to HEX";
        Sleep(1500);
        system("cls");
        cout<<"#GE*RGE!#";
        cout<<"\n\n\n\n\t\t\t              Hint:Convert 'TV' to HEX";
        system("color e");
        Sleep(2500);
        system("color d");
        cout<<"\n\t\t\t Enter the password to try again(P.S this is the last chance):";
        cin>>a;

        if(a==b)
    {   system("color b");
        cout<<"\n\t\t\t\t\tCorrect entry! Shutdown aborting in t-3sec.";
        Sleep(3000);
        system("shutdown /a");
        Sleep(5000);
        system("color 02");
        return 0;
    }

    else if(a!=b)
    {
        system("cls");
        cout<<"#GE*RGE!#";
        Sleep(1000);
        system("color c");
        cout<<"\n\n\t\t\t\t\t    WRONG KEY ENTRY";
        Sleep(3000);
        system("color d");
        system("cls");
        cout<<"#GE*RGE!#";
        cout<<"\n\n\n\t\t\t\t\tBYE BYE";

}
}
}

No comments:

Post a Comment