Skip to content

Instantly share code, notes, and snippets.

View odds.py
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 Jul 12, 2020
Keycloak service script and default file for init.d
View keycloak-defaults
# 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 Jun 13, 2017
Python program to visualize Windows bigpool content
View volatility-pool-visualize.py
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)
You can’t perform that action at this time.