Archive for the ‘ Windows ’ Category

Open Windows Passive Ports With One Command

A friend of mine just sent me the following command to open passive ports on a Windows Machine. This is the easiest way to open Passive on a Windows I’ve seen.   I’ve run across everything from one liners that loop through every passive port, to full 10 page guides on the topic.  This is hands down the easiest way to open passive ports on a windows firewall I’ve come across.

NOTE: This only works on Windows Server 2008:

Simply issue the following command:

netsh advfirewall set global StatefulFtp enable

Windows Firewall: How to setup a Port Range

As most of you know, using the Windows Firewall GUI will not allow you to open a range of ports easily. This becomes a nightmare if you need to open up Passive FTP ports (port #’s 60,000 – 65,000).

Click Here for the full guide.

Quick SSH Tunnel Script

I wrote this script for a friend who needs to get around a work firewall. The script uses Plink to create an SSH tunnel to a server of your choice.

I haven’t added any error handling in it, but I like how it integrates FTP in a batch script. For this script to work, you’ll need at least one server with both FTP and SSH enabled. Make sure to lock down both accounts that you use in the script, and you’ll need to make sure that plink.exe is accessible in the root of the FTP account.

Click Here to check it out