linkek — Cisco Type5 password crack with John The Ripper

http://www.openwall.com/lists/john-users/2006/05/14/8
http://www.osix.net/modules/article/?id=455

In a nutshell:

I. Config file => passwd file (for John)

sed -n 's/[ :]/_/g; s/^(.{1,})_5_($1$[$./0-9A-Za-z]{27,31})_*$/1:2/p' < cisco-device-config > passwd

II. Start the process (nice 19 -> low priority, you can work on your computer..):

nice -n 19 john -incremental:lanman -session:cisco passwd

linkek — usage of vi

http://www-rohan.sdsu.edu/doc/debian/ch-editor.html
http://www.washington.edu/computing/unix/vi.html
http://hubpages.com/hub/Vi-Unix-Editor-How-to-use-Vi-Editor-and-Common-Problems
http://thomer.com/vi/vi.html
http://unix.t-a-y-l-o-r.com/Vi.html
http://forum.codecall.net/linux-tutorials-guides-tips/23785-how-use-vi-key-bindings-bash.html
http://acms.ucsd.edu/info/vi_tutorial.shtml
http://staff.washington.edu/rells/R110/
http://www.builderau.com.au/program/unix/soa/Use-vi-to-edit-files-in-a-UNIX-environment/0,339024638,339160224,00.htm