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:
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:
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
Describe the bug Missing two dependencies in Attack Search:
/run/systemd/resolv/resolv.conf
is not existTo Reproduce For the first missing dependency: running
/usr/bin/python3 /usr/bin/external_mail_handler.py
, then the failure is as below: 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:For the second: running
ls /run/systemd/
, the result doesn't have a directory namedresolv
Expected behavior
input('SMTP server running. Press Return to stop server and exit.')
to below code: