Skip to content

Instantly share code, notes, and snippets.

@TomSellers
TomSellers / test.html
Created March 10, 2023 13:22
Chrome crash reproducer
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>File input crash test</title>
</head>
<body>
<input type="file" accept="..json">
</body>
@TomSellers
TomSellers / Instructions.txt
Last active January 4, 2023 07:24
Building Nmap from GitHub
If you are looking to build Nmap from GitHub and/or test pull requests you can
use the instructions below. Note that they are not tailored towards those who
will be modifying the code or creating pull requests themselves.
Note: The Nmap GitHub repository is a mirror of the official Nmap Subversion
repository which is considered the 'source of truth' for the Nmap
codebase.
Getting the code
##############################NEXT PROBE##############################
# DTLS 1.0 Probe - Client Hello (x16) - Cipher suite TLS_RSA_WITH_AES_128_CBC_SHA (x00 x2f)
# no compression
Probe UDP DTLS q|\x16\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x56\x01\x00\x00\x4a\x00\x00\x00\x00\x00\x00\x00\x4a\x01\x00\x22\x22\x22\x22\xe2\x12\x23\xdf\x12\xa8\xf5\xe1\x00\x7c\x5f\xe$
ports 443,4433
rarity 9
# DTLS 1.0 - Hello Verify Request (x3)
# Non-product specific - Remaining 20 bytes are session cookie and so will change
@TomSellers
TomSellers / gist:89c9d16ee3e75e296a3b
Last active August 29, 2015 14:21
Harden RDP on Windows 2012 / 2012 R2
###############################################################################
# Remote Desktop Services settings
# Remote Desktop Services: Enable NLA Requirement
(Get-WmiObject -class "Win32_TSGeneralSetting" -Namespace root\cimv2\terminalservices -Filter "TerminalName='RDP-tcp'").UserAuthenticationRequired
(Get-WmiObject -class "Win32_TSGeneralSetting" -Namespace root\cimv2\terminalservices -Filter "TerminalName='RDP-tcp'").SetUserAuthenticationRequired(1)
# Remote Desktop Services: Require 'High' level of encryption
(Get-WmiObject -class "Win32_TSGeneralSetting" -Namespace root\cimv2\terminalservices -Filter "TerminalName='RDP-tcp'").SetEncryptionLevel(3)
<?xml version="1.0"?>
<!--
References:
Error codes: http://dev.mysql.com/doc/refman/5.5/en/error-messages-server.html
-->
<fingerprints>
<fingerprint pattern="^.{1,4}\\x00\\x00\\x00(?:\n|\t|\\x0a|\\x09)([-~.+\w\s:']+)\\x00">
@TomSellers
TomSellers / Top500_MySQL
Created January 27, 2015 13:26
Top500_MySQL
Product statistics:
Count Product
431422 Host not allowed to connect
125330 Blocked, too many errors from this host
25841 5.5.23-55
21950 5.1.66-cll
20591 5.0.95
17625 5.5.29-log
15292 4.0.27-log
@TomSellers
TomSellers / core.rb_diff
Created October 31, 2014 16:02
Recent changes to core.rb
diff --git a/lib/msf/ui/console/command_dispatcher/core.rb b/lib/msf/ui/console/command_dispatcher/core.rb
index ed185d3..24bc982 100644
--- a/lib/msf/ui/console/command_dispatcher/core.rb
+++ b/lib/msf/ui/console/command_dispatcher/core.rb
@@ -797,7 +797,11 @@ class Core
# Terminate the supplied job ID(s)
when "-k"
- job_list = build_jobs_array(val)
+ job_list = build_range_array(val)
@TomSellers
TomSellers / RDCMan_Test.rdg
Created August 31, 2014 19:01
Test .RDG file for Remote Desktop Connection Manager
<?xml version="1.0" encoding="utf-8"?>
<RDCMan schemaVersion="1">
<version>2.2</version>
<file>
<properties>
<name>First File</name>
<expanded>True</expanded>
<comment />
<logonCredentials inherit="FromParent" />
<connectionSettings inherit="FromParent" />