Code Snippets

Perl Script To Decode Cisco Type 7 Password Hash

I spent a lot of time the other night trying to find a perl script that would decode Cisco type 7 password hashes and many of them did not work properly. At first I thought I was doing something wrong however I am pretty sure that most of the scripts were just broken. Anyhow I finally located the below script on some site and I can’t remember where I found it so I wanted to post it here mostly for reference however if someone else finds it useful then that would be great. Below is the actual script itself followed by an example of using the script.

Technology Insights

VSFTPD Error: GnuTLS error -9: A TLS packet with unexpected length was received.

I was tasked with configuring VSFTPD to allow SFTP or FTPES (FTP over explicit TLS/SSL) tonight for a client. The configuration already had regular FTP working which I verified using FileZilla as an FTP client. I was able to login and transfer files in both directions to and from the server. Next I verified that SFTP worked without issue and I was able to also transfer files in both directions using SFTP. For FTPES I had to make some changes and once I did make the changes I was still getting an error when attempting to do a directory listing using FileZilla. Below I describe the initial changes I made to vsftpd.conf, the errors I received attempting to connect with FTPES, and the way I resolved the problem.

Technology Insights

How To Install SCP and SSH On Windows 7 Using Cygwin

I use Cygwin on Windows to make my Windows only computers as comfortable as possible to me. This comfort is provided by the Linux command line utilities that allow me to work. Cygwin provides a way for me to run these utilities from a Windows 7 command prompt. Two utilities that are really useful that are not installed with Cygwin by default are SCP (Secure Copy) and SSH (Secure Shell). Both of these utilities allow secure communication with remote computers. Below I describe adding them to an existing Cygwin Windows 7 installation.

Technology Insights

Connect iPhone Using PPTP to Office Cisco RV016 VPN

Connecting your iPhone to the office VPN is easy to configure and will allow you to be productive outside the office with ease. Using the PPTP VPN service on your iPhone will allow you to perform tasks as if you were sitting at your desk in the office. In the below scenario we explain configuring a PPTP (Point-to-Point Tunneling Protocol) VPN connection from your iPhone to a Cisco RV016 that is already configured to accept PPTP connections located in your office. The VPN (Virtual Private Network) configuration allows you to enable and disable the connection with ease as you will want it disabled if you are not using the connection to sa ve on bandwidth.