Skip to content

Instantly share code, notes, and snippets.

View simeononsecurity's full-sized avatar
:shipit:
I may be slow to respond.

SimeonOnSecurity simeononsecurity

:shipit:
I may be slow to respond.
View GitHub Profile
@simeononsecurity
simeononsecurity / test-public-dns-domain-resolution.ps1
Created April 5, 2024 01:39
Test Domain Name Resolution against Popular DNS Servers
# Define the list of domains to test
$domains = @("google.com", "simeononsecurity.com", "github.com")
# Define a list of public DNS servers, including those with ad and tracker blocking, and major ISPs
$dnsServers = @{
"Google" = @("8.8.8.8", "8.8.4.4")
"Control D" = @("76.76.2.0", "76.76.10.0")
"Quad9" = @("9.9.9.9", "149.112.112.112")
"OpenDNS Home" = @("208.67.222.222", "208.67.220.220")
"Cloudflare" = @("1.1.1.1", "1.0.0.1")
@MatthewVance
MatthewVance / unbound.conf
Last active May 6, 2024 21:18
Config for running Unbound as a caching DNS forwarder (performance settings optimized for Raspberry Pi 2).
server:
###########################################################################
# BASIC SETTINGS
###########################################################################
# Time to live maximum for RRsets and messages in the cache. If the maximum
# kicks in, responses to clients still get decrementing TTLs based on the
# original (larger) values. When the internal TTL expires, the cache item
# has expired. Can be set lower to force the resolver to query for data
# often, and not trust (very large) TTL values.
cache-max-ttl: 86400
@hinchley
hinchley / AppLocker.ps1
Created September 12, 2016 09:39
A PowerShell script for generating AppLocker policies. Usage is discussed in the following article: http://hinchley.net/2016/06/13/an-approach-for-managing-microsoft-applocker-policies/
<# examples:
# generate a baseline policy.
powershell.exe -file applocker.ps1 -baseline -output c:\policies\baseline.xml
# generate an application-specific policy.
powershell.exe -file applocker.ps1 -application -in c:\policies\baseline.xml -out c:\policies\application.xml
# generate an adhoc policy.
powershell.exe -file applocker.ps1 -adhoc -in c:\path -filter *.* -out c:\policies\adhoc.xml
@simeononsecurity
simeononsecurity / .Htaccess Protection
Created September 28, 2013 21:26
.Htaccess Protection
## Disable the server signature
ServerSignature Off
## protect against DOS attacks by limiting file upload size - 10240000 is 10 megabytes
LimitRequestBody 10240000
## pass the default character set
AddDefaultCharset utf-8
## Deny Access to these protected file extensions