Skip to content

Instantly share code, notes, and snippets.

@AHooijdonk
AHooijdonk / ExchangeInstallLE.bat
Created Jun 18, 2020 — forked from anthonyeden/ExchangeInstallLE.bat
Let's Encrypt & Microsoft Exchange - Installation Script
View ExchangeInstallLE.bat
"C:\Program Files\Lets Encrypt\letsencrypt.exe" --renew --baseuri "https://acme-v01.api.letsencrypt.org/"
powershell -File "C:\Program Files\Lets Encrypt\ExchangeLetsEncrypt.ps1" -CertificateImport "C:\ProgramData\letsencrypt-win-simple\httpsacme-v01.api.letsencrypt.org\mail.example.com-all.pfx" -ServerName exchange.example.com
@AHooijdonk
AHooijdonk / windows_hardening.cmd
Created Jun 18, 2020 — forked from mackwage/windows_hardening.cmd
Script to perform some hardening of Windows OS
View windows_hardening.cmd
:: Windows 10 Hardening Script
:: This is based mostly on my own personal research and testing. My objective is to secure/harden Windows 10 as much as possible while not impacting usability at all. (Think being able to run on this computer's of family members so secure them but not increase the chances of them having to call you to troubleshoot something related to it later on). References for virtually all settings can be found at the bottom. Just before the references section, you will always find several security settings commented out as they could lead to compatibility issues in common consumer setups but they're worth considering.
:: Obligatory 'views are my own'. :)
:: Thank you @jaredhaight for the Win Firewall config recommendations!
:: Thank you @ricardojba for the DLL Safe Order Search reg key!
:: Thank you @jessicaknotts for the help on testing Exploit Guard configs and checking privacy settings!
:: Best script I've found for Debloating Windows 10: https://github.com/Sycnex/Windows10Debloater
:
@AHooijdonk
AHooijdonk / private-geoip.yaml
Created Apr 30, 2019
Sample dictionary file for use with cef-source.conf and cidr2regex.py. Order cidr from small to large subnet.
View private-geoip.yaml
^(123\.123\.123\.16)$: "Wake Atoll National Wildlife Refuge,Wake Island,19.2932614,166.6345151
^(1[01]\.(?:[0-9]|[1-9][0-9]|1(?:[0-9][0-9])|2(?:[0-4][0-9]|5[0-5]))\.(?:[0-9]|[1-9][0-9]|1(?:[0-9][0-9])|2(?:[0-4][0-9]|5[0-5]))\.(?:[0-9]|[1-9][0-9]|1(?:[0-9][0-9])|2(?:[0-4][0-9]|5[0-5])))$: "Honolulu,Hawaii,21.3280193,-157.8691128
@AHooijdonk
AHooijdonk / cef-source.conf
Last active Apr 30, 2019
Logstash conf file to use with private ip translate dictionary to add GEOIP data.
View cef-source.conf
# cef source using transalate and disctionary file for mapping private ip ranges to location (GEOIP) data for Logstash
input {
udp {
port => <number>
codec => "cef"
tags => ["cef-source"]
id => "cef-source"
}
}
filter {
View cidr2regex.py
#!/usr/bin/python
''' Not my script, found on the Internet, Thanks go out to the original creator who ever you may be, d-fault.nl and nprintz
'''
from __future__ import division
from __future__ import print_function
import sys
def cidr_to_regex(cidr):
ip, prefix = cidr.split('/')
You can’t perform that action at this time.