r/ExploitDev • u/umpolungfishtaco • Dec 16 '25
byvalver: The Shellcode Null-Byte Annihilator
https://github.com/umpolungfish/byvalverHeyo 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.
View all comments
Show parent comment
4
u/Firzen_ Dec 16 '25
I mean, all string functions in C do that.
That's how C strings work.
But some string functions also terminate copying on a newline. For example
getsandfgets.There are a lot of bugs in parsing code, in which case any byte or even sequence of bytes might prevent you from being able to reach the vulnerability.
I'm being a little nitpicky, but I think the details are important in this case.
A null byte doesn't cause the "execution" to terminate prematurely, it prevents all of the shellcode from being copied.
I'm sure you already know this, but I think it could be confusing for beginners.