Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 506 Bytes

Dachshund Attacks.md

File metadata and controls

20 lines (16 loc) · 506 Bytes

Dachshund Attacks

Small d, so weiner's attack:

from pwn import *
import owiener
from Crypto.Util.number import long_to_bytes

conn = remote('mercury.picoctf.net', 36463, level = 'debug')
conn.recvline()
e = int(conn.recvline().decode('utf-8').split(':')[1].strip())
n = int(conn.recvline().decode('utf-8').split(':')[1].strip())
c = int(conn.recvline().decode('utf-8').split(':')[1].strip())

conn.close()
d = owiener.attack(e, n)
m = pow(c, d, n)
print(long_to_bytes(m).decode('utf-8'))