New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] listing Emails #20
Comments
Hi, are you sure that you have correctly configured the credentials to access the mailbox in the configuration file? |
Just double checked both Mailbox-credentials (gmail, 365) with config files i got from a working docker installation and i'm positive it is correct. Also used a clean config backup with those credentials and still getting the same error (with only the letters at the end changing). |
I did some more testing but couldn't get the system running. But I documented some more details from the installation process. I first tried to install the requirements, following your documentation, with
That's why i went with
I thought i resolved those issues by manually installing the required parts with:
After that the requirements.txt doesn't throw any errors but i guess there is still a problem. Sadly i'm not experiend enough to resolve this issue myself and would be happy if you could point me to the right direction. |
ThePhish requires Python 3, so you must use pip3 to install the requirements. Moreover, if you have conflicts, this may be because you are trying to install it in your global environment. You should first create a virtual environment and activate it (as explained in the guide) and then install the requirements using pip3, so as to prevent any conflict. |
Okay that's what i thought but since your guide states to use pip, i did that first. i installed it globally since this is the machines only purpose but i will try the venv. |
Using venv and pip inside solved the problem. Thanks for your help :) |
Hello again,
i set up ThePhish from scratch and integrated theHive, MISP and Cortex correctly. When trying to fetch Emails though i get the following traceback. I tested 2 Email-Adresses, using the data i already used sucessfully on a docker build.
[ERROR]_[list_emails]: Error while trying to connect to IMAP server: Traceback (most recent call last):
File "/etc/ThePhish/app/list_emails.py", line 243, in main
connection = connect_to_IMAP_server()
File "/etc/ThePhish/app/list_emails.py", line 21, in connect_to_IMAP_server
connection.login(config['imapUser'], config['imapPassword'])
File "/usr/lib/python3.8/imaplib.py", line 601, in login
typ, dat = self._simple_command('LOGIN', user, self._quote(password))
File "/usr/lib/python3.8/imaplib.py", line 1205, in _simple_command
return self._command_complete(name, self._command(name, *args))
File "/usr/lib/python3.8/imaplib.py", line 1030, in _command_complete
raise self.error('%s command error: %s %s' % (name, typ, data))
imaplib.IMAP4.error: LOGIN command error: BAD [b'Not enough arguments provided 8mb428246745wrb']
Work environment
| -------------------------- | ------------------------------------- |
| OS version (server) | Ubuntu 20.04.4 |
| OS version (client) | Ubuntu 20.04.4 |
| Python version | 3.8.10 |
| Type of email address used | Gmail, 365 |
| Browser type & version | Firefox, Chromium |
| Virtualized Env. | True |
| Dedicated RAM | 24 GB |
| vCPU | 8 |
| ThePhish version | latest |
| TheHive version | 4.1.22-1 |
| Cortex version | 3.1.6-1 |
| MISP version | 2.4.159 |
| Installed using Docker and Docker Compose | False |
To Reproduce
start ThePhish with:
cd /etc/ThePhish/app/
python3 thephish_app.py
navigate to localhost:8080 and click "List Emails"
Expected behavior
ThePhish connecting to inbox and getting Emails.
Screenshots
Solution
I tried to search for that problem but couldn't find something helpfull. Would be great if you have an idea on how to resolve this issue.
Thanks in advance
The text was updated successfully, but these errors were encountered: