|
Q1 2004 Tops In Cyber Attack: "These comprise the spread of worms and viruses, number of phising incidents, unleashing of distributed denial of service attacks (DDOS), circulation of spam and overt digital attacks. The figures are mind boggling and serve as a reminder for the ongoing efforts to raise awareness and need for cyber security, both for the corporate world and home users."
|
|
Tb wrote a clear comment about the security on Windows vs. Mac OS X: The big problem on Windows vs OS X is that on Windows if you don't have all the latest patches installed, you can just look at an email and have a virus installed. This was responsible for a fair portion of the first generation viruses (virii?)
|
|
Here follows my script for automating Cisco VPN using the command-line version of the program (vpnclient). The script is written in Expect. Thanks to Ssp for telling about SSHPassKey and otherwise helping with the script. The script should be able to
tell application "Terminal"
do script with command "/path/command-name"
end tell
This opens a new Terminal window (in the background) and
starts up Cisco VPN. To stop using Cisco VPN, just close the Terminal window.
Without further ado, here follows the Expect script for automating vpnconnect (the Cisco VPN command-line program):
#!/usr/bin/expect
# Cisco VPN Script
proc killvpnprocesses {} {
spawn killall vpnclient
expect "No matching processes belonging to you were found" {} \
eof {}
spawn killall cvpnd
expect "No matching processes belonging to you were found" {} \
eof {}
return 0
}
set profile PROFILE
set username USERNAME
set keyname "VPN $profile ($username)"
set sshpasskey /Applications/Utilities/SSHPassKey.app/Contents/MacOS/SSHPassKey
set passwd [exec $sshpasskey $keyname]
while {1} {
eval spawn vpnclient connect "$profile"
expect -ex "Username \[" {send "$username\n"} \
"A connection already exists." {exit 2} \
"Could not attach to driver." \
{sleep 5; killvpnprocesses; continue} \
"The application was unable to communicate with the VPN sub-system." \
{sleep 5; killvpnprocesses; continue}
expect -ex "Password \[" {send "$passwd\n"}
expect "Your VPN connection is secure." {interact} \
"Your link is secure." {interact} \
"Your VPN connection has been terminated." \
{sleep 5; killvpnprocesses; continue} \
"Could not attach to driver." {sleep 5; killvpnprocesses; continue}
sleep 2
killvpnprocesses
sleep 2
Update: I added the HTML codes for backslash characters, so you should be able to
cut and paste the script from the web page.
|