MCPcopy Index your code
hub / github.com/dwisiswant0/look4jar

github.com/dwisiswant0/look4jar @v0.0.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.0.3 ↗ · + Follow
8 symbols 21 edges 7 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Look4jar

look4jar

Look for JAR files that vulnerable to Log4j RCE (CVE‐2021‐44228)


Objectives

It differs from some other tools that scan for vulnerable remote services by running trigger exploits such as track DNS pingbacks. Look4jar tried to find JndiLookup.class file in the java archive (recursively), if yet any — then it will look for log4j2.enableJndiLookup in JndiManager.class file which it deems possibly vulnerable.

Installation

  • Download a prebuilt binary from releases page, unpack and run! or:
  • If you have Go1.16+ compiler installed & configured:
$ go install dw1.io/look4jar@latest

— or

Building from source code:

$ git clone git@github.com:dwisiswant0/look4jar.git
$ cd look4jar/
$ go mod tidy
$ go build .
$ ./look4jar -h

Usage


  look4jar
  ---
  Look for JAR files that vulnerable to Log4j RCE (CVE‐2021‐44228)
  @dwisiswant0


Usage:
  look4jar -p /path/to/file [OPTIONS...]

Options:
  -p, --path <FILE/PATH>      Specify EAR/JAR/WAR file/directory to scan recursively
  -v, --verbose               Verbose mode (default false)

Examples:
  look4jar -p /path/to/file.jar
  look4jar -p /usr/local/lib -v

Similar Projects

License

Look4jar is distributed under Apache License v2.0. See LICENSE.

Core symbols most depended-on inside this repo

readClass
called by 2
reader.go
check
called by 1
look4jar.go
readJar
called by 1
reader.go
isVuln
called by 1
util.go
lookup
called by 1
util.go
main
called by 0
look4jar.go
init
called by 0
init.go

Shape

Function 7
Struct 1

Languages

Go100%

Modules by API surface

util.go2 symbols
reader.go2 symbols
look4jar.go2 symbols
options.go1 symbols
init.go1 symbols

For agents

$ claude mcp add look4jar \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page