forked from p15670423/monkey
Island: remove unused "creds" properties from monkey model
This commit is contained in:
parent
0a7637c944
commit
afc98667c4
|
@ -3,7 +3,6 @@ from .command_control_channel import CommandControlChannel
|
|||
# Order of importing matters here, for registering the embedded and referenced documents before
|
||||
# using them.
|
||||
from .config import Config
|
||||
from .creds import Creds
|
||||
from .monkey import Monkey
|
||||
from .monkey_ttl import MonkeyTtl
|
||||
from .pba_results import PbaResults
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
from mongoengine import EmbeddedDocument
|
||||
|
||||
|
||||
class Creds(EmbeddedDocument):
|
||||
"""
|
||||
TODO get an example of this data, and make it strict
|
||||
"""
|
||||
|
||||
meta = {"strict": False}
|
||||
pass
|
|
@ -38,7 +38,6 @@ class Monkey(Document):
|
|||
# SCHEMA
|
||||
guid = StringField(required=True)
|
||||
config = EmbeddedDocumentField("Config")
|
||||
creds = ListField(EmbeddedDocumentField("Creds"))
|
||||
dead = BooleanField()
|
||||
description = StringField()
|
||||
hostname = StringField()
|
||||
|
|
|
@ -74,10 +74,8 @@ meta # unused variable (monkey/monkey_island/cc/models/zero_trust/finding.py:37
|
|||
meta # unused variable (monkey/monkey_island/cc/models/monkey_ttl.py:34)
|
||||
expire_at # unused variable (monkey/monkey_island/cc/models/monkey_ttl.py:36)
|
||||
meta # unused variable (monkey/monkey_island/cc/models/config.py:11)
|
||||
meta # unused variable (monkey/monkey_island/cc/models/creds.py:9)
|
||||
meta # unused variable (monkey/monkey_island/cc/models/edge.py:5)
|
||||
Config # unused class (monkey/monkey_island/cc/models/config.py:4)
|
||||
Creds # unused class (monkey/monkey_island/cc/models/creds.py:4)
|
||||
_.do_CONNECT # unused method (monkey/infection_monkey/transport/http.py:151)
|
||||
_.do_POST # unused method (monkey/infection_monkey/transport/http.py:122)
|
||||
_.do_HEAD # unused method (monkey/infection_monkey/transport/http.py:61)
|
||||
|
|
Loading…
Reference in New Issue