chrismaddalena / Goreport

A Python script to collect campaign data from Gophish and generate a report
BSD 3-Clause "New" or "Revised" License
176 stars 49 forks source link

Campaign ID None does not exist #34

Open jaywalker2022 opened 1 year ago

jaywalker2022 commented 1 year ago

When connecting to my gophish server, I get an error " Details: HTTPSConnectionPool(host='44.2xx.xx.55', port=3333): Max retries exceeded with url: /api/campaigns/50onnection: [Errno 110] Connection timed out')). Followed by: Success! [!] Looks like campaign ID None does not exist! Skipping it... [!] There was a problem processing campaign ID 50! L.. Details: 'NoneType' object has no attribute 'timeline' Issue was repeatable on a vanilla Ubuntu 20.04.5 and my kalli 2022.4 box. Interesting enough, I was able to get the code to work on my Windows machine using git for windows. Any recommendations?

chrismaddalena commented 1 year ago

That error means the script could not connect to the host using HTTPS and the provided IP and port. Gophish does not use TLS by default, so you might have needed to use http://44.2xx.xx.55:3333. The script should have halted once the connection failed. It tried to continue with none of the data from the server, which caused the ret of that output.