Author Topic: [BATCH] Simple tool for Cain and Abel  (Read 784 times)

Swabsbox

  • Noob
  • *
  • Posts: 12
  • Reputation: 2
  • iDevices: iPhone 4S
[BATCH] Simple tool for Cain and Abel
« on: April 17, 2012, 06:21:00 am »
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.

Code: [Select]
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

[null]

  • Hero Member
  • *****
  • Posts: 646
  • Reputation: 42
  • the halloween jack is a real cool cat
  • Computers: I have a PC running Windows 7 that was built by my uncle. I also have a Newsmy T3 Android Tablet.
  • iDevices: iPod Touch 4G
Re: [BATCH] Simple tool for Cain and Abel
« Reply #1 on: April 17, 2012, 06:39:18 am »
Looks intresting! I'll try it out when I get home.
__  __           ___    ___          
/\ \/\ \         /\_ \  /\_ \          
\ \ `\\ \  __  __\//\ \ \//\ \     
 \ \ , ` \/\ \/\ \ \ \ \  \ \ \          
  \ \ \`\ \ \ \_\ \ \_\ \_ \_\ \_
   \ \_\ \_\ \____/ /\____\/\____\
    \/_/\/_/\/___/  \/____/\/____/

LankAsif

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2390
  • Reputation: 90
  • Forum pride 8)
  • Badges:
  • Computers: i7 with bits and pieces
  • iDevices: iPod Touch 1G (Basically storage for iNinja tools), iPhone 5
Re: [BATCH] Simple tool for Cain and Abel
« Reply #2 on: April 17, 2012, 04:44:25 pm »
Cool idea

Education is never achieved by wise men. it is only believed to have been achieved by fools