Sunday, September 05, 2010

Script batch to protect Folder

Script batch protect Folder [ fungsi hide / lock folder ]
1.copy code to notepad or editor you have
2.save as asyourname.bat
3.Use by doble click that file as we made before
/////////////////////////////////////////////////////////////
cls
@ECHO OFF
title Folder edzapodka
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST edzapodka goto MDDAVID
:CONFIRM
echo folder ini akan di lock??!?(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren edzapodka "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==podka goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" edzapodka
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDDAVID
md edzapodka
echo Locker created successfully
goto End
:End
//////////////////////////////////////////////////////////////

Monday, February 22, 2010

Tips Kebal Virus Untuk USB

Khusus utk OS WINDOWS,yg mang rentan bgt trhdp virus. Ada antivirus buat Flashdisk, Tapi kadang hanya kompatibel dengan Flashdisk keluaran terbaru/U3. Tuk itu coba trik sederhana gw agar Flashdisk KEBAL VIRUS. Virus masuk ke UFD(USB FLASH DISK) biasanya melalui file Autorun.inf jikalau di UFD sudah ada file/folder autorun.inf maka digantikan oleh autorun.inf yang telah ter-infeksi virus. Mungkin bs coba trik sederhana ini.

Klik Start,Run
Ketik cmd,klik OK
Akan muncul jendela command prompt
pindah ke drive tempat UFD
Misal UFD anda di drive G
Ketik G:
Sesudah itu ketik

md autorun.inf ,enter

md autorun.inf\autorun.ini ,enter

md autorun.inf\autorun.ini\con\\.\\ ,enter.

Tutup jendela command prompt
Maka di UFD akan ada folder autorun.inf yg tidak bisa dihapus(oleh Windows) dan juga tdk bisa diganti/overwrite oleh virus yg sembunyi di autorun.inf

Trik diatas berdasar sbb:
di Windows tdk boleh /tdk dikenal file/folder sama.
Sedang virus meng-infeksi UFD dg cara membuat/mengganti/overwrite file autorun.inf
Jd virus tdk bs menginfeksi UFD karena Windows/virus tdk bisa menghapus/overwrite ‘con’ folder yg ada di dalam folder autorun.inf
Ga percaya? Coba buat folder(di Windows) dg nama con,pasti ga akan bisa

Moga bermanfaat.
NB: Flashdisknya harus clean dr virus dulu lo ya