all InfoSec news
Lost Modulus — HackTheBox Crypto Challenge(RSA) Simple Writeup | 2023
Jan. 13, 2023, 10:06 a.m. | Karthikeyan Nagaraj
InfoSec Write-ups - Medium infosecwriteups.com
Lost Modulus — HackTheBox Crypto Challenge(RSA) Simple Writeup | 2023
HackTheBox’s Lost Modulus RSA Crypto Challenge simple writeup | Karthikeyan Nagaraj
Description:
I encrypted a secret message with RSA but I lost the modulus. Can you help me recover it?
Task Files:
You can Download the task Files 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 …
challenge class crypto def download encrypted files flag hacking hackthebox hackthebox-writeup htb import lost message recover rsa secret simple task txt writeup
More from infosecwriteups.com / InfoSec Write-ups - Medium
Hack Stories: Hacking Hackers EP:3
2 days, 12 hours ago |
infosecwriteups.com
Mastering Shodan Search Engine
3 days, 13 hours ago |
infosecwriteups.com
Email Verification Bypass via Remember Me
3 days, 13 hours ago |
infosecwriteups.com
Typo Trouble: Exploring the Telegram Python RCE Vulnerability
3 days, 13 hours ago |
infosecwriteups.com
Active DNS Recon using AXIOM
3 days, 13 hours ago |
infosecwriteups.com
Jobs in InfoSec / Cybersecurity
SOC 2 Manager, Audit and Certification
@ Deloitte | US and CA Multiple Locations
Security Operations Manager (f/d/m), 80-100%
@ Alpiq | Lausanne, CH
Project Manager - Cyber Security
@ Quantrics Enterprises Inc. | Philippines
Sr. Principal Application Security Engineer
@ Gen | DEU - Tettnang, Kaplaneiweg
(Senior) Security Architect Car IT/ Threat Modelling / Information Security (m/f/x)
@ Mercedes-Benz Tech Innovation | Ulm
Information System Security Officer
@ ManTech | 200AE - 375 E St SW, Washington, DC