emalderson/ThePhish

[BUG] Error while trying to connect to IMAP server

gru3zi opened this issue · 2 comments

Describe the bug

After setting it up all up and despite using a virtual environment I still am unable to get the gmail authentication to work. I have tried two different app passwords with gmail resulting in the same issue.

Work environment

Question Answer
OS version (server) Ubuntu
OS version (client) 20.04.5 LTS
Python version 3.8.10
Type of email address used Gmail
Mail client type & version Gmail
Browser type & version Chrome
Virtualized Env. True
Dedicated RAM 4 GB
vCPU 6
ThePhish version Where do I find this info? latest git clone
TheHive version 5.0.18-1
Cortex version cortex0 - 3.1.7-1
MISP version MISP - 2.4.164
Installed using Docker and Docker Compose False

image

To Reproduce

Steps to reproduce the behavior:

  1. Go to the Phish URL'
  2. Click on List emails'
  3. An error is produced

Expected behavior

Expect a valid connection to gmail

Screenshots

Dependencies met

image

App password configured

image

Config file

image

image

Error

image

image

Additional context

My Hive, Cortex and MISP is hosted on another container within my proxmox server.

The only thing I cant seem to get working is the "Add the run_responder()". Is it still relevant for my case? Do I run the command on my ThePhish container or my other container holding thehive?

I see from your environment that you're using TheHive 5. ThePhish has not been tested on TheHive 5. This is the reason why your "add_run_responder()" will never work.
However, this issue seems to be unrelated to TheHive or ThePhish itself, it is likely more of a configuration problem either in your configuration file or with your Google App password.
I suggest you switch to TheHive 4 to try ThePhish, maybe you can use the docker-compose available in the repo.