Skip to content

FathiMahdi/EXFY

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EXFY (EXIFTOOL & YARA)

A tool that combine yara and exiftool

Attention Use At your own risk

Discription

The EXFY is a simple command line tool that mix beteween exiftool and yara, This tool used as a file/s malware detector as well to extract all the file/s meta data

Content

Features

  • Can Combine both exiftool metadata and yara match result in one report
  • Suport yara scanner file/dir based on repository rules for more info Yara scanner by Moath Maharmeh .
  • Suport csv and html report extraction.

Installation

  • pip install -r requirements.txt or pip3 install -r requirements.txt

Flags

The following table shows all the command line flags and their description :

Flag Description
-h , --help help
-y , --yara use yara only
--custom run yara on cunstom rules
--dir folder to be checked by yara
--file file to be checked by yara
--repo run yara on repository rules
u,--update update yara-scanner repository rules
-e,--exiftool use exiftool only
-c , --csv export csv file
-r , --report generate report
-a , --all run both yara and exiftool
Table: Progam flags

You can run exfy -h to see all the avialble command

python3 exfy.py -h
    _______  __ ________  __   __________  ____  __ 
   / ____/ |/ // ____/\ \/ /  /_  __/ __ \/ __ \/ / 
  / __/  |   // /_     \  /    / / / / / / / / / /  
 / /___ /   |/ __/     / /    / / / /_/ / /_/ / /___
/_____//_/|_/_/       /_/    /_/  \____/\____/_____/
                                                    

usage: EXFY [-h] [--yara] [--custom yara rules file] [--dir dir apth] [--file file path]
            [--repo] [--update] [--exiftool full file/folder path]
            [--csv csv file name and path] [--report report name file name and path] [--all]

A tool that compine yara and exiftool

options:
  -h, --help            show this help message and exit
  --yara, -y            use only yara
  --custom yara rules file
                        run yara on costum rules
  --dir dir apth        directory path
  --file file path      file path
  --repo                yara scan with repository rules
  --update, -u          update yara rules
  --exiftool full file/folder path, -e full file/folder path
                        use exiftool only
  --csv csv file name and path, -c csv file name and path
                        export as csv
  --report report name file name and path, -r report name file name and path
                        export yara html report
  --all, -a             Yara and exiftool

-h or --help to see all commands

Examples

To run exiftool on dir or file

  • python3 exfy.py --exiftool Images/ {dir/file}

To run exiftool on dir or file and export .csv report

Attention exiftool report only support CSV

  • python3 exfy.py --exiftool Images/ --csv report.csv {dir/file}

To run yara{custom rules}

  • python3 exfy.py --yara --custom yarafile --file Images/file.jpg {file}
  • python3 exfy.py --yara --custom yarafile --dir Images/ {dir}

To run yara{yara scanner repository rules} .html report

Attention yara-scanner report only support html

  • python3 exfy.py --yara --repo --dir Images/ --report report.html {dir}
  • python3 exfy.py --yara --repo --dir Images/ --report report.html {file}

To run both yara{yara scanner repository rules} and exify and export .csv and .html report

Attention For all flag the report file doesn't has extention. It will auto generate report with both .csv and .html

  • python3 exfy.py --all --repo --dir Images/ --report report {directory}
  • python3 exfy.py --all --repo --file Images/test.jpg --report report {file}

To run both yara{custom rules} and exify and export .csv and .html report

  • python3 exfy.py --all --custom custom_rules/r1.yar --dir Images/ --report report

Reference

license

This work is under GNU GENERAL PUBLIC LICENSE

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages