Skip to content

A cross-platform tool that finds and zeros out `SignerVer02` signature blocks in binary files.

Notifications You must be signed in to change notification settings

3443eee/samsignrem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Samsung signature remover

A cross-platform tool that finds and zeros out SignerVer02 signature blocks in binary files.

What It Does

Searches for the SignerVer02 pattern in files and replaces everything from that marker until a file extension (.bin, .img, etc.) with null bytes (0x00). The file size stays the same.

Before: [data]SignerVer02...signature data...file.bin[data]
After:  [data]00 00 00 00 00 00 00 00 00 00 00 00[data]

Building

# Linux/macOS
g++ -o zero_sig zero_sig.cpp -std=c++11

# Windows (MinGW)
g++ -o zero_sig.exe zero_sig.cpp -std=c++11

# Cross-compile for Windows (from Linux)
x86_64-w64-mingw32-g++ -o zero_sig.exe zero_sig.cpp -std=c++11 -static-libgcc -static-libstdc++

Usage

# Single file
./zero_sig file.bin

# Skip confirmation
./zero_sig -f file.bin

# All files in directory
./zero_sig ./

# Custom extension
./zero_sig -e .bin file.img

# Multiple extensions
./zero_sig -e .bin -e .img ./

Options

  • -f - Skip confirmation prompt
  • -e <ext> - Specify custom file extension (can use multiple times)
  • ./ or . - Process all files in current directory

Example Output

Processing file: boot.img
Found signature block at offset: 0x1a2b3c
Found extension '.bin' at offset: 0x1a2c1e
Zeroing out 226 bytes
Successfully zeroed out signature block!

Notes

  • Always backup your files first!
  • May need sudo (Linux/macOS) or Administrator (Windows) for system files
  • Files without SignerVer02 pattern will be skipped
  • Default extensions: .bin, .img, .so, .apk, .jar, .tar, .gz, .zip, .elf, .dat, .cfg, .txt, .xml

License

Open source - feel free to use, modify, and distribute. No warranty provided.

Use at your own risk.

About

A cross-platform tool that finds and zeros out `SignerVer02` signature blocks in binary files.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages