├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md ├── Sample-Config.json ├── clearEnv.sh ├── communication.py ├── database_access.py ├── database_constants.py ├── encryption.py ├── ensemble_agent ├── ensemble_api.py ├── ensemble_constants.py ├── ensemble_director ├── ensemble_enums.py ├── ensemble_logging.py ├── ensemble_web.py ├── requirements.txt ├── server_monitor.sh ├── static ├── css │ ├── bootstrap-theme.css │ ├── bootstrap-theme.css.map │ ├── bootstrap-theme.min.css │ ├── bootstrap-theme.min.css.map │ ├── bootstrap.css │ ├── bootstrap.css.map │ ├── bootstrap.min.css │ ├── bootstrap.min.css.map │ ├── ensemble.css │ └── ol.css ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── images │ └── ensemble.png └── js │ ├── bingmap.js │ ├── bootstrap.min.js │ ├── chart.min.js │ ├── common.js │ ├── controls.js │ ├── elm-pep.js │ ├── jquery-3.5.1.min.js │ ├── jquery-3.6.0.min.js │ ├── jquery-3.7.0.slim.min.js │ ├── login.js │ ├── message-service.js │ ├── minified.js │ ├── npm.js │ ├── ol.js │ ├── plotly-latest.min.js │ ├── polyfill.min.js │ └── popper.min.js ├── templates ├── agenthealth.html ├── agents.html ├── createadminuser.html ├── dashboard.html ├── events.html ├── jobresults.html ├── jobs.html ├── login.html ├── newjob.html ├── pagetemplate.html ├── scheduledjobresults.html ├── scheduledjobs.html └── settings.html └── useraccess.py /.gitignore: -------------------------------------------------------------------------------- 1 | .logs/ 2 | .temp/ 3 | .jobResults/ 4 | .conf/ 5 | .vscode/ 6 | __pycache__ 7 | 8 | .config.json 9 | .ensemble_database.sqlite3 10 | 11 | cert.pem 12 | key.pem 13 | 14 | cleardata 15 | 16 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM kalilinux/kali-last-release 2 | 3 | RUN apt-get update && apt-get upgrade -y && apt-get install -y apt-transport-https 4 | RUN apt-get install python3 -y && apt-get install python3-pip -y && apt-get install procps -y; 5 | 6 | WORKDIR /root/ 7 | 8 | CMD mkdir Ensemble 9 | 10 | WORKDIR /root/Ensemble 11 | 12 | COPY requirements.txt requirements.txt 13 | RUN pip3 install -r requirements.txt 14 | 15 | COPY ensemble_agent ensemble_agent 16 | RUN chmod +x ensemble_agent 17 | COPY communication.py communication.py 18 | COPY encryption.py encryption.py 19 | COPY ensemble_logging.py ensemble_logging.py 20 | COPY ensemble_constants.py ensemble_constants.py 21 | 22 | RUN /root/Ensemble/ensemble_agent --connection-string '{"ENCRYPTION_KEY":"", "HOST":"", "PORT":""}' 23 | 24 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 DNR 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
2 |
{{viewmodel.RunningProcesses}}
107 | 29 | | IP | 30 |Is Active | 31 |Health Status | 32 |Lask Checkin | 33 |Running Jobs | 34 | 35 |
---|
ID | 31 |EVENT TIME | 32 |EVENT | 33 | 34 |
---|
{{ viewmodel.JobData[0].Command }}
27 |
33 |
34 | Job ID:
35 |
37 | {{ viewmodel.JobData[0].JobId }}
36 | |
38 |
41 |
42 | Target:
43 |
45 | {{ viewmodel.JobData[0].Target }}
44 | |
46 |
51 |
52 | Agent ID:
53 | {{ job.AgentId }}
54 |
55 | |
56 |
59 |
60 | Start Time:
61 |
63 | {{ job.StartTime }}
62 | |
64 |
67 |
68 | End Time:
69 |
70 | {% if job.EndTime != None %}
71 |
77 | {{ job.EndTime }}
72 | {% else %}
73 | Pending
74 | {% endif %}
75 |
76 | |
78 |
81 |
82 | Canceled:
83 | {{ job.WasCanceled }}
84 |
85 | |
86 |
120 |
122 | 123 | {% if (viewmodel.JobData|length) == 1 %} 124 |
125 | {% endif %}
126 |
127 | {% if (viewmodel.JobData|length) > 1 %}
128 |
130 | {% endif %}
131 |
169 |
132 |
168 | |
170 |
41 | | ID | 42 |COMMAND | 43 |TARGETS | 44 |SINGLE CMD | 45 |STARTED | 46 |FINISHED | 47 |48 | 49 | |
---|
95 |
96 |
105 |
97 | Command
98 |
99 |
100 | Use {% raw -%}{{target}}{%- endraw %} where the targets go
101 |
103 |
104 |
106 |
116 |
124 | {% if viewmodel.Command != None %}
125 |
127 | {% else %}
128 |
129 | {% endif %}
130 |
131 |
107 |
115 | The following command will run once per target
108 | nmap -sC -sV -p- {% raw -%}{{target}}{%- endraw %}
110 | If the command expects the targets to be passed in as a file then
111 | it's handled the same in the command
112 | nmap -sC -sV -p- -iL {% raw -%}{{target}}{%- endraw %}
114 | |
132 |
135 |
136 | {% if viewmodel.IsSingleCommand == 1 %}
137 |
139 | {% else %}
140 |
141 | {% endif %}
142 |
146 |
147 | |
148 |
152 |
153 | {% if viewmodel.IsLoadBalanced == 1 %}
154 |
156 | {% else %}
157 |
158 | {% endif %}
159 |
163 |
164 | |
165 |
168 |
169 |
170 |
171 |
174 |
175 |
176 |
177 | 178 | 188 | 189 | 190 | 191 | 192 | 193 | 291 | |
292 |
295 | Targets
296 |
297 | (separate with line breaks)
298 |
300 |
301 |
302 |
313 | {% if viewmodel.Targets != None %}
314 |
316 | {% else %}
317 |
319 | {% endif %}
320 |
303 | Seriously, you need a hint?
304 |
312 |
305 | 192.168.1.1
306 |
311 | |
321 |
324 | 326 | | 327 |
32 |
33 | Scheduled Job Id:
34 |
36 | {{ viewmodel[0].ScheduledJobId }}
35 | |
37 |
42 |
43 | Agent ID:
44 | {{ job.AgentId }}
45 |
46 | |
47 |
50 |
51 | Job ID:
52 |
54 | {{ job.JobId }}
53 | |
55 |
58 |
59 | Run Time:
60 |
62 | {{ job.JobRunDate }}
61 | |
63 |
67 |
68 | |
69 |
32 | | ID | 33 |COMMAND | 34 |TARGETS | 35 |SINGLE CMD | 36 |TYPE | 37 |RUN TIME | 38 |SCHEDULED DATE | 39 |40 | 41 | |
---|
52 | | Scheduled Job Id | 53 |Job Id | 54 |Job Run Date | 55 |Agent Id | 56 | 57 |
---|
49 |
50 | Username:
51 |
52 | |
53 | 54 | 56 | | 57 |
60 |
61 | Password
62 |
63 | |
64 | |
67 | Old
68 | |
69 | 70 | 71 | | 72 |
75 | New
76 | |
77 | 78 | 79 | | 80 |
Description | 95 |Command | 96 |
---|
Add new command template |
102 | |
106 |
107 | Description:
108 |
109 | |
110 | 111 | 112 | | 113 |
116 |
117 | Command:
118 |
119 | |
120 | 121 | 122 | | 123 |