forked from p15670423/monkey
Remove unused `did_exploit_type_succeed()` from `monkey_island/cc/services/reporting/report.py`
This commit is contained in:
parent
df7759e332
commit
9bcaa2ef8e
|
@ -763,12 +763,3 @@ class ReportService:
|
|||
if ReportService.is_latest_report_exists():
|
||||
return ReportService.decode_dot_char_before_mongo_insert(mongo.db.report.find_one())
|
||||
return safe_generate_regular_report()
|
||||
|
||||
@staticmethod
|
||||
def did_exploit_type_succeed(exploit_type):
|
||||
return (
|
||||
mongo.db.edge.count(
|
||||
{"exploits": {"$elemMatch": {"exploiter": exploit_type, "result": True}}}, limit=1
|
||||
)
|
||||
> 0
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue