Skip to content

Instantly share code, notes, and snippets.

View Zagrophyte's full-sized avatar

Travis Rosenbaum Zagrophyte

View GitHub Profile
namespace SafeAlert.Fircosoft.Net.Diagnostics
open System.Collections.Generic
open System.Diagnostics
open System
open System.Text
/// <summary>
/// Allows ad-hoc timing of any delegate method, or more robust parallel timing of multiple named tasks.
/// </summary>
@Zagrophyte
Zagrophyte / StandardConstraintAndIndexNameAnalyzer.sql
Last active September 30, 2021 09:25
SQL Table Index and Constraint Name Analysis and Repair Tool
/* SQL Table Index and Constraint Name Analysis and Repair Tool
* Finds all indexes and constraints with names that do not conform to expected
* patterns and helpfully generates the SQL to rename them to the right values.
*
* NOTE: I am not responsible for any issues that result from the use of this script,
* always review any generated SQL output before running!
*/
;WITH AllConstraints AS
(
SELECT Type = 'PrimaryKey'
@Zagrophyte
Zagrophyte / MS15-034Tester.ps1
Last active April 4, 2021 15:58
Sends a CVE-2015-1635 / MS15-034 Request and checks for vulnerability
# Sends a CVE-2015-1635 / MS15-034 Request and checks for vulnerability
function TestMS15_034($hostname, $port)
{
if ($port -eq $null)
{
$port = 80
}
$tc = New-Object Net.Sockets.TcpClient
@Zagrophyte
Zagrophyte / MS15-034Tester.cs
Last active February 18, 2023 01:06
MS15-034 / CVE-2015-1635 Tester
void Main()
{
TestMS15_034("www.example.com"); // Replace with whatever server(s) you'd like to test.
TestMS15_034("www2.example.com", 8080);
}
// Sends CVE-2015-1635 / MS15-034 Test Request and checks for vulnerability
public void TestMS15_034(String host, int port = 80)
{
TcpClient tc = new TcpClient();

Keybase proof

I hereby claim:

  • I am Zagrophyte on github.
  • I am trosenbaum (https://keybase.io/trosenbaum) on keybase.
  • I have a public key whose fingerprint is 9390 0370 349C B7C0 D28E 82C5 8975 6C62 BC70 D07C

To claim this, I am signing this object: