From f730e75cc80e72767120062cc914d3969b70fec1 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Wed, 22 Sep 2021 19:19:35 +0530 Subject: [PATCH] island: Change `pass` to `...` for abstract properties in cc/services/attack/technique_reports/ See https://stackoverflow.com/a/58321197/10629482. --- .../services/attack/technique_reports/__init__.py | 14 +++++++------- .../attack/technique_reports/pba_technique.py | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/monkey/monkey_island/cc/services/attack/technique_reports/__init__.py b/monkey/monkey_island/cc/services/attack/technique_reports/__init__.py index 360288a07..07491fbfc 100644 --- a/monkey/monkey_island/cc/services/attack/technique_reports/__init__.py +++ b/monkey/monkey_island/cc/services/attack/technique_reports/__init__.py @@ -25,7 +25,7 @@ class AttackTechnique(object, metaclass=abc.ABCMeta): """ :return: Message that will be displayed in case attack technique was not scanned. """ - pass + ... @property @abc.abstractmethod @@ -33,7 +33,7 @@ class AttackTechnique(object, metaclass=abc.ABCMeta): """ :return: Message that will be displayed in case attack technique was scanned. """ - pass + ... @property @abc.abstractmethod @@ -41,7 +41,7 @@ class AttackTechnique(object, metaclass=abc.ABCMeta): """ :return: Message that will be displayed in case attack technique was used by the scanner. """ - pass + ... @property @abc.abstractmethod @@ -49,7 +49,7 @@ class AttackTechnique(object, metaclass=abc.ABCMeta): """ :return: Id of attack technique. E.g. T1003 """ - pass + ... @property @abc.abstractmethod @@ -59,7 +59,7 @@ class AttackTechnique(object, metaclass=abc.ABCMeta): (examples: 1. "Trap Command" PBA (technique T1154) is Linux only. 2. "Job Scheduling" PBA has different techniques for Windows and Linux. """ - pass + ... @staticmethod @abstractstatic @@ -67,7 +67,7 @@ class AttackTechnique(object, metaclass=abc.ABCMeta): """ :return: Report data aggregated from the database. """ - pass + ... @classmethod def technique_status(cls): @@ -124,7 +124,7 @@ class AttackTechnique(object, metaclass=abc.ABCMeta): @staticmethod def _get_unscanned_msg_with_reasons(unscanned_msg): - pass + ... @classmethod def technique_title(cls): diff --git a/monkey/monkey_island/cc/services/attack/technique_reports/pba_technique.py b/monkey/monkey_island/cc/services/attack/technique_reports/pba_technique.py index 9e7324917..07e64566e 100644 --- a/monkey/monkey_island/cc/services/attack/technique_reports/pba_technique.py +++ b/monkey/monkey_island/cc/services/attack/technique_reports/pba_technique.py @@ -15,7 +15,7 @@ class PostBreachTechnique(AttackTechnique, metaclass=abc.ABCMeta): """ :return: names of post breach action """ - pass + ... @classmethod def get_pba_query(cls, post_breach_action_names):