-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathjava-hacking.cheat
More file actions
17 lines (9 loc) · 928 Bytes
/
Copy pathjava-hacking.cheat
File metadata and controls
17 lines (9 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
% Java Cheats
$ jar: ls *.jar | sort -u
$ apk: ls *.apk | sort -u
# unzip and do procyon (apt install procyon-decompiler)
NIXPKGS_ALLOW_UNFREE=1 nix shell --impure -I nixpkgs=channel:nixos-unstable nixpkgs#unzip -c unzip -d <output> <jar>
#find <output> ! -type d | grep -v '\$' | grep -v 'meta-inf' | grep -v org|grep "\.class" | while read class; do procyon $class -o .;done
NIXPKGS_ALLOW_UNFREE=1 nix shell --impure -I nixpkgs=channel:nixos-unstable nixpkgs#findutils -c find <output> ! -type d | grep -v '\$' | grep -v 'meta-inf' | grep -v org|grep "\.class" | while read class; do $class -o .;done
NIXPKGS_ALLOW_UNFREE=1 nix shell --impure -I nixpkgs=channel:nixos-unstable nixpkgs#findutils -c find unzipped2 ! -type d | grep -v '\$' | grep -v 'meta-inf' | grep -v org| grep "\.class"
NIXPKGS_ALLOW_UNFREE=1 nix shell --impure -I nixpkgs=channel:nixos-unstable nixpkgs#procyon -c procyon -jar <jar> -o <output>