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. 1Set objFTPSVC = GetObject("IIS://localhost/MSFTPSVC") 2Set objFSO = …
Read MoreIn order for Active Directory Migration Tool (ADMT) to install its Agent on a newly migrated computer, the user running the ADMT tool must have local Administrator access. Otherwise, the error log shows something similar to the following: 1WRN1:7290 Processor architecture for machine \\NT4MACHINE is unknown, Error …
Read MoreFound this code and wanted to bookmark it... from VisualBasicScript.com's Forums Function fSortArray(aSortThisArray) Set oArrayList = CreateObject("System.Collections.ArrayList" ) For iElement = 0 To UBound(aSortThisArray) oArrayList.Add aSortThisArray(iElement) Next oArrayList.Sort set fSortArray = …
Read MoreThis snippet has come in handy quite a few times for me... Call ListFolderContents("C:\Windows\System32\Drivers") Sub ListFolderContents(path) set fs = CreateObject("Scripting.FileSystemObject") set folder = fs.GetFolder(path) Msgbox folder.path For each item in folder.SubFolders …
Read MoreNote (2025): This post targets legacy IIS FTP on Windows 2000/2003 (IIS 5/6). Those platforms are long out of support and the approach below is preserved for historical reference. For modern Windows Server and IIS FTP, prefer built-in controls such as IP and Domain Restrictions, Windows Defender Firewall rules, and …
Read MoreUsing 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 Create a file named rewrite.asp in the code directory. Add a Custom Error for the 404 Not Found. Open up IIS -> …
Read MoreI 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 MoreI used the following code a while back as part of a solution to automate the banning of spammers via their IP address. 1'Here, we will pretend this is an imported list 2Dim XMLarr(1) 3XMLarr(0) = "65.19.238.21" 4XMLarr(1) = "198.31.175.100" 5 6Set objIIS = GetObject("IIS://localhost/w3svc") …
Read MoreRecently my Exchange server got pounded by spammers that were attacking my NDR (non delivery report) capabilities. Turning off NDRs helped 75% and I explored Exchange quite a bit along the way to figure out that last 25%. It seems that I had 180 emails stuck in my queue. I was looking at my logs and ethereal and it …
Read MoreThis may only be useful for wscript.exe so it may not have universal appeal but I'll list it anyway. The first script is to be inserted at the top of the wscript file you'd like to monitor. The second file is to be run as a scheduled task. SQL Server is used to keep track of the PIDs. SQL Server Express is free so you …
Read More