Skip to content

Instantly share code, notes, and snippets.

@vnea
Last active February 24, 2021 16:05
Show Gist options
  • Save vnea/3c8b3d43cf89440b1a2cea0d6de417cd to your computer and use it in GitHub Desktop.
Save vnea/3c8b3d43cf89440b1a2cea0d6de417cd to your computer and use it in GitHub Desktop.
Java
## Decompile
Download CFR : http://www.benf.org/other/cfr/
# One .class to stdout
java -jar cfr.jar javaclasstodecompiles.class
# One .class to .java
java -jar cfr.jar javaclasstodecompiles.class > javaclasstodecompiles.java
# Whole Jar
java -jar cfr.jar javacontainer.jar --outputdir ./javacontainer
## Generate thread dump in logs
"ls /proc" or "ps faux" # pour trouver le PID de la JVM
kill -3 $PID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment