GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - waderwu/extractor-java: CodeQL extractor for java, which don't need to compile java source

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
class2java.py
class2java.py
 
 
java-decompiler.jar
java-decompiler.jar
 
 
run.py
run.py
 
 

Repository files navigation

Extractor-java

Create CodeQL database directly from Java source code without compiling

Require

  1. Installed CodeQL
  2. Linux / Macos

Otherwise you need to manually specify the value of variables such as codeql_home,codeql_java_home

Usage

If there is only jar, you need to decompile it to get the java source code

unzip your.jar
python3 class2java.py dir

generate database for java source code

usage: run.py [-h] [-l [LIB ...]] [-ld [LIBDIR ...]] db srcroot

CodeQL java extractor.

positional arguments:
  db                    codeql database name
  srcroot               java source code dir

optional arguments:
  -h, --help            show this help message and exit
  -l [LIB ...], --lib [LIB ...]
                        lib path
  -ld [LIBDIR ...], --libdir [LIBDIR ...]
                        lib dir

example

python3 run.py dbname srcroot
python3 run.py dbname srcroot -l lib1.jar lib2.jar
python3 run.py dbname srcroot -ld libdir1 libdir2

About

CodeQL extractor for java, which don't need to compile java source

Resources

Readme
Activity

Stars

345 stars

Watchers

4 watching

Forks

36 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.