Files renamed to be more precise, typo in comment fixed.

This commit is contained in:
VakarisZ 2019-03-28 18:23:03 +02:00
parent f36ff73c9e
commit 11576c0942
5 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@ class VictimHostTelem(AttackTelem):
def __init__(self, technique, status, machine, data=None): def __init__(self, technique, status, machine, data=None):
""" """
ATT&CK telemetry that parses and sends VictimHost telemetry ATT&CK telemetry that parses and sends VictimHost's (remote machine's) data
:param technique: Technique ID. E.g. T111 :param technique: Technique ID. E.g. T111
:param status: int from ScanStatus Enum :param status: int from ScanStatus Enum
:param machine: VictimHost obj from model/host.py :param machine: VictimHost obj from model/host.py

View File

@ -30,7 +30,7 @@ from cc.resources.telemetry_feed import TelemetryFeed
from cc.resources.pba_file_download import PBAFileDownload from cc.resources.pba_file_download import PBAFileDownload
from cc.services.config import ConfigService from cc.services.config import ConfigService
from cc.resources.pba_file_upload import FileUpload from cc.resources.pba_file_upload import FileUpload
from cc.resources.attack import Attack from cc.resources.attack_telem import AttackTelem
__author__ = 'Barak' __author__ = 'Barak'
@ -124,6 +124,6 @@ def init_app(mongo_url):
'/api/fileUpload/<string:file_type>?load=<string:filename>', '/api/fileUpload/<string:file_type>?load=<string:filename>',
'/api/fileUpload/<string:file_type>?restore=<string:filename>') '/api/fileUpload/<string:file_type>?restore=<string:filename>')
api.add_resource(RemoteRun, '/api/remote-monkey', '/api/remote-monkey/') api.add_resource(RemoteRun, '/api/remote-monkey', '/api/remote-monkey/')
api.add_resource(Attack, '/api/attack/<string:technique>') api.add_resource(AttackTelem, '/api/attack/<string:technique>')
return app return app

View File

@ -1,7 +1,7 @@
import flask_restful import flask_restful
from flask import request from flask import request
import json import json
from cc.services.attck.attack_results import set_results from cc.services.attack.attack_results import set_results
import logging import logging
__author__ = 'VakarisZ' __author__ = 'VakarisZ'
@ -9,7 +9,7 @@ __author__ = 'VakarisZ'
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)
class Attack(flask_restful.Resource): class AttackTelem(flask_restful.Resource):
""" """
ATT&CK endpoint used to retrieve matrix related info from monkey ATT&CK endpoint used to retrieve matrix related info from monkey
""" """