SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Passively detect attempts to guess passwords

By Daniel Brink,

This scripts looks for possible malicious attempts to hack your SQL Server instance. This is done by reading the current error log and searching for multiple failed login attempts from the same IP address. Please note that this requires that “Login auditing for failed logins” is enabled in the properties of your SQL Server instance.

To run this script, simply copy and paste the script into a connected query tab in Microsoft SQL Management Studio and then execute it. It will output a summary list of all failed attempts to guess passwords within the last 24 hours on your SQL Server instance.

Total article views: 2431 | Views in the last 30 days: 0
Related Articles

Generate Login Script(2008R2 And Older)

Generate Script from Logins of Sql Server to recreate in another instance


Log to find all the 'FAILED LOGIN ATTEMPTS' in SQL Server 2005

Log to find all the 'FAILED LOGIN ATTEMPTS' in SQL Server 2005


Script Login Differences

Compare the logins and users on two instances and generate a TSQL script to make them the same.


Create Login Script

Error with Create Login Script


Add a login to multiple SQL Servers

This is a simple powershell script that will add a particular login to multiple SQL Server instances...