Giter Site home page Giter Site logo

java-decompiler's Introduction

Java Decompiler

NOTICE!!!

This project would be deprecated, now this repo would be archived, the new Java Decompiler application would based on JTQDF.

Dependencies

  • Python 3

Usage

use py -3 java-decompiler.py -h to show help docs.

Full Help:

usage: java-decompiler.py [-h] (-c | -w | -j | -f | -jf | -ndcp) -i INPUT -o OUTPUT [-T THREAD] [-cp] [-dp DECOMPILE_PACKAGE [DECOMPILE_PACKAGE ...]]

Java Decompile

options:
  -h, --help            show this help message and exit
  -c, --Class           Class input, decompile single class
  -w, --war             War input, decompile single war without lib jar decompilation
  -j, --jar             Jar input, decompile single jar
  -f, --folder          Folder input, would decompile all classes in the folder
  -jf, --jar-folder     Jar Folder input, would only decompile the jar which contains the specific package
  -ndcp, --no-decompile-copy
                        Only copy the resources file, would not decompile
  -i INPUT, --input INPUT
                        The input object, folder path or file name
  -o OUTPUT, --output OUTPUT
                        The output src folder
  -T THREAD, --thread THREAD
                        Decompile thread count
  -cp, --copy           Copy resources file(without class extension) to the destination, only work on -f/--folder
  -dp DECOMPILE_PACKAGE [DECOMPILE_PACKAGE ...], --decompile-package DECOMPILE_PACKAGE [DECOMPILE_PACKAGE ...]
                        Specify the package name to be decompiled

Decompile a single class

py -3 java-decompiler.py -c -i test.class -o ./src

Decompile a jar

py -3 java-decompiler.py -j -i test.jar -o ./src

Decompile a Class Folder

py -3 java-decompiler.py -f -i tomcat/webapps/ROOT -o ./src

Decompile a Jar Folder

-dp/--decompile-package support * to match any word

py -3 java-decompiler.py -jf -i tomcat/webapps/ROOT/WEB-INF/lib -o ./src -dp com.*.test
py -3 java-decompiler.py -jf -i tomcat/webapps/ROOT/BOOT-INF/lib -o ./src -dp com.testa com.testb

Decompile a War

py -3 java-decompiler.py -w -i tomcat/webapps/app.war -o ./src

java-decompiler's People

Contributors

evalexp avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.