Skip to content

Instantly share code, notes, and snippets.

@qr4
qr4 / ot-pwn.py
Last active October 7, 2018 10:30
oblivious protocol solution Hackover18
#!/usr/bin/env python3
# Author: lenerd@hackint
from argparse import ArgumentParser
import math
import sys
from telnetlib import Telnet
from phe import paillier
from gmpy2 import gcdext, invert