Code Monkey home page Code Monkey logo

fed-forensicemaildownloader's Introduction

FED - ForensicEmailDownloader

   ____                              _         ____                _    __   ___                       __                __           
  / __/ ___   ____ ___   ___   ___  (_) ____  / __/  __ _  ___ _  (_)  / /  / _ \ ___  _    __  ___   / / ___  ___ _ ___/ / ___   ____
 / _/  / _ \ / __// -_) / _ \ (_-< / / / __/ / _/   /  ' \/ _ `/ / /  / /  / // // _ \| |/|/ / / _ \ / / / _ \/ _ `// _  / / -_) / __/
/_/    \___//_/   \__/ /_//_//___//_/  \__/ /___/  /_/_/_/\_,_/ /_/  /_/  /____/ \___/|__,__/ /_//_//_/  \___/\_,_/ \_,_/  \__/ /_/V0.4-beta   
                                                                                                                                      

It's a Python based Forensic IMAP Download Script.

What should thePython script FED-ForensicEmailDownloader do?

The script can be started with commandline options. After entering the email address, it tries to retrieve the required data from the auto-conficuration database (https://autoconfig.thunderbird.net/v1.1/). Download all emails of the mailbox to a local folder (default is ./) while keeping the folder structure of the mailbox. A folder with the current timestamp is created in the local folder. The backup of the emails and a log file will be placed here. The email files are saved as .eml files and contain the subject in the file name. Duplicate files are incremented. With the commandline options rangebegin and rangeend a period can be retrieved. Note that rangeend is the same as BEFORE. That is, if you want to retrieve all emails of a year, specify --rangebegin 2022-01-01 rangeend 2023-01-01.

Screenshot

Model

Usage/Examples

python3 ForensicEmailDownloader.py --username [email protected] --password mypassword --imapurl imap.example.com --output C:\\tmp --rangeend 2023-01-01
python3 ForensicEmailDownloader.py -u [email protected] -p mypassword -i imap.example.com -o /tmp/mails --rangebegin 2022-01-01

--username / -u             Username/Emai-Adress
--password / -p             Password 
--imapurl  / -i             Url to IMAP-Server
--sslport  / -s             Port for SSL on IMAP-Server
--output   / -o             Path for Folder where the data downloaded to
--examiner / -x             Name of examiner
--case     / -c             Name of case
--evidence / -e             evidence number
--rangebegin                Begin of the timerange  (YYYY-MM-DD)
--rangeend                  End of the timerange    (YYYY-MM-DD)

Known Errors

  • email addresses with german umlauts like ä,ö,ü in the domain are not accepted
  • no 2FA

Create an own exe

pyinstaller.exe --onefile .\ForensicEmailDownloader.py --name "ForensicEmailDownloader" --icon .\favicon.ico

Malware Alert

I know this, but its a false positive for my releases. Feel free to create your own exe. see above.

Future

  • tidy up the code
  • extract date from email and set it to eml file (Creation, modification and access timestamps)
  • split log-file to log-file and a summary report
  • csv file with exported eml files
  • Make 2FA possible
  • Maybe HTML report

Authors

License

MIT

fed-forensicemaildownloader's People

Contributors

brunofischergermany avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.