https://github.com/konloch/class-file-searcher
Dump Classfiles & Strings from arbitrary data
https://github.com/konloch/class-file-searcher
class-dump class-file dump dumper java java-classes reverse-engineering
Last synced: 1 day ago
JSON representation
Dump Classfiles & Strings from arbitrary data
- Host: GitHub
- URL: https://github.com/konloch/class-file-searcher
- Owner: Konloch
- License: mit
- Created: 2024-07-20T16:11:26.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-20T17:10:00.000Z (almost 2 years ago)
- Last Synced: 2025-12-02T00:31:17.807Z (7 months ago)
- Topics: class-dump, class-file, dump, dumper, java, java-classes, reverse-engineering
- Language: Java
- Homepage: https://konloch.com/Class-File-Searcher
- Size: 9.41 MB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Class-File-Searcher
Command-line tool for dumping Class-files & Strings from arbitrary data

## How To Install
+ [Download the latest release for your platform](https://github.com/Konloch/Class-File-Searcher/releases/latest)
+ Add the binary to your system-path
+ Or just call the absolute path to it in the command line
## How To Use - Count Class Files (Initial first look)
+ `cfs count input.bin` - Searches for classes inside the file input.bin
+ `cfs count input-p1.bin input-p2.bin` - Searches for classes inside the two files input-p1.bin & input-p2.bin
+ `cfs count *.bin` - Searches for classes in all files in the current path that end in .bin (non-recursive)
+ `cfs count dir/` - Searches for classes in the specified folder
## How To Use - Dump Strings From Found Class Files (Peak what's inside)
+ `cfs classes input.bin` - Searches for strings from classes inside the file input.bin
+ `cfs classes input-p1.bin input-p2.bin` - Searches for strings from classes inside the two files input-p1.bin & input-p2.bin
+ `cfs classes *.bin` - Searches for strings from classes in all files in the current path that end in .bin (non-recursive)
+ `cfs classes dir/` - Searches for strings from classes in the specified folder
## How To Use - Dump Class Files (Full dive with a decompiler)
+ `cfs classes input.bin` - Searches for classes inside the file input.bin
+ `cfs classes input-p1.bin input-p2.bin` - Searches for classes inside the two files input-p1.bin & input-p2.bin
+ `cfs classes *.bin` - Searches for classes in all files in the current path that end in .bin (non-recursive)
+ `cfs classes dir/` - Searches for classes in the specified folder
## How Does It Work?
+ We search for all instances of 'CAFEBABE' and store the data between each file, assuming the files are stored back to back.
+ We make the following assumptions:
+ It's uncompressed data
+ It's not lying to us when it says 'CAFEBABE'
+ The files are stored back to back, I.E. each chunk of 'CAFEBABE' represents another class once reached.
## Notes
+ We're resistant to most obfuscation, but if you find something that breaks CFS feel free to report the issue.