Skip to content

Instantly share code, notes, and snippets.

View markusleh's full-sized avatar
👋

Markus Lehtonen markusleh

👋
View GitHub Profile
import random
import math
value = random.randrange(0, 2)
vals = []
rounds = 1000
for i in range(0,rounds):
vals.append(random.randrange(0,2))
@markusleh
markusleh / keycloak-defaults
Last active April 28, 2023 09:59
Keycloak service script and default file for init.d
# General configuration for the init.d scripts,
# not necessarily for JBoss AS itself.
# default location: /etc/default/keycloak
## Location of JDK
# JAVA_HOME="/usr/lib/jvm/default-java"
## Location of WildFly
# JBOSS_HOME="/opt/keycloak"
@markusleh
markusleh / volatility-pool-visualize.py
Last active June 25, 2021 14:14
Python program to visualize Windows bigpool content
import svgwrite
import volatility.conf as conf
import volatility.registry as registry
import volatility.plugins.volshell as shell
registry.PluginImporter()
config = conf.ConfObject()
import volatility.commands as commands
import volatility.addrspace as addrspace
import volatility.utils as utils
registry.register_global_options(config, commands.Command)