Agent: Remove CredentialsTelem

This commit is contained in:
Shreya Malviya 2022-09-15 12:29:18 +05:30
parent 775b0e69eb
commit eba94293d4
1 changed files with 0 additions and 26 deletions

View File

@ -1,26 +0,0 @@
from typing import Iterable
from common.common_consts.telem_categories import TelemCategoryEnum
from common.credentials import Credentials
from infection_monkey.telemetry.base_telem import BaseTelem
class CredentialsTelem(BaseTelem):
telem_category = TelemCategoryEnum.CREDENTIALS
def __init__(self, credentials: Iterable[Credentials]):
"""
Used to send information about stolen or discovered credentials to the Island.
:param credentials: An iterable containing credentials to be sent to the Island.
"""
self._credentials = credentials
@property
def credentials(self) -> Iterable[Credentials]:
return iter(self._credentials)
def send(self, log_data=True):
super().send(log_data=False)
def get_data(self):
return [c.dict(simplify=True) for c in self._credentials]