Add check and warn user if root permissions are needed
IMHO, it would improve the user experience if there is a warning in the REPL when a plugin requires elevated privileges. Like nmap
scan or Bluetooth.
Something like that:
def is_root():
return os.geteuid() == 0
def __init__(self):
"""Initialize the test."""
super().__init__(
name="a-test",
summary="A test",
[...]
target=TTarget(TTarget.GENERIC, TTarget.GENERIC, TTarget.GENERIC),
requires_root=True,
)
and compare it.