Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


March 2002

KiXtart Code Applies the Patch for the CodeRed Worm

RSS
Subscribe to Windows Web Solutions | See More KiXtart Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Download the Code Here

Reader to Reader

I work for a software company in which many of the engineers run IIS 5.0 and IIS 4.0 to test the software they write. When the CodeRed worm first appeared, I needed to find a way to quickly protect these IIS systems, so I introduced the code that Web Listing 1 (which you can access at http://www.windowswebsolutions.com, InstantDoc ID 23884) shows into the company's logon script, which is in the KiXtart scripting language. The code checks for the existence of idq.dll, a file that Microsoft Indexing Service (Windows 2000) and Microsoft Index Server (Windows NT 4.0) use. If the idq.dll file exists, the code checks the registry to see whether the IIS system has the appropriate CodeRed patch, and if not, the code applies the patch.

To use the KiXtart code in Web Listing 1, first download CodeRedPatch.scr from the Code Library on the Windows Web Solutions Web site (http://www.windowswebsolutions.com). Then, customize the code so that it reflects the paths to your patches. Currently, the patch for IIS 4.0 is in the \\helpdesk\patches\iis\nt4\q301625 folder and the patch for IIS 5.0 is in the \\helpdesk\patches\iis\w2k\q301625 folder. Optionally, you can customize the IS Department signature in the MessageBox functions.

For more information about the CodeRed worm, see the Microsoft article "Unchecked Buffer in Index Server ISAPI Extension Can Enable Web Server Compromise" (http://support.microsoft.com/default.aspx?scid=kb;en-us;q300972). You can download the patches from the Microsoft Security Web site (http://www.microsoft.com/security). Click the Security Bulletins link and go to either Microsoft Security Bulletin MS01-033 (Unchecked Buffer in Index Server ISAPI Extension Could Enable Web Server Compromise) or MS01-044 (15 August 2001 Cumulative Patch for IIS). For more information about these and other IIS-related hotfixes, see Brett Hill, IIS Informant, "Keeping Up with Hotfixes," December 2001, InstantDoc ID 22965.

End of Article



Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

WinInfo Short Takes: Week of November 24, 2008

An often irreverent look at some of the week's other news, including a Vista Capable dismissal request, Zune price reductions, Morrow musings, Novell and Microsoft sitting in a tree ... two years later, Yahoo!, IE 6 on Windows Mobile, and so much more ...


Related Events Delivering Reliable and Effective Web-Based Applications

Making Web Application Perform Better: What to Watch, How to Watch It, and How to Fix It

Check out our list of Free Email Newsletters!

Scripting eBooks Keeping Your Business Safe from Attack: Encryption and Certificate Services

Best Practices for Managing Linux and UNIX Servers

Building an Effective Reporting System

Related Scripting Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing