Skip to content

Instantly share code, notes, and snippets.

View trondweiseth's full-sized avatar

W3i537h trondweiseth

  • Norway
View GitHub Profile
@trondweiseth
trondweiseth / Service KMS
Created September 3, 2022 17:08 — forked from judero01col/Service KMS
Volume License Activation Key Service - KMS
## Find Available Target Editions
DISM.exe /Online /Get-TargetEditions
## Convert Server Standard 2019 Evaluation to Server Standard 2019
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
## How To Activate
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato
@trondweiseth
trondweiseth / EventLogInject.cs
Created May 9, 2022 18:10
POC to inject and extract shellcode from Windows Event Logs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace HiddenEventLogs
{
@trondweiseth
trondweiseth / CreateSSL.sh
Created April 12, 2022 01:53
A short bash script to make it easier to create openssl CSR and encrypted KEY with and without alt names
#!/bin/bash
OLD_IFS=$IFS
IFS=','
FQDN=$1
DIR=$(pwd)
KEYLINE="----------KEY----------"
CSRLINE="----------CSR----------"
COUNTRY="US"
STATE="NY"