Skip to content
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

Missing dependencies in Attacker Server #93

Open
1ncludeSteven opened this issue Oct 28, 2024 · 1 comment · May be fixed by #98
Open

Missing dependencies in Attacker Server #93

1ncludeSteven opened this issue Oct 28, 2024 · 1 comment · May be fixed by #98
Assignees
Labels
bug Something isn't working

Comments

@1ncludeSteven
Copy link

1ncludeSteven commented Oct 28, 2024

Describe the bug
Missing two dependencies in Attack Search:

  • missing pip dependencies of aiosmptd when updating tests after switching from smptd to aiosmtpd in Attacker
  • missing systemd-resolved apt in Attacker Server so that the /run/systemd/resolv/resolv.conf is not exist

To Reproduce
For the first missing dependency: running /usr/bin/python3 /usr/bin/external_mail_handler.py, then the failure is as below:
image
And after install python3-aiosmtpd, we can running /usr/bin/python3 /usr/bin/external_mail_handler.py successfully, however, the service still can not running successfully with error as below:
image

For the second: running ls /run/systemd/, the result doesn't have a directory named resolv

Expected behavior

  • install python3-aiosmtpd in Attacker using apt, and change the input('SMTP server running. Press Return to stop server and exit.') to below code:
    try:
        while True:
            pass  # keep running
    except KeyboardInterrupt:
        self.controller.stop()
  • install systemd-resolved after attacker is installed using apt
@Maspital
Copy link
Collaborator

Yup, missed that when switching from the deprecated smtpd module.

@Maspital Maspital linked a pull request Nov 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants