Just wrote a very simple batch file which disables Windows Firewall when Cain starts, en re-enables it when it is closed.
Some of the code is based of QuiescentWonder's batchcode for
ca_portable.bat.
Tell me what you think, and if I can make any improvements.
ECHO OFF
CLS
echo ...........................................................
echo Keep this batch file running
echo it will close itself automaticly.
echo If you close this program, firewall will not be re-enabled!
echo ...........................................................
echo.
set cadir="%programfiles%\Cain"
echo If installation directory is not
echo %cadir%
echo enter the full path below without quotes, otherwise just press enter.
echo.
set /p cadir=CA DIR?
if %cadir%=="" (
set cadir=%programfiles%\Cain
)
netsh advfirewall set currentprofile state off
start /wait %cadir%\Cain.exe
netsh advfirewall set currentprofile state on