forked from p15670423/monkey
Island: Rename Signal -> Signals in cc/resources/agent_signals.py
This commit is contained in:
parent
0775449fa9
commit
dccef0efa5
|
@ -5,7 +5,7 @@ from json import JSONDecodeError
|
||||||
from flask import request
|
from flask import request
|
||||||
|
|
||||||
from monkey_island.cc.event_queue import IIslandEventQueue, IslandEventTopic
|
from monkey_island.cc.event_queue import IIslandEventQueue, IslandEventTopic
|
||||||
from monkey_island.cc.models import AgentSignals as Signal
|
from monkey_island.cc.models import AgentSignals as Signals
|
||||||
from monkey_island.cc.resources.AbstractResource import AbstractResource
|
from monkey_island.cc.resources.AbstractResource import AbstractResource
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
@ -22,7 +22,7 @@ class AgentSignals(AbstractResource):
|
||||||
|
|
||||||
def post(self):
|
def post(self):
|
||||||
try:
|
try:
|
||||||
signal = Signal(**request.json)
|
signal = Signals(**request.json)
|
||||||
|
|
||||||
# We allow an empty timestamp. However, should the agent be able to send us one?
|
# We allow an empty timestamp. However, should the agent be able to send us one?
|
||||||
if signal.terminate is None:
|
if signal.terminate is None:
|
||||||
|
|
Loading…
Reference in New Issue