netnerds.net
Home
Book
Links icon
Data Platform GitHub Org GitHub Profile GitHub Star Profile MVP Profile Twitch
About
Subscribe
  • VBScript: Stop Dictionary FTP Attacks in IIS using VBScript

    Oct 31, 2006 · 3 min read  ·
    Share on:

    Spencer Ruport of netortech.com modified my FTP ban script into one that stops dictionary attacks. And he chooses not to ban via the problematic IIS way but instead creating a bad route for the offending IP address. Pretty darn ingenius. Set objFTPSVC = GetObject("IIS://localhost/MSFTPSVC") Set objFSO = …


    Read More
  • IIS: Instantly Ban IPs Attempting to Login to MS-FTP as Administrator

    Jul 3, 2006 · 5 min read  ·
    Share on:

    UPDATE 12/18/06: The startup script has been modified slightly (cscript.exe was changed to wscript.exe). Now, console users will no longer encounter a blank black box upon login. UPDATE 11/21/06: Now that banning at the IP level has been added to the script, offending users are completely banned before they can even …


    Read More
  • IIS: MD_CUSTOM_ERROR (6008)

    May 1, 2006 · 1 min read  ·
    Share on:

    I recently loaded up one of my servers and out of nowhere, I ran into this error: Server Configuration Error The server has encountered a configuration error attempting to process your request. The configuration parameter MD_CUSTOM_ERROR (6008) has an invalid value. Please contact the server administrator for …


    Read More
  • ASP: mod_rewrite or URLRewrite with Classic ASP (Sorta)

    Apr 28, 2006 · 2 min read  ·
    Share on:

    Using a Custom 404 error script in IIS makes it possible to emulate a very basic URL rewrite. Sample Environment - IIS 6 - Website domain: "www.me.com" - URLRewrite directory: "code" Steps 1. Create a file named rewrite.asp in the code directory. 2. Add a Custom Error for the 404 Not Found. Open up …


    Read More
  • ASP: Sustain Remote Cookie Sessions in an ASP/VBScript

    Apr 27, 2006 · 2 min read  ·
    Share on:

    I dug up this cold from my old netnerds blog. For Googlers wondering if sustaining a remote session is possible, the answer is yes; I've sustained remote cookie sessions using both ASP & VBScript. I've provided simplified code below. It should be self explanatory. If not, drop me a comment and I'll explain it. …


    Read More
  • VBScript: Ban IPs in IIS Programatically

    Apr 26, 2006 · 1 min read  ·
    Share on:

    I used the following code a while back as part of a solution to automate the banning of spammers via their IP address. 'Here, we will pretend this is an imported list Dim XMLarr(1) XMLarr(0) = "65.19.238.21" XMLarr(1) = "198.31.175.100" Set objIIS = GetObject("IIS://localhost/w3svc") …


    Read More
  • ASP: Easily Parse and Consume RSS in Classic ASP

    Apr 24, 2006 · 1 min read  ·
    Share on:

    This script should work right out of the box.. <% Call getNews(10) Sub getNEWS(howManyResults) myRSSfile = "https://rss.news.yahoo.com/rss/tech" Set xmlHttp = Server.CreateObject("MSXML2.XMLHTTP.4.0") xmlHttp.Open "Get", myRSSfile, false xmlHttp.Send() myXML = xmlHttp.ResponseText Set …


    Read More
  • VBScript: IIS Discovery

    Apr 10, 2006 · 3 min read  ·
    Share on:

    Find IIS Servers on your domain (or with modifications, your subnet) using this script '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' Author: Chrissy LeMaire ' Copyright 2003 NetNerds Consulting Group ' Script is provided AS IS with no warranties or guarantees and assumes no …


    Read More
  • VBScript: Shortcuts for IIS Log Directories

    Apr 10, 2006 · 2 min read  ·
    Share on:

    I love parsing through IIS logfiles but I dislike the directory structure that Microsoft creates for IIS logging. Each site has a randomly generated directory name so, for example, "netnerds.net" could store its files in "C:\windows\system32\logfiles\W3SVC720199813." Who wants to track that down? …


    Read More
    • ««
    • «
    • 1
    • 2
    • »
    • »»

Chrissy LeMaire

SQL & PowerShell MVP. GitHub Star. Creator of dbatools. Need to oil my knees.

dbatools book

Now available in bookstores and amazon 🥳 Buy it at manning.com for 50% off with code bldbatools50

dbatools

dbatools is an awesome PowerShell module that helps you migrate entire instances with a single command, plus a whole lot more.

available from dbatools.io and github

dbachecks

dbachecks validates SQL Server environments using crowdsourced DBA checklists and outputs to Power BI and is available on github.com 📊

Find me

Find me on Mastodon

recent posts

  • Install-DbaMaintenanceSolution now supports auto-scheduling
  • [Solved] OmniSharp.Extensions.JsonRpc.RpcErrorException in VS Code Dev Containers for PowerShell-based Azure Functions
  • Exploring GitHub Copilot Chat
  • Offline Installation of dbatools 2.0 with the dbatools.library Dependency
  • New Encryption and Certificate Defaults in Microsoft's SQL Server Connection Provider
  • What's new and different in dbatools 2.0
  • Don't waste your time with ($PSEdition -eq 'Core') in your PowerShell module manifest/psd1
  • Exploring faster PowerShell import times.. again

categories

sql-server 121 powershell 116 general 63 security 59 windows 47 sharepoint 41 active-directory 37 linux 31 networking 30 vbscript 30 apple 24 virtualization 22 iis 19 github 8 apache 7
All Categories
active-directory37 apache7 apple24 asp-net2 azure-functions1 bi4 db24 devcontainers1 exchange7 general63 github8 iis19 linux31 livestreaming4 lync2 mastodon4 networking30 oracle1 powershell116 security59 sharepoint41 sql-server121 vbscript30 virtualization22 windows47 wpf7
[A~Z][0~9]
 

Copyright 2003 -  Chrissy LeMaire. All Rights Reserved