This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<style lang="css"> | |
#the-canvas { | |
border: 1px solid black; | |
direction: ltr; | |
} |
This file contains 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 os | |
import random | |
import base64 | |
import requests | |
import string | |
SEARCHSP = list("_" + string.printable[:-6]) | |
PAD = string.ascii_lowercase + "!§$%&()=?-:;#'+*<>|" |
This file contains 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
# Gauss Jordan is from pastebin, lol | |
# https://pastebin.com/Efmb7bsN | |
import copy | |
gj_mat = [] | |
row = None | |
col = None | |
p = 21652247421304131782679331804390761485569 | |
def egcd(a, b): |
This file contains 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
from pwn import * | |
import random | |
import pickle | |
import binascii | |
from pure25519.eddsa import * | |
def getrandbytes(l): | |
return bytes(bytearray(random.getrandbits(8) for _ in xrange(l))) | |
This file contains 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
#define _POSIX_C_SOURCE 1 | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdbool.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <sys/random.h> | |
#include <sys/sendfile.h> |
This file contains 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 pexpect | |
import re | |
from multiprocessing import Process, Queue | |
from Crypto.Cipher import AES | |
def inv(x): | |
x ^= (x >> 18) | |
# Lowest 16 bit stay how they are, so we can just repeat... | |
x ^= (x << 15) & 0xEFC60000 | |
# Do it step by step |
This file contains 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
""" | |
VolgaCTF Quals 2018 forbidden crypto task | |
This implements the forbidden attack on Galois/Counter Mode AES | |
useage: sage -python forb_expl.py | |
""" | |
from binascii import unhexlify, hexlify | |
from sage.all import * | |
def slice_and_pad(b_str, bsize=16): |