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

3

u/Ok_Tap7102 Dec 16 '25

You're absolutely not nitpicking, null bytes are the obvious bad bytes but depending on the target parsing function you can have just as many issues dealing with newlines or even spaces depending on how the target app reads your payload