Skip to content

Dere3046/Android_Tool_RUST

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AndroidTOOL - Qualcomm Security Tool (Rust)

English | 中文

Rust implementation of Qualcomm sectools.exe functionality based on decompiled analysis.

Features

ELF Tool

  • Parse and generate ELF32/ELF64 images
  • Insert segments into existing ELF
  • Combine multiple ELF files
  • Remove sections from ELF
  • Hash table segment support

MBN Tool

  • Parse MBN images (v3, v5, v6, v7, v8)
  • Generate MBN images
  • Boot image ID and destination pointer support

Secure Image

  • Inspect images (human-readable output)
  • Validate images against security profile
  • Sign images (LOCAL/TEST/PLUGIN modes)
  • Hash images (12 SHA variants)
  • Encrypt images (UIE/QBEC modes)
  • Compress images (zlib/gzip)
  • Fuse blower validation
  • Outfile record management

Supported Algorithms

Signature:

  • ECDSA-P256 (64 bytes)
  • ECDSA-P384 (96 bytes)
  • RSA-2048/3072/4096

Hash:

  • SHA256, SHA384, SHA512
  • SHA256-ONE-SHOT, SHA384-ONE-SHOT, SHA512-ONE-SHOT
  • SHA256-ZI, SHA384-ZI, SHA512-ZI
  • SHA256-ONE-SHOT-ZI, SHA384-ONE-SHOT-ZI, SHA512-ONE-SHOT-ZI

Encryption:

  • AES-128-CBC
  • UIE (User Image Encryption)
  • QBEC (Qualcomm Boot Encryption Container)

Requirements

  • Rust 1.70+
  • Dependencies: clap, p256, p384, aes, sha2, sha3, x509-parser, quick-xml, chrono

License

MIT License - See LICENSE file for details.

Disclaimer

FOR RESEARCH AND EDUCATIONAL PURPOSES ONLY

This software is provided for security research, educational purposes, and reverse engineering analysis only. Users are responsible for ensuring compliance with all applicable laws and regulations. The authors disclaim all liability for any misuse of this software.

This tool should NOT be used for:

  • Any illegal activities

Users assume all responsibility and risk for their use of this tool.

About

The Rust implementation of AndroidTOOL, migrating from the original Python version to deliver improved performance and memory safety for Qualcomm boot image (MBN/ELF) operations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages