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

This reverts commit 11576c0942.
This commit is contained in:
VakarisZ 2019-04-01 19:50:35 +03:00
parent 250fcb97bb
commit ee0b6a042d
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's (remote machine's) data ATT&CK telemetry that parses and sends VictimHost telemetry
: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_telem import AttackTelem from cc.resources.attack import Attack
__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(AttackTelem, '/api/attack/<string:technique>') api.add_resource(Attack, '/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.attack.attack_results import set_results from cc.services.attck.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 AttackTelem(flask_restful.Resource): class Attack(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
""" """