<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Cadet on Medium]]></title>
        <description><![CDATA[Stories by Cadet on Medium]]></description>
        <link>https://medium.com/@cadet3305?source=rss-403b004ccba9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*wwXqAKJEgb0cHnHk</url>
            <title>Stories by Cadet on Medium</title>
            <link>https://medium.com/@cadet3305?source=rss-403b004ccba9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 10:58:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cadet3305/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[BYPASS CTF]]></title>
            <link>https://medium.com/@cadet3305/bypass-ctf-4920289bd603?source=rss-403b004ccba9------2</link>
            <guid isPermaLink="false">https://medium.com/p/4920289bd603</guid>
            <dc:creator><![CDATA[Cadet]]></dc:creator>
            <pubDate>Wed, 31 Dec 2025 15:04:30 GMT</pubDate>
            <atom:updated>2026-01-01T19:42:30.090Z</atom:updated>
            <content:encoded><![CDATA[<h3>Piano: Medium<br>Steganography Category: 250 Points</h3><p>“They said the melody was cursed… a tune played by a crazy pirate who hid his treasure in sound itself.”</p><p>Pay close attention, sailor. The chords you hear aren’t random; they spell out the name of his lost ship. Find the word, take the flag, and hope Davy Jones doesn’t find you first.</p><p>Files given:</p><p>12.mp3 is an audio file with a short piano melody in it.</p><p>Goal: Figure out what the audio file is saying so you can get the flag. Format of the flag: BYPASS_CTF{…</p><p>Method for Finding a Solution: Step 1: First Analysis I began by listening to 12.mp3, the audio file that was sent to me. It was a short, clear recording of a piano playing separate notes. There was no background noise or complicated harmony, so advanced steganography methods like Least Significant Bit (LSB) encoding or spectrogram text hiding were not possible.</p><p>The challenge description had a big hint: “The chords you hear… spell the name.” This suggested a direct translation: Musical Notes → Letters.</p><p>Step 2: Transcribing the Melody I needed to identify the specific musical notes being played. In Western music theory, notes are named using the letters A through G.</p><p>I wrote a quick Python script using the librosa library to analyze the audio frequencies and map them to their corresponding note names.</p><p>Step 3: Execution &amp; Decoding The script analyzed the pitch of each onset (key press) and returned the following sequence:</p><p>Note 1: B</p><p>Note 2: A</p><p>Note 3: D</p><p>Note 4: F</p><p>Note 5: A</p><p>Note 6: C</p><p>Note 7: E</p><p>Step 4: Assembling the Flag Connecting the notes together spelled out BADFACE. This creates the hex-speak word 0xBADFACE, which fits perfectly with the pirate theme (“Mad Pirate” / “Bad Face”).</p><p>Tools &amp; Resources Used: Python for automated audio analysis.</p><p>Librosa: A Python package for music and audio analysis.</p><p>Code/Commands Used: <br>Here is the script I used to extract the notes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YnWxGPeunh7bV6mLfSkCsw.png" /></figure><h4>2. The Gold Challenge</h4><p>Use Stegsolve to find the layers underneath this one, as the challenge suggests.</p><p>(i) Go to Stegsolve to change the color panels.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*a7l9EfAndJaSWHKgjVe8Vw.png" /></figure><p>You can obtain &quot;SunlightRevealsAll&quot; by scanning the QR code.</p><p>Use it in Steghide now to obtain a flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*0zNekpbUrPeQAvGRmm97Kw.png" /></figure><h4>Jigsaw puzzle</h4><p>Putting everything in the right order is simple.</p><p>Arrange the puzzle using this image, copy every word from left to right and top to bottom, and then use rot13 to get the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*zMV5ZRiRCxofW9--" /></figure><h4>The Locker of Lost Souls</h4><p>Use the Stegsolve Stereogram for this one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*czp2wZ6j0C23jed93_TxjA.png" /></figure><h4>Jellies</h4><p>reverse search image</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gSVNxEX_fT3pNvIKAm_8ig.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fT1ifmR-NNPa_3_hEhng3Q.png" /></figure><p>found this website online; go to the YT link of this live</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IYxr-FlM4zCPIOQmcV_lnw.png" /></figure><p>You will see (west coast sea nettles) in the description. I tried a lot of different combinations to solve it, and the flag format is specie_code. The organizers didn&#39;t specify the code, so I assumed the spices had a special code. Additionally, they didn&#39;t specify that it is case sensitive.</p><p>To find the code, use zsteg on the image.</p><p>final flag is {Sea_Neattles_code}.</p><h4>Pelagic Node-14</h4><p>This was an extension of the above challenge: reverse search this image</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wbT0JzNpav8S1vOTz9UdPw.png" /></figure><p>You will get a Facebook Live; open it. It is from the same Pacific aquarium.</p><p>go to explore.org</p><p>go inside ocean category</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5CW0CYectUZuI-BmN6S5Vw.png" /></figure><p>Open it; the first stream will is your flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gdnKqNI--xagMW6Jh7flIg.png" /></figure><p>This doesn&#39;t look similar at first, but see the surroundings, and you will see that it is the same, and the answer is Long Beach, California, USA. The flag is case sensitive.</p><h4>Address Unknown</h4><p>Go to whois.com for domain lookup</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FLZZBaKPMqLpcE89G7Ni6Q.png" /></figure><p>enter the website, and you will get details</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*ro34DVA3S8Jrn-0CvbdGWw.png" /></figure><p>It is a Kalkofnsvegur 2 flag.</p><h4>The Key Was Never Text</h4><p>18 5 25 11 10 1 22 9 11 9 3 5 12 1 14 4</p><p>map it from the alphabets from 1 to 26</p><p>You will get REYKJAVIK, ICELAND.</p><p>put it in format and submit it.</p><h4>Pieces of Four</h4><p>Correct the file&#39;s first two bytes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3PE4mhscaQnKO1Rwd6EzhQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*cy04jrEoQWX3AcgAHh_-wA.png" /></figure><p>You receive a QR code, but there are still more parts.</p><p>There are several JPG chunks in the Hex Editor; copy and combine them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*5F4UeYHw8n4JHTuclYeScA.png" /></figure><p>Obtain the flag BYPASS_CTF{FOUR_PIECES_ONE_TRUTH} after joining each image scan.</p><h4>The Captain’s Session</h4><p>Use gunzip to open the file, then use tar -xvf filename.tar.</p><p>A Chrome profile will be sent to you.</p><p>Make a new profile in Chrome to set up this profile on your computer. Next, navigate to %LOCALAPPDATA%\Google\Chrome\User Data on your computer.</p><p>Transfer all of the information from profile 1 to the new profile you created in Chrome.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mxUsEweYTIi1SmslDyS2gg.png" /></figure><p>Check your bookmarks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ol66jB3L7nbVZZ5RvgBFag.png" /></figure><p>It includes the isdf-ait website.</p><p>To find the password, navigate to profile1 and look for the login data file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zY4aM6-uMCIkvLIReBXIQw.png" /></figure><p>Open it in SQLite to discover the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u9wcvbu44tyM_GZfJ5zsbA.png" /></figure><p>The password is stepped_on.</p><p>Run the run. sh file now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RS7PjPhwsO5bzRlh4U12aQ.png" /></figure><p>Open the Chrome profile, then select History.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*upFFwcuf-1yD35LcAP7Zag.png" /></figure><p>received the third section.</p><h4>Dead Man’s Riddle</h4><p>check file type</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kex6Zm54TT9ZdMAs6CBzIQ.png" /></figure><p>use strings to find the flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hVPAz60s1tQEFSTy0f5pIQ.png" /></figure><p>got the flag and some instructions</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*F3omltR8vgLjX19UxV1i2g.png" /></figure><p>However, it is a phony flag.</p><p>Run the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4wBhoZ9OMYDDgKN16_j_cw.png" /></figure><p>Use the nm command. The nm command in Linux is a <strong>utility used to list the symbols from object files, executable files, and libraries.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*7xovwI2AcRbQlOV8AE5Xsg.png" /></figure><p>Find input length requirement (main).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MRW_Pfmw2lHQXSU5ZQA1wA.png" /></figure><p><strong>0x1e = 30 characters:</strong></p><p>Extract the expected constants from check_course</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*SYkW7__J0czoEy3WGTEceQ.png" /></figure><p>Invert the transform to recover the original input</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hQNvaxx8JDV_0NZBjRoCmQ.png" /></figure><h3>The Captain’s Sextant</h3><p>Check file type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hwN9yzgGXwcFJB3wiUnddw.png" /></figure><p>look for strings</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*Vqt29mOumqtM-ZwXP55HYA.png" /></figure><p>The two BYPASS_CTF{…} strings you see via strings are decoys. The real flag is generated from the g_star_timings array using the align_star(count, val) function.</p><p>align_star does:</p><p>seed = 0x1337b0a7</p><p>run an LCG count times: seed = (seed * 0x41C64E6D + 0x3039) &amp; 0x7fffffff</p><p>take one byte: ((seed &gt;&gt; (count &amp; 3)) &amp; 0xff)</p><p>XOR with g_star_timings[count]</p><p>Running that for count = 0..43 produces the flag bytes directly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1wLwrss63tox_Sv37uWMbw.png" /></figure><h3>Count the Steps, Not the Stars</h3><p>inspect the encryptor</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*ipv0i52meJgP3EKkNf8nGw.png" /></figure><p>You’ll see the key line (same logic even though n is masked):</p><p>encryption step: v = (v &lt;&lt; s) ^ s</p><p>applied for multiple s values using reduce(…)</p><p>input is ord(char) ** 2</p><p>Important math trick: After a step with shift s, the lowest s bits of the result become exactly s. <br>That means for the last step s_last, ciphertext y satisfies:</p><p>Create a solver script</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*eR6qw3GMKi7oVfXl_SiHCg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bYZjTqgDtqP3BXD88C84ug.png" /></figure><p>Take out all the ??s and send in your response.</p><h3>Pirate Code Reworked</h3><p>Go to <strong>Sepolia Etherscan, and</strong> paste the address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7_2VY-ow2zFB2clzXO91Gg.png" /></figure><p>Go to check each transaction; you will see it in one of the transaction descriptions.</p><p>0x608060405234801561001057600080fd5b50424433604051602001610026939291906102ba565b6040516020818303038152906040528051906020012060018190555060007f4259504153535f4354467b000000000000000000000000000000000000000000905060007f626c30636b636834696e00000000000000000000000000000000000000000000905060007f5f31735f66756e6e6e7d0000000000000000000000000000000000000000000090506000336040516020016100c491906102f7565b6040516020818303038152906040528051906020012060001c905060015484186000808381526020019081526020016000208190555060004260405160200161010d9190610312565b6040516020818303038152906040528051906020012060001c90506001548418600080838152602001908152602001600020819055506000436040516020016101569190610312565b6040516020818303038152906040528051906020012060001c90506001548418600080838152602001908152602001600020819055506001547f4e6f745f48657265000000000000000000000000000000000000000000000000186000806040516020016101c390610384565b6040516020818303038152906040528051906020012060001c8152602001908152602001600020819055506000801b600080613039815260200190815260200160002081905550505050505050610399565b6000819050919050565b6000819050919050565b61023a61023582610215565b61021f565b82525050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061026b82610240565b9050919050565b60008160601b9050919050565b600061028a82610272565b9050919050565b600061029c8261027f565b9050919050565b6102b46102af82610260565b610291565b82525050565b60006102c68286610229565b6020820191506102d68285610229565b6020820191506102e682846102a3565b601482019150819050949350505050565b600061030382846102a3565b60148201915081905092915050565b600061031e8284610229565b60208201915081905092915050565b600081905092915050565b7f61646d696e000000000000000000000000000000000000000000000000000000600082015250565b600061036e60058361032d565b915061037982610338565b600582019050919050565b600061038f82610361565b9150819050919050565b6084806103a76000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806383197ef014602d575b600080fd5b60336035565b005b3373ffffffffffffffffffffffffffffffffffffffff16fffea264697066735822122032ea71a4ffd5308cc1714de396f9bb67774c29ed6b0648e1c8207a3b2bcff5b864736f6c63430008140033</p><p>Put this into any AI to get an answer.</p><p>0x4259504153535f4354467b → BYPASS_CTF{</p><p>0x626c30636b636834696e → bl0ckch4in</p><p>0x5f31735f66756e6e6e7d → _1s_funnn}</p><h3>Dead Men Speak NO Plaintext</h3><p>As stated in the challenge, we can presume that the pcap file contains an audio file.</p><p>To extract the audio, we can use Python code or Wireshark.</p><pre>#!/usr/bin/env python3<br>import argparse<br>import collections<br>import os<br>import struct<br>import wave<br><br>from scapy.all import PcapReader, PcapNgReader, UDP, IP, IPv6, Raw  # pip install scapy<br><br># audioop is deprecated in Python 3.13+, but still works in 3.8–3.12<br>import audioop<br><br><br>def looks_like_rtp(payload: bytes) -&gt; bool:<br>    # RTP header is at least 12 bytes<br>    if len(payload) &lt; 12:<br>        return False<br>    # Version is top 2 bits of first byte, should be 2<br>    v = payload[0] &gt;&gt; 6<br>    return v == 2<br><br><br>def parse_rtp(payload: bytes):<br>    &quot;&quot;&quot;<br>    Returns: (pt, seq, ts, ssrc, payload_bytes) or None if malformed.<br>    Handles CSRC list and header extension, and strips padding if present.<br>    &quot;&quot;&quot;<br>    if len(payload) &lt; 12:<br>        return None<br><br>    b0 = payload[0]<br>    b1 = payload[1]<br><br>    v = b0 &gt;&gt; 6<br>    if v != 2:<br>        return None<br><br>    p = (b0 &gt;&gt; 5) &amp; 0x01<br>    x = (b0 &gt;&gt; 4) &amp; 0x01<br>    cc = b0 &amp; 0x0F<br><br>    pt = b1 &amp; 0x7F  # payload type<br>    seq = struct.unpack(&quot;!H&quot;, payload[2:4])[0]<br>    ts = struct.unpack(&quot;!I&quot;, payload[4:8])[0]<br>    ssrc = struct.unpack(&quot;!I&quot;, payload[8:12])[0]<br><br>    hdr_len = 12 + 4 * cc<br>    if len(payload) &lt; hdr_len:<br>        return None<br><br>    # Header extension<br>    if x:<br>        if len(payload) &lt; hdr_len + 4:<br>            return None<br>        ext_len_words = struct.unpack(&quot;!H&quot;, payload[hdr_len + 2:hdr_len + 4])[0]<br>        hdr_len += 4 + (ext_len_words * 4)<br>        if len(payload) &lt; hdr_len:<br>            return None<br><br>    end = len(payload)<br>    # Padding: last byte says how many bytes of padding<br>    if p:<br>        pad = payload[-1]<br>        if pad == 0 or pad &gt; (end - hdr_len):<br>            # malformed padding<br>            return None<br>        end -= pad<br><br>    return pt, seq, ts, ssrc, payload[hdr_len:end]<br><br><br>def seq_sort_key(seq: int, base: int) -&gt; int:<br>    # sort with wrap-around handling<br>    return (seq - base) % 65536<br><br><br>def decode_g711(raw: bytes, pt: int) -&gt; bytes:<br>    # Convert to 16-bit PCM (sample width=2)<br>    if pt == 0:   # PCMU<br>        return audioop.ulaw2lin(raw, 2)<br>    if pt == 8:   # PCMA<br>        return audioop.alaw2lin(raw, 2)<br>    raise ValueError(f&quot;Unsupported RTP payload type {pt} (only 0=PCMU, 8=PCMA supported).&quot;)<br><br><br>def open_reader(path: str):<br>    # pcapng vs pcap<br>    try:<br>        return PcapNgReader(path)<br>    except Exception:<br>        return PcapReader(path)<br><br><br>def main():<br>    ap = argparse.ArgumentParser(description=&quot;Extract RTP (G.711 PCMU/PCMA) audio from pcap/pcapng into WAV.&quot;)<br>    ap.add_argument(&quot;pcap&quot;, help=&quot;Input .pcap or .pcapng&quot;)<br>    ap.add_argument(&quot;-o&quot;, &quot;--out&quot;, default=&quot;rtp_audio.wav&quot;, help=&quot;Output WAV (default: rtp_audio.wav)&quot;)<br>    ap.add_argument(&quot;--all&quot;, action=&quot;store_true&quot;, help=&quot;Export all detected RTP streams (creates a folder).&quot;)<br>    args = ap.parse_args()<br><br>    # stream_key: (src, sport, dst, dport, ssrc, pt)<br>    streams = collections.defaultdict(list)<br><br>    reader = open_reader(args.pcap)<br>    with reader:<br>        for pkt in reader:<br>            if UDP not in pkt:<br>                continue<br>            udp = pkt[UDP]<br>            if Raw not in udp:<br>                continue<br><br>            raw = bytes(udp[Raw].load)<br>            if not looks_like_rtp(raw):<br>                continue<br><br>            parsed = parse_rtp(raw)<br>            if not parsed:<br>                continue<br><br>            pt, seq, ts, ssrc, payload = parsed<br><br>            # Only keep codecs we can decode (you can remove this filter if you want inventory)<br>            if pt not in (0, 8):<br>                continue<br><br>            # IP addressing<br>            src = dst = None<br>            if IP in pkt:<br>                src, dst = pkt[IP].src, pkt[IP].dst<br>            elif IPv6 in pkt:<br>                src, dst = pkt[IPv6].src, pkt[IPv6].dst<br>            else:<br>                continue<br><br>            key = (src, int(udp.sport), dst, int(udp.dport), int(ssrc), int(pt))<br>            streams[key].append((seq, ts, payload))<br><br>    if not streams:<br>        raise SystemExit(&quot;No decodable RTP (PT=0/8) found. (Could be SRTP or a different codec.)&quot;)<br><br>    def export_one(key, frames, out_path):<br>        # Sort frames by RTP sequence with wrap-around handling<br>        seqs = [s for (s, _, _) in frames]<br>        base = seqs[0]<br>        # choose a base that makes sorting stable: use the minimum seq in the capture<br>        base = min(seqs)<br><br>        frames_sorted = sorted(frames, key=lambda f: seq_sort_key(f[0], base))<br><br>        # Concatenate payloads, skipping duplicates<br>        seen = set()<br>        raw_audio = bytearray()<br>        for seq, ts, payload in frames_sorted:<br>            if seq in seen:<br>                continue<br>            seen.add(seq)<br>            raw_audio.extend(payload)<br><br>        pt = key[-1]<br>        pcm16 = decode_g711(bytes(raw_audio), pt)<br><br>        # 8kHz mono is typical for G.711<br>        os.makedirs(os.path.dirname(out_path) or &quot;.&quot;, exist_ok=True)<br>        with wave.open(out_path, &quot;wb&quot;) as wf:<br>            wf.setnchannels(1)<br>            wf.setsampwidth(2)      # 16-bit PCM<br>            wf.setframerate(8000)   # G.711 sample rate<br>            wf.writeframes(pcm16)<br><br>    # Export all streams or just the “best” stream (most packets)<br>    if args.all:<br>        out_dir = args.out<br>        os.makedirs(out_dir, exist_ok=True)<br>        for i, (key, frames) in enumerate(sorted(streams.items(), key=lambda kv: len(kv[1]), reverse=True), 1):<br>            src, sport, dst, dport, ssrc, pt = key<br>            fname = f&quot;stream{i:02d}_{src}_{sport}_to_{dst}_{dport}_ssrc{ssrc}_pt{pt}.wav&quot;.replace(&quot;:&quot;, &quot;_&quot;)<br>            export_one(key, frames, os.path.join(out_dir, fname))<br>        print(f&quot;[OK] Exported {len(streams)} streams into folder: {out_dir}&quot;)<br>    else:<br>        best_key, best_frames = max(streams.items(), key=lambda kv: len(kv[1]))<br>        export_one(best_key, best_frames, args.out)<br>        src, sport, dst, dport, ssrc, pt = best_key<br>        print(f&quot;[OK] Wrote {args.out}&quot;)<br>        print(f&quot;     Stream: {src}:{sport} -&gt; {dst}:{dport}, SSRC={ssrc}, PT={pt}, packets={len(best_frames)}&quot;)<br><br><br>if __name__ == &quot;__main__&quot;:<br>    main(</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/207/1*H_crxhzmlrNKcFt2_jHNtA.png" /></figure><p>You will get an audio file in which a recorded voice is speaking the flag.</p><p>the flag is V01P_J4CK_1N_TH3_OP3N.</p><h3>The Deceiver’s Log</h3><p>For “The Deceiver’s Log” binary (deceivers_log), the program always prints a fake flag (f2) at the end.</p><p>The real flag is generated inside the loop via whisper_truth(i, chaos) while chaos is rotated each round—but that output is never printed (it’s effectively thrown away). If you reconstruct those 43 bytes, you get:</p><p>Here is the Python code to solve it.</p><pre>def ror32(x, n=1):<br>    n %= 32<br>    return ((x &gt;&gt; n) | (x &lt;&lt; (32 - n))) &amp; 0xffffffff<br><br>seed = 0x0badf00d<br><br># XOR-immediates taken from whisper_truth() cases (0..42)<br>imm = [<br>    0x4f,0x5f,0x53,0x40,0x53,0xd3,0x9f,0xa3,0xa4,0xbe,<br>    0xcf,0xa5,0x11,0x8f,0x94,0x8e,0x52,0x07,0x45,0x11,<br>    0xbf,0x88,0x48,0x4f,0x08,0x1c,0x0f,0x2c,0x1f,0x47,<br>    0x5d,0xb8,0x08,0xb3,0x93,0xa0,0xaf,0xf3,0x85,0x99,<br>    0xc3,0x8b,0x01<br>]<br><br>out = []<br>for i in range(43):<br>    out.append((seed &amp; 0xff) ^ imm[i])<br>    seed = ror32(seed, 1)<br><br>print(bytes(out).decode())</pre><pre>BYPASS_CTF{Tru5t_N0_0n3_N0t_Ev3n_Y0ur_Ey3s}</pre><h3>Whispers of the Cursed Scroll</h3><p>STL in the text are SPACE TAB NEWLINE</p><p>The challenge is a white space cipher.</p><p>To modify it in Whitspace foramat, use Python code.</p><p>or upload it to decode.fr.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FCIXB4igRONbwAiPYUc8CA.png" /></figure><pre>BYPASS_CTF{Wh1tsp4c3_cut13_1t_w4s}</pre><h3>Hungry, Not Stupid</h3><p>use the python script to brute force the result</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*uRGtrB7IibIXJX5baoDUDQ.png" /></figure><h3>Signal from the Deck</h3><p>Each key in this challenge is connected to the number of bananas.</p><p>Using brute force to map every outcome.</p><pre>┗━(Run: “touch ~/.hushlogin” to hide this message)<br>┌──(aditya3305㉿LAPTOP-H1G7ABVV)-[/mnt/c/Users/aditya]<br>└─$ python3<br>Python 3.13.7 (main, Aug 20 2025, 22:17:40) [GCC 14.3.0] on linux<br>Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br>&gt;&gt;&gt; import requests<br>... import time<br>... import json<br>...<br>... BASE_URL = &quot;https://banana-2-2nqw.onrender.com&quot;<br>... MAPPING_FILE = &quot;mapping.json&quot;<br>...<br>... def safe_request(session, method, url, **kwargs):<br>...     while True:<br>...         try:<br>...             resp = session.request(method, url, timeout=10, **kwargs)<br>...             return resp<br>...         except Exception:<br>...             time.sleep(1)<br>...<br>... def solve():<br>...     try:<br>...         with open(MAPPING_FILE, &quot;r&quot;) as f:<br>...             mapping = {int(k): v for k, v in json.load(f).items()}<br>...     except:<br>...         mapping = {}<br>...<br>...     missing_signals = [s for s in range(1, 10) if s not in mapping]<br>...<br>...     while missing_signals:<br>...         s = requests.Session()<br>...         safe_request(s, &quot;POST&quot;, f&quot;{BASE_URL}/api/new&quot;)<br>...         resp = safe_request(s, &quot;GET&quot;, f&quot;{BASE_URL}/api/signal&quot;)<br>...         sig = resp.json().get(&quot;banana&quot;)<br>...<br>...         if sig in missing_signals:<br>...             for tile in range(1, 10):<br>...                 if tile in mapping.values(): continue<br>...<br>...                 print(f&quot;[*] Testing Signal {sig} with Tile {tile}...&quot;)<br>...                 resp = safe_request(s, &quot;POST&quot;, f&quot;{BASE_URL}/api/click&quot;, json={&quot;clicked&quot;: tile})<br>...                 res = resp.json()<br>...<br>...                 if res.get(&quot;correct&quot;):<br>...                     print(f&quot;[+] FOUND: Signal {sig} -&gt; Tile {tile}&quot;)<br>...                     mapping[sig] = tile<br>...                     with open(MAPPING_FILE, &quot;w&quot;) as f:<br>...                         json.dump(mapping, f)<br>...                     missing_signals.remove(sig)<br>...                     break<br>...         print(f&quot;[*] Current Mapping: {mapping}&quot;)<br>...<br>...     # Final solve<br>...     s = requests.Session()<br>...     safe_request(s, &quot;POST&quot;, f&quot;{BASE_URL}/api/new&quot;)<br>...     while True:<br>...         resp = safe_request(s, &quot;GET&quot;, f&quot;{BASE_URL}/api/signal&quot;)<br>...         data = resp.json()<br>...         if data.get(&quot;done&quot;):<br>...             print(f&quot;[+] Flag: {data.get(&#39;flag&#39;)}&quot;)<br>...             return<br>...         sig = data.get(&quot;banana&quot;)<br>...         tile = mapping[sig]<br>...         resp = safe_request(s, &quot;POST&quot;, f&quot;{BASE_URL}/api/click&quot;, json={&quot;clicked&quot;: tile})<br>...         res = resp.json()<br>...         if res.get(&quot;done&quot;):<br>...             print(f&quot;[+] Flag: {res.get(&#39;flag&#39;)}&quot;)<br>...             return<br>...<br>... if __name__ == &quot;__main__&quot;:<br>...     solve()<br>...<br>[*] Testing Signal 1 with Tile 1...<br>[*] Testing Signal 1 with Tile 2...<br>[*] Testing Signal 1 with Tile 3...<br>[*] Testing Signal 1 with Tile 4...<br>[*] Testing Signal 1 with Tile 5...<br>[*] Testing Signal 1 with Tile 6...<br>[*] Testing Signal 1 with Tile 7...<br>[*] Testing Signal 1 with Tile 8...<br>[+] FOUND: Signal 1 -&gt; Tile 8<br>[*] Current Mapping: {1: 8}<br>[*] Testing Signal 3 with Tile 1...<br>[*] Testing Signal 3 with Tile 2...<br>[*] Testing Signal 3 with Tile 3...<br>[*] Testing Signal 3 with Tile 4...<br>[*] Testing Signal 3 with Tile 5...<br>[*] Testing Signal 3 with Tile 6...<br>[*] Testing Signal 3 with Tile 7...<br>[+] FOUND: Signal 3 -&gt; Tile 7<br>[*] Current Mapping: {1: 8, 3: 7}<br>[*] Testing Signal 6 with Tile 1...<br>[*] Testing Signal 6 with Tile 2...<br>[*] Testing Signal 6 with Tile 3...<br>[*] Testing Signal 6 with Tile 4...<br>[+] FOUND: Signal 6 -&gt; Tile 4<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4}<br>[*] Testing Signal 4 with Tile 1...<br>[*] Testing Signal 4 with Tile 2...<br>[*] Testing Signal 4 with Tile 3...<br>[*] Testing Signal 4 with Tile 5...<br>[*] Testing Signal 4 with Tile 6...<br>[*] Testing Signal 4 with Tile 9...<br>[+] FOUND: Signal 4 -&gt; Tile 9<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9}<br>[*] Testing Signal 9 with Tile 1...<br>[*] Testing Signal 9 with Tile 2...<br>[*] Testing Signal 9 with Tile 3...<br>[*] Testing Signal 9 with Tile 5...<br>[*] Testing Signal 9 with Tile 6...<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9}<br>[*] Testing Signal 9 with Tile 1...<br>[*] Testing Signal 9 with Tile 2...<br>[*] Testing Signal 9 with Tile 3...<br>[*] Testing Signal 9 with Tile 5...<br>[*] Testing Signal 9 with Tile 6...<br>[+] FOUND: Signal 9 -&gt; Tile 6<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6}<br>[*] Testing Signal 5 with Tile 1...<br>[*] Testing Signal 5 with Tile 2...<br>[*] Testing Signal 5 with Tile 3...<br>[*] Testing Signal 5 with Tile 5...<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6}<br>[*] Testing Signal 7 with Tile 1...<br>[+] FOUND: Signal 7 -&gt; Tile 1<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1}<br>[*] Testing Signal 8 with Tile 2...<br>[*] Testing Signal 8 with Tile 3...<br>[+] FOUND: Signal 8 -&gt; Tile 3<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3}<br>[*] Testing Signal 5 with Tile 2...<br>[*] Testing Signal 5 with Tile 5...<br>[+] FOUND: Signal 5 -&gt; Tile 5<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Testing Signal 2 with Tile 2...<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Testing Signal 2 with Tile 2...<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Testing Signal 2 with Tile 2...<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Testing Signal 2 with Tile 2...<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Testing Signal 2 with Tile 2...<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Testing Signal 2 with Tile 2...<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Testing Signal 2 with Tile 2...<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Testing Signal 2 with Tile 2...<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Testing Signal 2 with Tile 2...<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Testing Signal 2 with Tile 2...<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Testing Signal 2 with Tile 2...<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>[*] Current Mapping: {1: 8, 3: 7, 6: 4, 4: 9, 9: 6, 7: 1, 8: 3, 5: 5}<br>^Z<br>[1]+  Stopped                 python3</pre><h3>Chaotic Trust</h3><p>What’s going on</p><p>Keystream is generated by iterating the logistic map.</p><p>Each iteration outputs 2 bytes: struct.pack(“f”, x)[-2:] → on little-endian this is the top 2 bytes of the IEEE754 float32 for x.</p><p>Leak is 8 outputs = 16 bytes of keystream (a partial prefix).</p><p>Because float32 output + floating point determinism collapses possibilities, you can brute the missing bits consistent with the leak, then test which candidate produces a valid BYPASS_CTF{…} plaintext when XORed with the ciphertext.</p><pre>─(aditya3305㉿LAPTOP-H1G7ABVV)-[/mnt/c/Users/aditya]<br>└─$ python3<br>Python 3.13.7 (main, Aug 20 2025, 22:17:40) [GCC 14.3.0] on linux<br>Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br>&gt;&gt;&gt; import struct, math, re, binascii<br>...<br>... cipher_hex = &quot;9f672a7efb6ec57d0379727c360bc968c07e8b6a256acc0a850f4c608b6a9e0b5472f11f0d&quot;<br>... leak_hex   = &quot;dd3e7a3fa83d9a3e573f093f7e3ff93c&quot;<br>...<br>... cipher = binascii.unhexlify(cipher_hex)<br>... leak = binascii.unhexlify(leak_hex)<br>... leak_pairs = [leak[i:i+2] for i in range(0, len(leak), 2)]<br>...<br>... r = 3.99<br>...<br>... def logistic(x: float) -&gt; float:<br>...     return r * x * (1 - x)<br>...<br>... def out2(x: float) -&gt; bytes:<br>...     # last 2 bytes of little-endian float32<br>...     return struct.pack(&quot;&lt;f&quot;, float(x))[2:4]<br>...<br>... def gen_keystream(seed: float, n: int) -&gt; bytes:<br>...     x = float(seed)<br>...     ks = bytearray()<br>...     while len(ks) &lt; n:<br>...         x = logistic(x)<br>...         ks += out2(x)<br>...     return bytes(ks[:n])<br>...<br>... def xor(a: bytes, b: bytes) -&gt; bytes:<br>...     return bytes([x ^ y for x, y in zip(a, b)])<br>...<br>... # brute possible x1 float32 values consistent with first leaked 2 bytes<br>... first_hi = leak_pairs[0]<br>... first_hi_word = first_hi[0] | (first_hi[1] &lt;&lt; 8)<br>...<br>... def float_from_u32(u: int) -&gt; float:<br>...     return struct.unpack(&quot;&lt;f&quot;, struct.pack(&quot;&lt;I&quot;, u))[0]<br>...<br>... # collect candidate seeds by inverting x1 -&gt; x0 (two branches)<br>... seeds = set()<br>... for low in range(1 &lt;&lt; 16):<br>...     u = low | (first_hi_word &lt;&lt; 16)<br>...     x1 = float_from_u32(u)<br>...     if not (0.0 &lt; x1 &lt; 1.0) or math.isnan(x1) or math.isinf(x1):<br>...         continue<br>...<br>...     # quick check: does x1..x8 match leak (in double model with float32 output)?<br>...     x = x1<br>...     ok = True<br>...     for i in range(8):<br>...         if out2(x) != leak_pairs[i]:<br>...             ok = False<br>...             break<br>...         x = logistic(x)<br>...     if not ok:<br>...         continue<br>...<br>...     # invert logistic: x1 = r*x0*(1-x0) =&gt; x0 = (1 ± sqrt(1 - 4*x1/r))/2<br>...     disc = 1 - 4 * x1 / r<br>...     if disc &lt; 0:<br>...         continue<br>...     s = math.sqrt(disc)<br>...     for x0 in ((1 - s) / 2, (1 + s) / 2):<br>...         if 0.0 &lt; x0 &lt; 1.0:<br>...             # verify leak exactly from this seed<br>...             x = x0<br>...             good = True<br>...             for i in range(8):<br>...                 x = logistic(x)<br>...                 if out2(x) != leak_pairs[i]:<br>...                     good = False<br>...                     break<br>...             if good:<br>...                 seeds.add(x0)<br>...<br>... flag_re = re.compile(rb&quot;BYPASS_CTF\{[ -~]+\}&quot;)<br>...<br>... for seed in sorted(seeds):<br>...     pt = xor(cipher, gen_keystream(seed, len(cipher)))<br>...     m = flag_re.search(pt)<br>...     if m:<br>...         print(m.group().decode())<br>...         break<br>...<br>BYPASS_CTF{CH40T1C_TRU57_15_4W350M3!}</pre><h3>The Heart Beneath the Hull</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uEiPsgtVHo8HK_5F.png" /></figure><p>the text in it is hex use hex to ascii you will get flag.</p><h3>Level Devil 💀</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ptcKstG2-BhrkZorwkMA3Q.png" /></figure><p>go to developer option open the response in source tab.</p><p>pause time+=dt in source tab.</p><h4>Execute the Win Sequence</h4><p>While the game is paused, your Console now shares the scope of the game variables. Switch to the <strong>Console</strong> tab and run the following commands in order:</p><p><strong>Step A: Tell the server we found the flag</strong> Execute this command to bypass the need to find the hidden flag:</p><p>JavaScript</p><pre>reportFlagCollection();</pre><p><em>(Check the Network tab; you should see a successful request to </em><em>/api/collect_flag)</em></p><p><strong>Step B: Force the Win</strong> The code has a “Troll Door” mechanic (if (Math.random() &lt; 0.45)...) that randomly kills you even if you reach the door. We can bypass this RNG entirely by calling the win function directly:</p><p>JavaScript</p><pre>attemptWin();</pre><p><strong>Step C: Resume</strong> Go back to the Sources/Debugger tab and click the <strong>Resume</strong> (Play icon) button. An alert box should immediately pop up with your flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7BfKJk44raQxhoWLHtsURA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mHKg7rxAZuPzbAFxy8sZKw.png" /></figure><h3>Captain’s Sanity Check</h3><p>do what the text says above the password field.</p><p>you will get the flag.</p><p>like try again. try once more.</p><p>it should be exact with fullstop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5gb5RVjUJdtz9c31Fdt0Gw.png" /></figure><h3>No Follow, No Treasure 1</h3><p>go to discord the last part you can find it on discord one of mod deva banner has bypass_ctf}</p><p>and for second part</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*CCGWpu_fQu08qOkI_YWfNA.png" /></figure><p>for the first part it predicted it welcome_too_bypass_ctf. i converted welcome to leetspeak and it worked.</p><h3>The Cursed Compass</h3><p>I found a flag using strings: BYPASS_CTF{Y0u_S4il3d_Th3_S3v3n_S34s_But_M1ss3d_Th3_Tr34sur3}. However, the challenge description says &quot;every time we win, the treasure seems... fake&quot; and &quot;find what lies beneath the surface.&quot; This suggests the flag I found might be the &quot;fake&quot; one. I need to perform a deeper analysis to find the real flag. I&#39;ll start by examining the symbols and disassembly of the binary.</p><pre>┌──(aditya3305㉿LAPTOP-H1G7ABVV)-[/mnt/c/Users/aditya/desktop]<br>└─$ strings cursed_compass | head -n 20 &amp;&amp; strings cursed_compass | grep &quot;BYPASS_CTF&quot;<br>Q[c4<br>\/lib64/ld-linux-x86-64.so.2<br>_ITM_deregisterTMCloneTable<br>__gmon_start__<br>_ITM_registerTMCloneTable<br>SDL_HasIntersection<br>SDL_DestroyWindow<br>SDL_SetRenderDrawColor<br>SDL_RenderClear<br>SDL_CreateWindow<br>SDL_PollEvent<br>SDL_Quit<br>SDL_CreateRenderer<br>SDL_Init<br>SDL_RenderPresent<br>SDL_RenderDrawPoint<br>SDL_DestroyRenderer<br>SDL_GetError<br>SDL_Delay<br>SDL_RenderFillRect<br>BYPASS_CTF{Y0u_S4il3d_Th3_S3v3n_S34s_But_M1ss3d_Th3_Tr34sur3}<br><br>┌──(aditya3305㉿LAPTOP-H1G7ABVV)-[/mnt/c/Users/aditya/desktop]<br>└─$ python3<br>Python 3.13.7 (main, Aug 20 2025, 22:17:40) [GCC 14.3.0] on linux<br>Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br>&gt;&gt;&gt; def decrypt():<br>...     g_tide_data = [<br>...         0x4f, 0x5d, 0x21, 0x4e, 0x0a, 0x5e, 0x98, 0x0d,<br>...         0xfe, 0xea, 0xb2, 0xb0, 0xc8, 0x57, 0x9e, 0xe8,<br>...         0xb8, 0x49, 0x84, 0x05, 0xce, 0x7e, 0x49, 0xea,<br>...         0xef, 0x6f, 0x16, 0xe3, 0x8a, 0x29, 0x70, 0x44,<br>...         0x83, 0xa5, 0x39, 0x67<br>...     ]<br>...<br>...     flag = &quot;&quot;<br>...     for i in range(len(g_tide_data)):<br>...         v = 0xbadf00d<br>...         for _ in range(i):<br>...             v = (v * 0x19660d + 0x3c6ef35f) &amp; 0xFFFFFFFF<br>...<br>...         # Calculate shift = i % 7<br>...         # The assembly used a complex sequence for modulo 7<br>...         # 401298: imul rdx, rdx, 0xffffffff92492493<br>...         # 40129f: shr rdx, 0x20<br>...         # 4012a3: add edx, eax<br>...         # 4012a7: sar ecx, 0x2<br>...         # ... this is indeed index % 7<br>...         shift = i % 7<br>...<br>...         byte_v = (v &gt;&gt; shift) &amp; 0xFF<br>...         flag += chr(g_tide_data[i] ^ byte_v)<br>...<br>...     print(flag)<br>...<br>... if __name__ == &quot;__main__&quot;:<br>...     decrypt()<br>...<br>BYPASS_CTF{Fr4m3_By_Fr4m3_D3c3pt10n}</pre><p>The symbols confirm the existence of FAKE_FLAG. There&#39;s also a g_tide_data array and a function calculate_wave_physics. The hint &quot;Sometimes, the waves themselves whisper the secrets&quot; likely refers to this. I&#39;ll disassemble calculate_wave_physics and update_game to see how g_tide_data is used. I&#39;ll use objdump for disassembly.</p><p>The calculate_wave_physics function seems to be performing some decryption or calculation based on an index. It uses a constant 0xbadf00d, performs some arithmetic (looks like a linear congruential generator or similar), and then XORs the result with g_tide_data.</p><p>Specifically:</p><ol><li>It takes an index edi (rbp-0x14).</li><li>It checks if the index is between 0 and 0x23 (35).</li><li>It initializes a value v = 0xbadf00d.</li><li>It loops index times: v = v * 0x19660d + 0x3c6ef35f.</li><li>It calculates shift = index % 7 (the imul and shr sequence is a common optimization for division/modulo).</li><li>It takes v &gt;&gt; shift and gets the low byte.</li><li>It XORs this byte with g_tide_data[index].</li></ol><p>This looks like it’s decrypting the flag byte by byte. I’ll write a Python script to replicate this logic and extract the flag. I also need to check the contents of g_tide_data. I&#39;ll use objdump to dump the data at 0x402080.</p><h3>Pirate’s Hidden Cove</h3><p>it has a onion link open it and go flag.html</p><p>you will get the flag.</p><h3>Pirate’s Treasure Hunt</h3><p>some maths questions which have time limit of 5 sec each.</p><p>write a script to solve it in console</p><pre>─(aditya3305㉿LAPTOP-H1G7ABVV)-[/mnt/c/Users/aditya/desktop]<br>└─$ python3<br>Python 3.13.7 (main, Aug 20 2025, 22:17:40) [GCC 14.3.0] on linux<br>Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br>&gt;&gt;&gt; import requests<br>... import time<br>... import re<br>...<br>... BASE_URL = &quot;http://20.196.136.66:3600&quot;<br>...<br>... def solve():<br>...     session = requests.Session()<br>...<br>...     # Start the game<br>...     print(&quot;[*] Starting game...&quot;)<br>...     response = session.post(f&quot;{BASE_URL}/api/game/start&quot;)<br>...     if response.status_code != 200:<br>...         print(f&quot;[-] Failed to start game: {response.status_\<br>code}&quot;)<br>...         return<br>...<br>...     data = response.json()<br>...     if not data.get(&quot;success&quot;):<br>...         print(&quot;[-] Game start unsuccessful&quot;)<br>...         return<br>...<br>...     session_id = data[&quot;sessionId&quot;]<br>...     question = data[&quot;question&quot;]<br>...<br>...     print(f&quot;[*] Session ID: {session_id}&quot;)<br>...<br>...     for i in range(1, 21):<br>...         expression = question[&quot;expression&quot;]<br>...         print(f&quot;[*] Island {i}/20: {expression}&quot;)<br>...<br>...         # Clean the expression (remove emojis and extra spa\<br>ces)<br>...         # The expression might look like &quot;18 - 20&quot; or &quot;5 * \<br>4&quot;<br>...         # We can use eval() safely here since we trust the \<br>source or use a simple parser<br>...         try:<br>...             # Replace &#39;x&#39; or &#39;X&#39; with &#39;*&#39; for multiplicatio\<br>n if needed<br>...             clean_expr = expression.replace(&#39;x&#39;, &#39;*&#39;).repla\<br>ce(&#39;X&#39;, &#39;*&#39;)<br>...             answer = eval(clean_expr)<br>...             # The game expects float or int<br>...             answer = float(answer)<br>...         except Exception as e:<br>...             print(f&quot;[-] Error parsing expression &#39;{expressi\<br>on}&#39;: {e}&quot;)<br>...             break<br>...<br>...         print(f&quot;[*] Answer: {answer}&quot;)<br>...<br>...         # The game has a minimum time check: 800ms<br>...         time.sleep(0.9)<br>...<br>...         # Submit answer<br>...         response = session.post(f&quot;{BASE_URL}/api/game/answe\<br>r&quot;, json={<br>...             &quot;sessionId&quot;: session_id,<br>...             &quot;answer&quot;: answer<br>...         })<br>...<br>...         if response.status_code != 200:<br>...             print(f&quot;[-] Failed to submit answer: {response.\<br>status_code}&quot;)<br>...             print(response.text)<br>...             break<br>...<br>...         data = response.json()<br>...         if not data.get(&quot;success&quot;):<br>...             print(f&quot;[-] Submission unsuccessful: {data}&quot;)<br>...             break<br>...<br>...         if not data.get(&quot;isCorrect&quot;):<br>...             print(&quot;[-] Incorrect answer!&quot;)<br>...             break<br>...<br>...         print(&quot;[+] Correct!&quot;)<br>...<br>...         if data.get(&quot;gameCompleted&quot;):<br>...             print(&quot;[***] Game Completed! [***]&quot;)<br>...             print(f&quot;[*] Final Score: {data.get(&#39;finalScore&#39;\<br>)}&quot;)<br>...             print(f&quot;[*] Flag: {data.get(&#39;flag&#39;)}&quot;)<br>...             return data.get(&#39;flag&#39;)<br>...<br>...         question = data.get(&quot;nextQuestion&quot;)<br>...         if not question:<br>...             print(&quot;[-] No next question received&quot;)<br>...             break<br>...<br>... if __name__ == &quot;__main__&quot;:<br>...     flag = solve()<br>...     if flag:<br>...         print(f&quot;\nCaptured Flag: {flag}&quot;)<br>...<br>[*] Starting game...<br>[*] Session ID: 3n8clfmkjm7cj5orxjg1<br>[*] Island 1/20: 16 + 18<br>[*] Answer: 34.0<br>[+] Correct!<br>[*] Island 2/20: 12 - 16<br>[*] Answer: -4.0<br>[+] Correct!<br>[*] Island 3/20: 15 + 20<br>[*] Answer: 35.0<br>[+] Correct!<br>[*] Island 4/20: 19 - 2<br>[*] Answer: 17.0<br>[+] Correct!<br>[*] Island 5/20: 5 + 12<br>[*] Answer: 17.0<br>[+] Correct!<br>[*] Island 6/20: 34 + 14 - 31<br>[*] Answer: 17.0<br>[+] Correct!<br>[*] Island 7/20: 44 + 18 + 33<br>[*] Answer: 95.0<br>[+] Correct!<br>[*] Island 8/20: 32 - 13 - 23<br>[*] Answer: -4.0<br>[+] Correct!<br>[*] Island 9/20: 28 + 34 - 10<br>[*] Answer: 52.0<br>[+] Correct!<br>[*] Island 10/20: 13 + 13 - 11<br>[*] Answer: 15.0<br>[+] Correct!<br>[*] Island 11/20: 24 * 66 + 17 + 48<br>[*] Answer: 1649.0<br>[+] Correct!<br>[*] Island 12/20: 99 * 17 * 95 + 59<br>[*] Answer: 159944.0<br>[+] Correct!<br>[*] Island 13/20: 64 * 13 - 24 + 46<br>[*] Answer: 854.0<br>[+] Correct!<br>[*] Island 14/20: 88 * 57 * 11 * 50<br>[*] Answer: 2758800.0<br>[+] Correct!<br>[*] Island 15/20: 20 - 22 + 85 + 10<br>[*] Answer: 93.0<br>[+] Correct!<br>[*] Island 16/20: 54 - 84 * (182 / 36) / 182<br>[*] Answer: 51.666666666666664<br>[+] Correct!<br>[*] Island 17/20: 96 - 156 * 141 + 189 / 173<br>[*] Answer: -21898.907514450868<br>[+] Correct!<br>[*] Island 18/20: 136 / 47 - 155 * (163 * 123)<br>[*] Answer: -3107592.1063829786<br>[+] Correct!<br>[*] Island 19/20: 184 * 48 + (71 - 186) - 193<br>[*] Answer: 8524.0<br>[+] Correct!<br>[*] Island 20/20: 115 / 177 + 166 / 191 + 143<br>[*] Answer: 144.51882746176827<br>[+] Correct!<br>[***] Game Completed! [***]<br>[*] Final Score: 20<br>[*] Flag: BYPASS_CTF{d1v1d3_n_c0nqu3r_l1k3_4_p1r4t3}<br><br>Captured Flag: BYPASS_CTF{d1v1d3_n_c0nqu3r_l1k3_4_p1r4t3}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4920289bd603" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>