Skip to content

Instantly share code, notes, and snippets.

View chacha_salsa.py
from cryptopals_lib import *
from copy import copy
def chacha_key_generation(iv, key, position=0):
'''
|"expa"|"nd 3"|"2-by"|"te k"|
|Key |Key |Key |Key |
|Key |Key |Key |Key |
|Pos. |Pos. |Nonce |Nonce |
'''
View ntlmv2.py
import hashlib, sys, os, hmac
from Crypto.Cipher import DES
def expand_DES_key(key):
# Expand the key from a 7-byte password key into a 8-byte DES key
if not isinstance(key, bytes):
key = bytes(key, encoding='utf8')
key = bytearray(key[:7]).ljust(7, b'\x00')
s = bytearray()
s.append(((key[0] >> 1) & 0x7f) << 1)
View unicorn.conf
upstream unicorn {
server 127.0.0.1:3000 fail_timeout=0;
}
server {
listen 80;
server_name ;
root /var/www/html;
index $uri;
try_files /system/maintenance.html @unicorn;
View keybase.md

Keybase proof

I hereby claim:

  • I am generalzero on github.
  • I am generalzer0 (https://keybase.io/generalzer0) on keybase.
  • I have a public key ASDASw384GMj489Rjh1l2_Q3OVIjey1U1TluNyxfb2awMAo

To claim this, I am signing this object:

@GeneralZero
GeneralZero / Decripted Badges
Last active Dec 20, 2015
Defcon badge decriptor
View Decripted Badges
Black Queen
07-21-14-07-19-22-01-17-22-01-20-14-01-06-10-18-05-06
GUNGSVAQVATNAFJREF
THAT FINDING ANSWERS
Red 2
12-12-20-08-05-06-05-05-04-02-01-03-11-25-15-21-14
LLTHEFEEDBACKYOUN
YYGURSRRQONPXLBHA
View basic.json
{
"name": "Example",
"author": {
"name": "Aaron Patterson",
"twitter": "@tenderlove",
"url": "http://tenderlovemaking.com"
},
"slides": [
{
"type": "main",