C++装B用假黑客软件

54 篇文章 3 订阅
1 篇文章 0 订阅

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

小编简单为大家制作了一款可以用于在朋友面前装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应该也可以

  • 6
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 5
    评论
黑客帝国》是一部1999年上映的科幻电影,由安迪·沃卓斯基姐弟执导。这部电影讲述了一个虚拟世界中的黑客尼奥,被揭示真实的世界实际上是由机器统治的,并加入了人类的抵抗组织。屏保是一个在计算机屏幕上显示图形或动画以防止屏幕烧伤的程序。"黑客帝国屏保"可以理解为以电影《黑客帝国》为主题的屏保。 通常,"黑客帝国屏保"是指通过在计算机屏幕上显示电影中的场景、角色或特效来增加娱乐性。这种屏保通常在屏幕上循环播放电影中的片段,包括人物的动作、风景和战斗场面。它们也可能包含电影中的经典台词或主题音乐,以帮助观众回忆起电影的精彩部分。 "黑客帝国屏保"不仅可以作为一种视觉享受,还可以帮助用户与电影的情节和主题产生联系。通过在计算机屏幕上播放电影场景,人物和特效,屏保可以帮助用户回忆起电影中的故事情节,增加对电影的思考和讨论。此外,"黑客帝国屏保"还可以作为电影的宣传手段,为观众提供一种与电影互动和参与的方式。 总之,"黑客帝国屏保"是一种以电影《黑客帝国》为主题的计算机屏保程序。它通过在计算机屏幕上循环播放电影中的场景、角色和特效,增加了对电影的娱乐性和互动性。无论是作为视觉享受还是电影宣传手段,"黑客帝国屏保"都能吸引观众的注意力并帮助他们与电影产生更深的联系。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值