IIS 6.0 Add Host Headers in Bulk

IIS 6.0 Add Host Headers in Bulk

To add host headers in bulk (IIS 6.0) you will need these two scripts in C:\Inetpub\AdminScripts:

Additionally you will need an input csv called “c:\sites.csv” that follows this format (id, sitename must be first line):

Script: AppendHostHeaders.vbs

Script chglist.vbs

. . . → Read More: IIS 6.0 Add Host Headers in Bulk

Run IIS6 in 32 bit mode

To run IIS6 in 32bit mode you need to run these commands:

Howto: Print Site IDs to File in IIS

First create a file called c:\listsites.vbs with the following content:

Create another file called listsites.bat (anywhere) with this content:

Howto: Migrate IIS Sites to Another Server

First you need to install the  IIS 6.0 Migration Tool

Now let’s create a .bat file:

You will need to replace 127.0.0.1 with the ip of the server you want to copy the config settings to.  The second part using adsutil2.vbs is used to add addtional host headers to site names

. . . → Read More: Howto: Migrate IIS Sites to Another Server

Howto: Change siteid of website in IIS 6.0

The easiest way to change the IIS site id is to create a .bat file like this: (Assuming that 1135282223 was the id of your current site and 5 was the ID you’d like to have)

What is %SYSTEMDRIVE%\Inetpub\AdminScripts\adsutil.vbs ? It is a ulility included in IIS.

List of utilities included with IIS can . . . → Read More: Howto: Change siteid of website in IIS 6.0

Howto: Fix Microsoft IIS Internal IP Address Disclosure Vulnerability With Scripts

What is  IP Address Disclosure?

It is usually a bullshit “vulnerability” that firms will mention if they can’t find anything else to report

http://www.securityfocus.com/bid/1499/discuss

How do you fix it without wasting 10 years of your time?

First, we need to find out the site IDs for all the websites on a given windows server (i . . . → Read More: Howto: Fix Microsoft IIS Internal IP Address Disclosure Vulnerability With Scripts