Hackthebox, Hacking, Hackthebox Writeup, Htb, Crypto.
Here 1. challenge.py #!/usr/bin/python3 from Crypto.Util.number import getPrime, long_to_bytes, inverse flag = open('flag.txt', 'r').read().strip().encode() class RSA: def __init__(self): self.p = getPrime(512) self.q = getPrime(512) self.e = 3 self.n = self.p * self.q self.d = inverse(self.e,