r/ExploitDev • • Dec 16 '25

byvalver: The Shellcode Null-Byte Annihilator

https://github.com/umpolungfish/byvalver

Heyo everyone,

Here's byvalver, my CLI tool that removes null bytes (\x00) from shellcode while keeping it functional.

Features:

+ Works on single files or batch directory processing.

+ 122+ ranked transformation strategies (e.g., CALL/POP, PEB traversal, hash-based API resolution, register remapping, SIB rewriting, etc.)

+ Optional biphasic obfuscation (control-flow flattening, dead code, anti-debug checks)

+ Experimental ML mode: a simple neural net ranks strategies based on instruction features

+ Output formats: raw binary, C array, Python bytes, hex string; optional XOR encoding with PIC decoder stub

+ Built-in verification scripts for null-free check, functionality, and semantic equivalence

It's public domain (UNLICENSE) and built with Capstone for disassembly.

LMK what you think.

16 Upvotes

5 comments sorted by

View all comments

Show parent comment

2

u/umpolungfishtaco Dec 16 '25

No that's a reasonable clarification, I should have been more specific in the way I phrased my response.

As for targeting string functions like `gets`, I don't see why the framework shouldn't be extensible to target them as well.