forked from p15670423/monkey
Revert "Files renamed to be more precise, typo in comment fixed."
This reverts commit 11576c0942
.
This commit is contained in:
parent
250fcb97bb
commit
ee0b6a042d
|
@ -7,7 +7,7 @@ class VictimHostTelem(AttackTelem):
|
|||
|
||||
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 status: int from ScanStatus Enum
|
||||
:param machine: VictimHost obj from model/host.py
|
||||
|
|
|
@ -30,7 +30,7 @@ from cc.resources.telemetry_feed import TelemetryFeed
|
|||
from cc.resources.pba_file_download import PBAFileDownload
|
||||
from cc.services.config import ConfigService
|
||||
from cc.resources.pba_file_upload import FileUpload
|
||||
from cc.resources.attack_telem import AttackTelem
|
||||
from cc.resources.attack import Attack
|
||||
|
||||
__author__ = 'Barak'
|
||||
|
||||
|
@ -124,6 +124,6 @@ def init_app(mongo_url):
|
|||
'/api/fileUpload/<string:file_type>?load=<string:filename>',
|
||||
'/api/fileUpload/<string:file_type>?restore=<string:filename>')
|
||||
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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import flask_restful
|
||||
from flask import request
|
||||
import json
|
||||
from cc.services.attack.attack_results import set_results
|
||||
from cc.services.attck.attack_results import set_results
|
||||
import logging
|
||||
|
||||
__author__ = 'VakarisZ'
|
||||
|
@ -9,7 +9,7 @@ __author__ = 'VakarisZ'
|
|||
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
|
||||
"""
|
Loading…
Reference in New Issue