Pages

Translate

This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Thursday, December 6, 2012

C++ ျဖင့္ Antivirus codeေရးနည္း

C++ ျဖင့္ Antivirus codeေရးနည္း
C++ ျဖင့္ Antivirus codeေရးနည္း
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

အမ်ားအားျဖင့္ေတာ့ Antivirus ကုမၸဏီေတြက ထိန္းသိမ္းထားတဲ႔အတြက္ Antivirus sample code ေတြကို Public ကို Release လုပ္ျခင္း မရွိပါဘူး။ ဒါေပမယ့္ C++ ကို အသံုးျပဳျပီး Antivirus code ဘယ္လိုေရးရတယ္ဆိုတာ ကို သိရသေလာက္ နမူနာေလး တင္ေပးလိုက္ပါတယ္။ ေလ့လာၾကည့္ပါ။


int main()
{
PathList = userSelectPaths();
MyVirusList mvl = findViruses(PathList);
if( mvl.empty() )
{
cout << "Could not kill viruses" << endl;
}
else
{
cout << "Viruses killed." << endl;
}
return 0;
}

C++ ျဖင့္ Antivirus codeေရးနည္း

ကိုလင္း- သလႅာဝတီ
C++ ျဖင့္ Antivirus codeေရးနည္း
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

အမ်ားအားျဖင့္ေတာ့ Antivirus ကုမၸဏီေတြက ထိန္းသိမ္းထားတဲ႔အတြက္ Antivirus sample code ေတြကို Public ကို Release လုပ္ျခင္း မရွိပါဘူး။ ဒါေပမယ့္ C++ ကို အသံုးျပဳျပီး Antivirus code ဘယ္လိုေရးရတယ္ဆိုတာ ကို သိရသေလာက္ နမူနာေလး တင္ေပးလိုက္ပါတယ္။ ေလ့လာၾကည့္ပါ။


int main()
{
PathList = userSelectPaths();
MyVirusList mvl = findViruses(PathList);
if( mvl.empty() )
{
cout << "Could not kill viruses" << endl;
}
else
{
cout << "Viruses killed." << endl;
}
return 0;
}


C++ Virus Guide-2

C++ Virus Guide-2
C++ Virus Guide-2
http://photos-f.ak.fbcdn.net/hphotos-ak-snc7/400459_124173994395857_1105029814_a.jpg
  
အရင္ post မွာ ေတာ္ေတာ္ေလး ရွင္းခဲ႔ျပီးပါျပီ... ဒီ post မွာေတာ့ payload အပိုင္းနဲ႔ taskmanager ေပၚ မလာေအာင္ လို႔ ဘယ္လိုလုပ္မလဲဆိုတာကို တင္ေပးထားပါတယ္။ ဒီ post ကိုမဖတ္ခင္မွာ C++ Virus Guide1 ကိုအရင္ဖတ္ဖို႔ လိုမယ္ထင္ပါတယ္...ဘာလို႔လဲဆိုေတာ့ အဲဒီ 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 တစ္ခုျဖစ္လို႔ အႏၲရာယ္မျဖစ္ႏိုင္ပါဘူး။

 
 
ဆူဆူညံညံအသံေတြထြက္ေအာင္ လုပ္ႏိုင္တာေတာ့ ဟုတ္ပါျပီ... က်ေနာ္တို႔ရဲ႕ 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)


C++ compiler လုပ္နည္း

C++ compiler လုပ္နည္း
C++ compiler လုပ္နည္း



                          http://photos-f.ak.fbcdn.net/hphotos-ak-ash4/295106_124396077706982_741329242_a.jpg

ေနာက္ထပ္တင္ေပးမယ့္ ဗိုင္းရပ္ဖန္တီးျခင္းအပိုင္းေတြအတြက္ ဒီပို႔ကိုတင္ေပးလိုက္ပါတယ္။ ဘာလို႔လဲဆိုေတာ့ ဖန္တီးတဲ့ေနရာမွာ C Programming Languageကို သံုးမွာ ျဖစ္လို႔ပါ။ သိျပီး၊ တတ္ျပီးသားသူေတြအတြက္မဟုတ္ပါဘူး။ C Programming ကို မသိေသးတဲ႔သူေတြနဲ႔ C Programming ကို အခုမွစတင္သင္ၾကားေနသူေတြအတြက္ပါ။ ထံုစံအတိုင္း သူမ်ား post ကို ဘာသာျပန္ျပီးတင္ေပးလိုက္တာပါပဲ။ Borland C++ compiler 5.5 ကို ဘယ္လို install လုပ္မလဲနဲ႔ C Programs ကိုဘယ္လို Compile(ပ႐ိုဂရမ္ ဘာသာစကား တစ္ခုခုျဖင့္ ေရးသားထားေသာ အမိန္႔ညႊန္ၾကားခ်က္ ကို စက္နားလည္ေအာင္ ေျပာင္းလဲေပးရန္ ကြန္ပ်ဴတာပ႐ိုဂရမ္ကို အသံုးျပဳသည္။)ဘယ္လိုလုပ္မလဲ ဆိုတာပါ။

Borland C++ compiler ကိုဘယ္လုိ installလုပ္မလဲ
(၁) Borland C++ compiler5.5 ကို ဒီေနရာ
http://minus.com/lbdssncd9O5mALမွာ download ခ်လိုက္ပါ ( သို႔ ) http://www.codegear.com/downloads/free/cppbuilder ကို သြားျပီးေတာ့လည္း downလို႔ရပါတယ္။

(၂)download လုပ္ျပီးျပီးဆိုရင္ေတာ့ freecommandlinetools.exe ကို run လိုက္ပါ။ သီးျခား location သတ္မွတ္ေပးထားျခင္း မရွိဘူးဆိုရင္ေတာ့ C:\Borland\BCC55 ထဲကို installation လုပ္ပါလိမ့္မယ္။

Borland C++ compile ကို configure[(အျခားပစၥည္းမ်ားႏွင့္ တြဲဖက္သံုးႏိုင္ရန္) သီးသန္႔ စီစဥ္ထားရွိသည္။] ဘယ္လိုလုပ္မလဲ
(၁)Borland C++ compier ကို install လုပ္ျပီးရင္ Text Document ႏွစ္ခု ဖန္တီးလိုက္ပါ။ပထမ new text document.txt ဖိုင္ကိုဖြင့္ျပီး ေအာက္မွာေပးထားတဲ႔ code နွစ္ခုကိုထည့္ေပးလိုက္ပါ။
-l"c:\Borland\Bcc55\include"
-L"c:\Borland\Bcc55\lib"

(၂)ျပီးရင္ အဲဒီ New Text Document.txt ကို bcc32.cfg နဲ႔ rename ေပးျပီး save လိုက္ပါ။ Save as type ေနရာ All files ေျပာင္းေပးဖို႔လိုပါတယ္။

(၃)ျပီးရင္ ဒုတိယ New Text Document(2).txt ဖိုင္ကိုဖြင့္ျပီး ေအာက္က code ကိုထည့္ေပးပါ။
-L"c:Borland\Bcc55\lib"

(၄)code ထည့္ျပီးသြားရင္ ilink32.cfg နဲ႔ saveလိုက္ပါ။ Save as type ကေတာ့ All files ပါပဲ။

(၅)အခုလုပ္ျပီးသြားတဲ႔ ဖိုင္ႏွစ္ခု (bcc32.cfg နဲ႔ ilink32.cfg)ကို copy လုပ္ပါ။ ျပီးရင္ C:\Borland\BCC55\Bin ထဲကိုသြားျပီး paste ေပးလိုက္ပါ။

C source code (.C files) ကိုဘယ္လို compile ျဖစ္ေအာင္လုပ္မလဲ
(၁)ပထမဆံုး .C (example.c) ဖိုင္ ကို compile ျဖစ္လာဖို႔ ေအာက္ပါ location ထဲမွာ သြားထည့္လိုက္ပါ။
C:\Borland\BCC55\Bin
(သင္ compile ျဖစ္ခ်င္တဲ႔ (.c) နဲ႔ save ထားတဲ႔ C source code ကိုဆိုလိုပါတယ္)

(၂)command prompt ကိုဖြင့္လိုက္ပါ။ ( Start>Run>type cmd > Enter)

(၃)ျပီးရင္ C:\Borland\BCC55\Bin\bcc32 example.c ကိုရိုက္လိုက္ပါ။ (CD command ကိုသံုးပါ)

(၄) source code ထဲမွာ error မရွိဘူး ဆိုရင္ေတာ့ (example.exe) ဖိုင္ကို locationတခု(C:\Borland\BCC5\Bin) ထဲမွာေတြ႔ရ မွာျဖစ္ပါတယ္။ကဲ..အခု source code ကို executable file(.exe file)အျဖစ္ compiled လုပ္ျခင္းေအာင္ျမင္သြားျပီးဆံုးသြားပါျပီး။

(Srikanth ရဲ႕ How to Compile C Programs မွ)


Autorun.inf Virus ကို Command Prompt ျဖင့္ရွင္းရေအာင္


ကၽြန္ေတာ္တို႔ေတြဟာ မိမိတို႔ရဲ႕ ကြန္ပ်ဴတာမွာ USB Drive မွတစ္ဆင့္ Autorun Virus ေတြမ၀င္ေရာက္ႏိုင္ ဖို႔အတြက္ USB Disk Security လိုမ်ိဳး Software မ်ိဳးေတြကို အသံုးျပဳျပီး ကာကြယ္ တက္ၾကပါတယ္ .. ဒါေပမယ့္ မိမိတို႔ရဲ႕ စက္ကို Autorun.inf Virus ၀င္ေရာက္သြားျပီး Virus ကေန မိမိတို႔ကြန္ပ်ဴတာရဲ႕ System ပိုင္းေတြကို ဖ်က္စီး လိုက္ျပီး မိမိတို႔ ကြန္ပ်ဴတာမွာ တင္ထားတဲ့ Antivirus Software ေတြကလည္း အလုပ္မလုပ္ ေတာ့တဲ့ အခါမွာ .. ရွိျပီးသားကို ျဖဳတ္ျပီး အသစ္ျပန္တင္တဲ့ အခါမွာလည္း လက္မခံေတာ့ ဘူးဆိုရင္ Autorun.inf နဲ႔တစ္ျခား Autorun viruses ေတြကို သတ္ဖို႔ အတြက္ Commond Prompt ကိုအသံုးျပဳတဲ့ နည္းလမ္းေလးကို ေရးေပးသြားပါမယ္ ..

အရင္ဆံုး Keyboard မွ Windows + R ကိုႏွိပ္ျပီး Run Box ကိုဖြင့္လိုက္ပါ .. ျပီးရင္ Run Box ထဲမွာ cmd လို႔ရိုက္ထည့္ျပီး Enter ေခါက္လိုက္ပါ .. ဒါဆိုရင္ Commond Prompt ေလးေပၚလာပါလိမ့္မယ္ ..ျပီးရင္ေတာ့ ကၽြန္ေတာ္ ေအာက္မွာ ေျပာထားတဲ့ အဆင့္ေလးေတြ အတိုင္း ရိုက္ထည့္ေပးသြားပါ ..

အရင္ဆံုး cd\ လို႔ရိုက္ထည့္ျပီး Enter ေခါက္လိုက္ပါ ..
ျပီးရင္ attrib -h -r -s autorun.inf ရိုက္ထည့္ျပီး Enter ေခါက္လိုက္ပါ .. ဒါဆိုရင္ေတာ့ Autorun.inf virus ကို Drive C : ကေနစျပီး ရွာေပးသြားမွာ ျဖစ္ပါတယ္ ..
ျပီးရင္ေတာ့ del autorun.inf ကိုရိုက္ထည့္ျပီး Enter ေခါက္လိုက္ပါ .. ဒါဆိုရင္ Autorun.inf virus ကို Delete လုပ္ေပး သြားပါလိမ့္မယ္ ..
ျပီးရင္ေတာ့ တစ္ျခား Drive ေတြ အားလံုးကို တစ္ခုခ်င္းစီ ရိုက္ထည့္ျပီး စစ္ေပးလိုက္ပါ .. ဥပမာ d: လို႔ရိုက္ထည့္ျပီး D:\> လို႔ေပၚလာျပီဆို ရင္ အေပၚကအဆင့္အတိုင္း attrib -h -r -s autorun.inf ကိုရိုက္ ထည့္ျပီး စစ္ေပးလိုက္ပါ .. မိမိတို႔ Computer မွာရွိတဲ့ Drive ေတြ အားလံုးကို စစ္ျပီးျပီ ဆိုရင္ေတာ့ စက္ကို Restart ခ်ေပးလိုက္ယံုပါပဲ ..


အားလံုးအဆင္ေျပႏိုင္ျကပါေစ.......(ေရးသားသူ : ေနမင္းေမာင္ )

Friday, March 2, 2012

Viber ကုိသုံးျပီး ဖုန္း free ေခၚဆုိမယ္ ၊ message free ပုိ႕မယ္

ျမန္မာ Mobile App က User မ်ားကုိ Viper ေဆာ့၀ဲကုိသုံးျပီး အင္တာနက္ကြန္နက္ရွင္ရွိရုံနဲ႕ ဖုန္း free call ေခၚလုိ႕ရတဲ့ ၊ Message အခမဲ့ပုိ႕လုိ႕ရတဲ့ နည္းေလးကုိေျပာျပခ်င္ပါတယ္ရွင္။ ႏုိင္ငံျခား မွာတင္သုံးလုိ႕ရတာမဟုတ္ဘဲ ၊ ျမန္မာႏုိင္ငံကေနလည္း ဒီေဆာ့၀ဲေလးကုိသုံးျပီး အခမဲ့ဖုန္းေခၚဆုိလုိ႕ရတာကုိေတြ႕ရပါတယ္။
ဒီ application ေလးကုိသုံးစြဲဖုိ႕ မိမိရဲ႕ဖုန္းကုိ အင္တာနက္ကြန္နက္ရွင္တစ္ခုခု (Wifi,3G..)နဲ႕ခ်ိတ္ဆက္ထားရပါမယ္။ လုိအပ္တဲ့ေဆာ့၀ဲျဖစ္တဲ့ Viber ကုိေအာက္မွာရယူလုိက္ပါ။
(မိမိတုိ႕ဖုန္းနဲ႕ဆုိင္တဲ့ application ကုိေရြးခ်ယ္ရယူပ 
Viber for iPhone အားရယူရန္ 
Viber for Android အားရယူရန္
Viber for Nokia အားရယူရန္ 
download ရယူျပီးျပီဆုိရင္ေတာ့ Viber ေဆာ့၀ဲကုိဖုန္းထဲမွာ install လုပ္ပါ။ ျပီးရင္ Viber ေဆာ့၀ဲကုိဖြင့္ပါ။ ႏုိင္ငံ ေရြးခ်ယ္တဲ့ေနရာမွာ ျမန္မာႏုိင္ငံကလူေတြဆုိရင္ Myanmar (+95) ကုိေရြးခ်ယ္ေပးပါ။ ေအာက္က TextBox မွာ မိမိရဲ႕ဖုန္းနံပါတ္ကိုထည့္ပါ။ ဖုန္းနံပါတ္ထည့္ရာမွာ (ဥပမာ) မိမိရဲ႕ဖုန္းနံပါတ္က 09-2016878 ဆုိရင္ ေရွ႕ဆုံးက သုည ကုိျဖဳတ္ျပီး 9 ကေနစထည့္္ပါ။ (ဥပမာ- 92016878) ။ ျပီးရင္ Continue ကုိႏွိပ္ပါ။ ေအာက္ပုံအတုိင္းပါ။
ဒါဆုိရင္ မိမိရဲ႕ဖုန္းကုိ Viber မွ Activation code တစ္ခု Message အေနနဲ႕၀င္လာပါလိ္မ့္မယ္။ အဲဒီ code ကုိ ေအာက္ပါ ပုံထဲကအတုိင္းထည့္ပါ။ ျပီးရင္ Enter Viber ကုိႏွိပ္ပါ။