Sign inSign up

blacktop/ghidra

By blacktop

Updated about 21 hours ago

Ghidra Client/Server Docker Image

Image
3

50K+

blacktop/ghidra repository overview

Malice Logo

docker-ghidra

Ghidra Client/Server Docker Image

Why?

Cuz installing Java on your Mac is gross. :smirk:

Dependencies

Image Tags

REPOSITORY               TAG                 SIZE
blacktop/ghidra          latest              1.33GB
blacktop/ghidra          10                  1.33GB
blacktop/ghidra          10-beta             1.4GB
blacktop/ghidra          9.2                 1.33GB
blacktop/ghidra          9.1                 1.18GB
blacktop/ghidra          9.0                 1.18GB

NOTE: tag beta is built from master

Getting Started

Client
On macOS
  1. Install XQuartz brew cask install xquartz
  2. Install socat brew install socat
  3. open -a XQuartz and make sure you "Allow connections from network clients"
  4. Now add the IP using Xhost with: xhost + 127.0.0.1 or xhost + $(ipconfig getifaddr en0)
  5. Start socat socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
  6. Start up Ghidra
$ docker run --init -it --rm \
             --name ghidra \
             --cpus 2 \
             --memory 4g \
             -e MAXMEM=4G \
             -e DISPLAY=host.docker.internal:0 \
             -v /path/to/samples:/samples \
             -v /path/to/projects:/root \
             blacktop/ghidra
Server
$ docker run --init -it --rm \
             --name ghidra-server \
             --cpus 2 \
             --memory 500m \
             -e MAXMEM=500M \
             -e GHIDRA_USERS="root blacktop" \
             -v /path/to/repos:/repos \
             blacktop/ghidra server
Headless
$ docker run --init -it --rm \
             --name ghidra-headless \
             --cpus 2 \
             --memory 4g \
             -e MAXMEM=4G \
             -v `pwd`:/samples \
             --link ghidra-server \
             blacktop/ghidra:beta support/analyzeHeadless ghidra://ghidra-server:13100/Apple/12.4.1/ -import /samples/dyld_shared_cache -connect blacktop -p -commit "Loading Dyld."

TODO

  • Figure out how to add --network none :wink:
  • Figure out how to add --read-only

Issues

Find a bug? Want more features? Find something missing in the documentation? Let me know! Please don't hesitate to file an issue

Credits

License

Apache License (Version 2.0)

Tag summary

Content type

Image

Digest

sha256:b2479177b

Size

697.7 MB

Last updated

about 22 hours ago

docker pull blacktop/ghidra