Thanks to visit codestin.com
Credit goes to github.com

Skip to content

netomi/bat

Repository files navigation

Bytecode Analysis Toolkit

Build status GitHub license

This goal of this project is to provide tools to work with various java related bytecode formats, mainly JVM and dalvik bytecode.

The following modules are currently available

  1. classfile: reads and writes class files
  2. dexfile: reads and writes dex files
  3. dexdump: prints the contents of dex files in the same format as the dexdump tool
  4. smali: assembler/disassembler for dex files
  5. commands: convenient command line tools for the different modules

Usage

  1. In the root directory run: ./gradlew distZip
  2. cd commands/build/distributions
  3. Unzip the file 'bat-tools-${VERSION}.zip'
  4. Run bat-${toolname}.sh from the unzipped directory

Example usage:

  • baksmali tool
Usage: bat-baksmali [-v] [-o=<outputFile>] inputfile
disassembles dex files.

Parameters:
      inputfile      input file to process (*.dex)

Options:
  -o=<outputFile>    output directory
  -v                 verbose output

bat-baksmali.sh -v -o out classes.dex

The generated smali files will be created in the out directory in a directory structure resembling the package name of the disassembled classes.

License

Apache 2.0

Sponsor this project

 

Packages

No packages published

Contributors 2

  •  
  •  

Languages