Skip to content

yael333/camouflage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Camouflage

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.

Features

  • 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.

How to Use

  1. Clone the repository to your local machine.

    git clone https://github.com/konata-chan404/camouflage.git
    cd camouflage
  2. Build the project.

    cargo build --release
  3. 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.

How to Extend

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.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Polygot File Detector

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages