← Back to Writeups
CUSTOMEasyCrypto

128 is new black — RSA Factorization

XESXOR9/2/20261 min read
#crypto#custom#easy#rsa_factorization_online

128 is new black — RSA Factorization

Platform: CUSTOM | Category: Crypto | Type: Challenge | Difficulty: Easy | OS: N/A | **Author: XESXOR Techniques: rsa_factorization_online

Summary

Walkthrough of the CUSTOM Crypto 128 is new black — RSA Factorization. Task: Factorize a 128-bit RSA modulus. Solution: Use online factorization service (factordb.com) to get the prime factors.

Description

Factorize n = 203412571701246538324790493908119368569. Answer is any factor.

Analysis

A 128-bit number is easily factorized using online services (factordb.com) or local tools (yafu, msieve).

Solution

python
#!/usr/bin/env python3
import requests

n = 203412571701246538324790493908119368569

# Using factordb API
url = f"http://factordb.com/api?query={n}"
response = requests.get(url)
data = response.json()

# Or directly:
# p = REDACTED
# q = 15727497203256431323
‍​‌‌​​‌​​​‌‌​​‌​​​​‌‌​‌​​​​‌‌‌​​‌​​‌‌​​​‌​​‌‌‌​​​​​‌‌​‌‌​​​‌‌​​​​‍

p = REDACTED
q = 15727497203256431323

assert p * q == n
print(f"p = {p}")
print(f"q = {q}")

# Flag is any of the factors
print(f"Flag: {p}")

‍​‌‌​​‌​​​‌‌​​‌​​​​‌‌​‌​​​​‌‌‌​​‌​​‌‌​​​‌​​‌‌‌​​​​​‌‌​‌‌​​​‌‌​​​​‍

Key Takeaways / Lessons

  • Mastering rsa_factorization_online was key to this challenge.
  • Always check for common misconfigurations and verify assumptions.

Crafted by XESXOR Research • 2026-03-08 • CUSTOM • 128 is new black — RSA Factorization • Difficulty: Easy