{ "info": { "author": "Cole Robinette", "author_email": "robinette.31@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# PhishFry Remediation Library and Command Line Tool\nPhishFry is a python library and command line tool for removing and restoring emails in exchange and office365. PhishFry supports shared mailboxes, group mailboxes and distribution lists. PhishFry removes/restores the entire conversation including any replies and forwards of the message.\n\n## Installation\nInstall with pip directly from github.\n```bash\nsudo pip install git+https://github.com/IntegralDefense/phishfry.git\n```\n\nAdd credentials for one or more exchange accounts with impersonation rights to the config.ini file.\n###### Example config.ini file:\n```\n[account1]\nuser=admin@example1.com\npass=123456\n\n[account2]\nuser=admin@example2.com\npass=123456\n```\n\n## Command Line Tool\n```bash\n# display usage information\n./phishfry.py -h\n\n# Remove message with message_id= from the test@example.com mailbox\n./phishfry.py remove test@example.com \"\"\n\n# Restores message with message_id=\"\" to the test@example.com mailbox\n./phishfry.py restore test@example.com \"\"\n```\n\n## Library\n```python\nimport phishfry\n\n# Instantiate a phishfry account using admin email and password\naccount = phishfry.Account(\"admin@example1.com\", \"123456\")\n\n# remove a message\nresults = account.Remove(\"user@example1.com\", \"\")\n\n# restore a message\nresults = account.Restore(\"user@example1.com\", \"\")\n\n# using the results\nfor address in results:\n\t# print the email address for these results\n\tprint(address)\n\n\t# get the remediation result for this address\n\tresult = results[address]\n\n\t# print failure message if remediation action failed\n\tif not result.success:\n\t\tprint(result.message)\n```\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/IntegralDefense/phishfry", "keywords": "ews exchange microsoft outlook exchange-web-services o365 office365", "license": "", "maintainer": "", "maintainer_email": "", "name": "phishfry", "package_url": "https://pypi.org/project/phishfry/", "platform": "", "project_url": "https://pypi.org/project/phishfry/", "project_urls": { "Homepage": "https://github.com/IntegralDefense/phishfry" }, "release_url": "https://pypi.org/project/phishfry/1.0.0/", "requires_dist": [ "requests (>=2.7)", "lxml (>3.0)" ], "requires_python": ">=2.7", "summary": "Python library and command line tool for removing/restoring emails in office365/Exchange using EWS API", "version": "1.0.0" }, "last_serial": 5810371, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "fc03caf6c0dfe2dd4483e074a059a8da", "sha256": "0f871195790047d5ab7d12e4fe7240fb2eb112a1f18ae966bfc107bcff0aed4d" }, "downloads": -1, "filename": "phishfry-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "fc03caf6c0dfe2dd4483e074a059a8da", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7", "size": 9582, "upload_time": "2019-09-10T17:46:28", "url": "https://files.pythonhosted.org/packages/1e/76/a09dc82a9d70ba7399155dd5c5bee013356395ed5768b4b80cd2cb119979/phishfry-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bd84b2c98cb2ef5119a7dfa714b04952", "sha256": "e4eb980cbe3db25ba3998f293c4b71a9ccf116aaa2115b23eea14173fe35101d" }, "downloads": -1, "filename": "phishfry-1.0.0.tar.gz", "has_sig": false, "md5_digest": "bd84b2c98cb2ef5119a7dfa714b04952", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 9133, "upload_time": "2019-09-10T17:46:31", "url": "https://files.pythonhosted.org/packages/a2/11/90ffe18fc343e9aceebfdc1eff11702319c6619ec854ea8ed3ce33ba8671/phishfry-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fc03caf6c0dfe2dd4483e074a059a8da", "sha256": "0f871195790047d5ab7d12e4fe7240fb2eb112a1f18ae966bfc107bcff0aed4d" }, "downloads": -1, "filename": "phishfry-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "fc03caf6c0dfe2dd4483e074a059a8da", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7", "size": 9582, "upload_time": "2019-09-10T17:46:28", "url": "https://files.pythonhosted.org/packages/1e/76/a09dc82a9d70ba7399155dd5c5bee013356395ed5768b4b80cd2cb119979/phishfry-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bd84b2c98cb2ef5119a7dfa714b04952", "sha256": "e4eb980cbe3db25ba3998f293c4b71a9ccf116aaa2115b23eea14173fe35101d" }, "downloads": -1, "filename": "phishfry-1.0.0.tar.gz", "has_sig": false, "md5_digest": "bd84b2c98cb2ef5119a7dfa714b04952", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 9133, "upload_time": "2019-09-10T17:46:31", "url": "https://files.pythonhosted.org/packages/a2/11/90ffe18fc343e9aceebfdc1eff11702319c6619ec854ea8ed3ce33ba8671/phishfry-1.0.0.tar.gz" } ] }