Skip to content

Instantly share code, notes, and snippets.

View mback2k's full-sized avatar
👨‍👩‍👧‍👦
I may be slow to respond. Family life and day job keep me busy.

Marc Hörsken mback2k

👨‍👩‍👧‍👦
I may be slow to respond. Family life and day job keep me busy.
View GitHub Profile
@socheatsok78
socheatsok78 / README.md
Last active February 12, 2025 15:10
A simple fix for using "ca-certificates" to update Java "cacerts" store for container.

About

A simple fix for using ca-certificates to update Java cacerts store for container.

Use with pre-built JDK/JRE container

Due to the update-ca-certificates will output the Java cacerts store to /etc/ssl/certs/java/cacerts which the pre-built image not aware of the changes. So by removing the ${JAVA_HOME}/lib/security/cacerts and create a symbolic link from /etc/ssl/certs/java/cacerts to ${JAVA_HOME}/lib/security/cacerts will resolve the issue.

Alpine

FROM eclipse-temurin:17-jre-alpine
@psrok1
psrok1 / emotet-doc.py
Created May 17, 2019 13:29
URL unpacker from documents with malicious macros sent by Emotet
"""
Needs oledump.py in the same directory (download from https://raw.githubusercontent.com/DidierStevens/DidierStevensSuite/master/oledump.py)
and olefile (pip install olefile)
Usage: python2 emotet-doc.py [doc path]
"""
import base64
import re
import sys
@alexjebens
alexjebens / ghost-network-adapters-powershell.ps1
Last active January 22, 2023 22:55
Remove Ghost Network Adapters with PowerShell only
$T = @"
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace Win32
{
public static class SetupApi
{
// 1st form using a ClassGUID only, with Enumerator = IntPtr.Zero