<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>LCG on</title><link>/tags/lcg/</link><description>Recent content in LCG on</description><generator>Hugo -- gohugo.io</generator><lastBuildDate>Thu, 17 Jul 2025 21:00:16 +0100</lastBuildDate><atom:link href="/tags/lcg/index.xml" rel="self" type="application/rss+xml"/><item><title>Toxicity - SummerRush CTF</title><link>/post/sr25-toxicity/</link><pubDate>Thu, 17 Jul 2025 21:00:16 +0100</pubDate><guid>/post/sr25-toxicity/</guid><description>Click to expand challenge code
from Crypto.Util.number import bytes_to_long from os import urandom from PIL import Image import numpy as np import random class DoubleLCG: def __init__(self, a1,a2, b1,b2, m, seed1, seed2): self.a1 = a1 self.a2 = a2 self.b1 = b1 self.b2 = b2 self.m = m self.state1 = bytes_to_long(urandom(6)) if seed1 is None else seed1 self.state2 = bytes_to_long(urandom(6)) if seed2 is None else seed2 self.counter = 0 def refresh(self): self.</description></item></channel></rss>