cisagov / gophish-tools

Helpful tools for interacting with a GoPhish phishing instance
Creative Commons Zero v1.0 Universal
42 stars 6 forks source link

Update gophish export #9

Closed bjb28 closed 4 years ago

bjb28 commented 4 years ago

๐Ÿ—ฃ Description

This PR does the following:

๐Ÿ’ญ Motivation and Context

The main focus of this update was to add the assessment exists check so a user would not receive an empty data file when the script is run. Additional changes were made at this time to update formatting and improve testing.

๐Ÿงช Testing

I conducted manual tests to ensure a correct assessment id results in a data file while an incorrect assessment id generates the expected error.

๐Ÿ“ท Screenshots (if appropriate)

๐Ÿšฅ Types of Changes

โœ… Checklist

dav3r commented 4 years ago

Great work here @bjb28! :electron: