This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[email protected] AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIN1gpUMh//f4gyrQ4JgLdrFsv8sc8oCJBcjB5lpclpQCAAAABHNzaDo= rot256@digit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBFdJtPsBEAD5nXy+MWGA5JjWMaT9Si8pgzSI8RTxHWxBTnun5pEqFMmNflhU | |
k3FDCSvW5zdm5zccYH+bqoHX7hHuDl9IhCGhzgbiTtVOctQMz0DN5SBMVrrwz/zi | |
aAxsYQT0pfWey4A7q6TSTZhToZOQH+mjR+b6p9w0t1HP73YqNjr7OEFBdaJS9RZG | |
sxD142PubPn1PV2Db7xP+nXxPal884Okbwy2gjrITG91x9IoDYa6Z+RtVwM8E10/ | |
i8b6sGHXoN8Yk5adcj9NmXz2q2kVT7nGUr93mx0zzjDnYNEhFJg+gHyRB5W8ru5m | |
9IaKyrHWLJZoGYYw6ttWX5Q8AyyTYWSZ58eChfAT+BKSLnTYLpYfpeWVXdpd4tyY | |
nQqYGOn2gpBZtTzzRuyDX6ONnQVA/e6fFBCsOkSvUQ2mVALZq1VZ+DTmosTm6mbv | |
tAwMfABALXYi5oiyPoyFO/P24/LC2tbgwrcHDXfJRmyI0B+3F6tk7RbXQjZn8cuE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check if running as root | |
if [ "$EUID" -ne 0 ]; then | |
echo "Please run as root" | |
exit 1 | |
fi | |
# Check if a command was provided | |
if [ $# -eq 0 ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
LIMB = 64 | |
mod = int(sys.argv[1]) if len(sys.argv) > 1 else 28948022309329048855892746252171976963363056481941560715954676764349967630337 | |
name = sys.argv[2] if len(sys.argv) > 2 else 'Fp' | |
bits = int(mod).bit_length() | |
limbs = (bits + LIMB - 1) // LIMB | |
size = limbs * LIMB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
processor : 15 | |
vendor_id : GenuineIntel | |
cpu family : 6 | |
model : 141 | |
model name : 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz | |
stepping : 1 | |
microcode : 0x34 | |
cpu MHz : 2300.000 | |
cache size : 24576 KB | |
physical id : 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e = 128 | |
E.<X> = GF(2^e) # E = GF(2^e) | |
P.<Y> = PolynomialRing(E) # P = GF(2^e)[Y] | |
F = E.base_ring() # F = GF(2) | |
V = VectorSpace(F, e) # V = (GF(2))^e | |
# isomorphism \phi : E -> V | |
def to_vector(elem): | |
assert elem in E | |
coeff = map(F, '{:b}'.format(elem.integer_representation())[::-1]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <avr/io.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <util/delay.h> | |
#include "aes.h" | |
#define UART_BAUD 9600 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
from pwn import * | |
from base64 import urlsafe_b64decode, urlsafe_b64encode | |
from oracle import PaddingOracle | |
from hashpumpy import hashpump | |
import requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
ASCII = set( | |
map(chr, range(0x20, 0x7f)) + | |
['\t', '\n'] | |
) | |
def xor(*args): | |
if len(args) > 2: | |
xs, ys = args[0], xor(*args[1:]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import random | |
EQ_CNT = 24 | |
RN_CNT = 10 | |
passwd = sys.argv[1] | |
rnd = lambda n: [random.randrange(0x1, 0x100) for _ in range(n)] | |
assert len(passwd) > 4 |
NewerOlder