Camouflager is a tool written in Rust that can identify the file format of a given file based on its contents. It can detect various formats in a polygot fashion.
- Able to identify multiple file formats.
- Modular design, allowing the addition of new format detectors easily.
- Uses both static and dynamic analysis to identify file formats.
-
Clone the repository to your local machine.
git clone https://github.com/konata-chan404/camouflage.git cd camouflage
-
Build the project.
cargo build --release
-
Run the project.
./target/release/camouflage path/to/your/file
Replace path/to/your/file
with the path to the file you want to check.
If you want to add support for more file formats, create a new struct in the detectors
directory and implement the Detector
trait for it. The detect
method should return true
if the file is a valid file of the desired format and implement optional methods if neccasary.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.