cisagov / gophish-tools

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

SyntaxError: invalid syntax #64

Closed iblissguy closed 2 years ago

iblissguy commented 2 years ago

🐛 Summary

What's wrong? Please be specific.

I downloaded "gophish_export.py" and then when i try to run "python gophish_export.py" i get the following answer:

"# python gophish_export.py File "gophish_export.py", line 161 rawCampaign: dict = api.campaigns.get(campaign_id).as_dict() ^ SyntaxError: invalid syntax "

To reproduce

Steps to reproduce the behavior:

  1. Do this
  2. Then this

Expected behavior

What did you expect to happen that didn't?

I want to export my gophish config to JSON and backup them up

Any helpful log output or screenshots

Paste the results here:

Add any screenshots of the problem here.

mcdonnnj commented 2 years ago

@iblissguy We would need more information about your environment to assist you. Things such as OS, Python version, etc. Also this is a Python package and I see that you are not installing it as such.

iblissguy commented 2 years ago

i missunderstood how to use the feature. After some time taking pain in here, i got it... now im struggling with the assessment id thing