Skip to content

Instantly share code, notes, and snippets.

@Acmosa
Acmosa / ExchangeInstallLE.bat
Created June 18, 2020 07:11 — forked from anthonyeden/ExchangeInstallLE.bat
Let's Encrypt & Microsoft Exchange - Installation Script
"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
@Acmosa
Acmosa / windows_hardening.cmd
Created June 18, 2020 07:11 — forked from mackwage/windows_hardening.cmd
Script to perform some hardening of Windows OS
:: 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
:
@Acmosa
Acmosa / private-geoip.yaml
Created April 30, 2019 11:00
Sample dictionary file for use with cef-source.conf and cidr2regex.py. Order cidr from small to large subnet.
^(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
@Acmosa
Acmosa / cef-source.conf
Last active April 30, 2019 11:00
Logstash conf file to use with private ip translate dictionary to add GEOIP data.
# 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 {
#!/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('/')