C++装B用假黑客软件

  • Post author:
  • Post category:其他



未经作者允许,禁止转载!

小编简单为大家制作了一款可以用于在朋友面前装13的假的黑客软件,一起来看看吧!


引用头文件

#include<iostream>
#include <bits/stdc++.h>
#include <windows.h>
#include <stdio.h>
#include <conio.h>
#include <time.h>
#include <stdlib.h>


使用标准命名空间

using namespace std;


这是自定义的调整输出内容颜色的函数

void Color (int a) {
    if (a == 0 || a == 14 || a == 20) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE),
        FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE);
    } else if (a == 1 || a == 12) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE),
        FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
    } else if (a == 2) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE),
        FOREGROUND_INTENSITY|FOREGROUND_GREEN);
    } else if (a == 3) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE),
        FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE);
    } else if (a == 4 || a == 11) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE),
        FOREGROUND_INTENSITY|FOREGROUND_RED);
    } else if (a == 5 || a == 13) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE),
        FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
    } else if (a == 7) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE),
        FOREGROUND_GREEN|FOREGROUND_BLUE);
    } else if (a == 15) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY);
    } else if (a == 16) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_GREEN);
    } else if (a == 17) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_RED);
    } else if (a == 8) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE);
    } else if (a == 6) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE),
        FOREGROUND_INTENSITY|FOREGROUND_BLUE);
    } else if (a == 9) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE),
        FOREGROUND_INTENSITY|FOREGROUND_RED|BACKGROUND_RED|BACKGROUND_GREEN);
    }
}


接着就是主函数

int main()
{
    int i,a;
    Color(2);
    cout<<"downloading";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;;
    Sleep(500);
    Sleep(2000);
    cout<<"Initializing";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;;
    Sleep(500);
    cout<<"Loading";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;
    Sleep(500);
    cout<<"Completed"<<endl;
    Sleep(1000);
    cout<<"IP address resolution";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;
    Sleep(500);
    Sleep(1000);
    cout<<"Completed"<<endl;
    Sleep(1000);
    Color(17);
    cout<<"Warning Warning Warning"<<endl;
    Color(15);
    cout<<"The next operation may infringe personal information."<<endl;
    cout<<"Are you sure you will go on?"<<endl;
    Color(2);
    cout<<"If you have already make up your mind,please just pass enter on the keyboard."<<endl;
    system("pause");
    cout<<"Positioning";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;;
    Sleep(500);
    cout<<"Positioning completed"<<endl;
    Sleep(1000);
    cout<<"Pass to start"<<endl;
    while(true){
        Color(2);
        cout<<"Extract domain name resolution files and data......"<<endl;
        cout<<"Extract IP address resolution files and data......"<<endl;
        cout<<"Extract successful address resolution files and data......"<<endl;
        cout<<"Extract password parsing files and data......"<<endl;
        cout<<"Extract Morse password analysis files and data......"<<endl;
        cout<<"Extract that files and data of the first crack attempt......"<<endl;
        cout<<"Extract files and data of that second crack attempt......"<<endl;
        cout<<"Extract that files and data of the third crack attempt......"<<endl;
        i++;
        if (i > 800){
            break;
        }
    }
    Color(17);
    cout<<"Start the first attempt to crack files and data";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;
    Sleep(1000);
    cout<<"Cracking failed"<<endl;
    Sleep(1000);
    cout<<"Start the second attempt to crack files and data";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;
    Sleep(1000);
    cout<<"Cracking failed"<<endl;
    Sleep(1000);
    cout<<"Start the third attempt to crack files and data";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;
    Sleep(1000);
    cout<<"Cracking failed"<<endl;
    Sleep(1000);
    cout<<"Start the fourth attempt to crack files and data";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;
    Sleep(1000);
    cout<<"Cracking failed"<<endl;
    Sleep(1000);
    cout<<"Start the fifth attempt to crack files and data";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;
    Sleep(1000);
    cout<<"Cracking success"<<endl;
    Sleep(1000);
    Color(13); 
    cout<<"The report files and data of the decoding results have been sent to the hacker"<<endl;
    return 0;  
}


这就是整个程序了,合起来就是:

#include <iostream>
#include <bits/stdc++.h>
#include <windows.h>
#include <stdio.h>
#include <conio.h>
#include <time.h>
#include <stdlib.h>
using namespace std;
void Color (int a) {
    if (a == 0 || a == 14 || a == 20) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE),
        FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE);
    } else if (a == 1 || a == 12) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE),
        FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
    } else if (a == 2) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE),
        FOREGROUND_INTENSITY|FOREGROUND_GREEN);
    } else if (a == 3) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE),
        FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE);
    } else if (a == 4 || a == 11) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE),
        FOREGROUND_INTENSITY|FOREGROUND_RED);
    } else if (a == 5 || a == 13) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE),
        FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
    } else if (a == 7) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE),
        FOREGROUND_GREEN|FOREGROUND_BLUE);
    } else if (a == 15) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY);
    } else if (a == 16) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_GREEN);
    } else if (a == 17) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_RED);
    } else if (a == 8) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE);
    } else if (a == 6) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE),
        FOREGROUND_INTENSITY|FOREGROUND_BLUE);
    } else if (a == 9) {
        SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE),
        FOREGROUND_INTENSITY|FOREGROUND_RED|BACKGROUND_RED|BACKGROUND_GREEN);
    }
}
int main()
{
    int i,a;
    Color(2);
    cout<<"downloading";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;;
    Sleep(500);
    Sleep(2000);
    cout<<"Initializing";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;;
    Sleep(500);
    cout<<"Loading";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;
    Sleep(500);
    cout<<"Completed"<<endl;
    Sleep(1000);
    cout<<"IP address resolution";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;
    Sleep(500);
    Sleep(1000);
    cout<<"Completed"<<endl;
    Sleep(1000);
    Color(17);
    cout<<"Warning Warning Warning"<<endl;
    Color(15);
    cout<<"The next operation may infringe personal information."<<endl;
    cout<<"Are you sure you will go on?"<<endl;
    Color(2);
    cout<<"If you have already make up your mind,please just pass enter on the keyboard."<<endl;
    system("pause");
    cout<<"Positioning";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;;
    Sleep(500);
    cout<<"Positioning completed"<<endl;
    Sleep(1000);
    cout<<"Pass to start"<<endl;
    while(true){
        Color(2);
        cout<<"Extract domain name resolution files and data......"<<endl;
        cout<<"Extract IP address resolution files and data......"<<endl;
        cout<<"Extract successful address resolution files and data......"<<endl;
        cout<<"Extract password parsing files and data......"<<endl;
        cout<<"Extract Morse password analysis files and data......"<<endl;
        cout<<"Extract that files and data of the first crack attempt......"<<endl;
        cout<<"Extract files and data of that second crack attempt......"<<endl;
        cout<<"Extract that files and data of the third crack attempt......"<<endl;
        i++;
        if (i > 800){
            break;
        }
    }
    Color(17);
    cout<<"Start the first attempt to crack files and data";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;
    Sleep(1000);
    cout<<"Cracking failed"<<endl;
    Sleep(1000);
    cout<<"Start the second attempt to crack files and data";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;
    Sleep(1000);
    cout<<"Cracking failed"<<endl;
    Sleep(1000);
    cout<<"Start the third attempt to crack files and data";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;
    Sleep(1000);
    cout<<"Cracking failed"<<endl;
    Sleep(1000);
    cout<<"Start the fourth attempt to crack files and data";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;
    Sleep(1000);
    cout<<"Cracking failed"<<endl;
    Sleep(1000);
    cout<<"Start the fifth attempt to crack files and data";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;
    Sleep(1000);
    cout<<"Cracking success"<<endl;
    Sleep(1000);
    Color(13); 
    cout<<"The report files and data of the decoding results have been sent to the producer"<<endl;
    Sleep(1000000); 
    return 0;
    
}


当然省略号的陆续输出也可以用一个自定义函数来让代码显得不是那么繁琐,就像这样:

void Ellipsis(int a){
    if (a == 0)
    {
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;
    Sleep(500);
    }
    else
    {
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<".";
    Sleep(500);
    cout<<"."<<endl;
    Sleep(500);
    }
}


这就是今天的程序分享了~

注:使用的编译器为Dev-C++,Visual Studio应该也可以



版权声明:本文为pyz258原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。