forked from EmpireProject/Empire
-
-
Notifications
You must be signed in to change notification settings - Fork 589
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #710 from BC-SECURITY/release/5.8.1
v5.8.1 into main
- Loading branch information
Showing
278 changed files
with
8,503 additions
and
9,754 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Git | ||
**.git | ||
.gitignore | ||
.github | ||
|
||
# CI | ||
.codeclimate.yml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,59 @@ | ||
schemaVersion: 2.0.0 | ||
commandTests: | ||
- name: "python3 which" | ||
command: "which" | ||
args: ["python3"] | ||
- name: "poetry python" | ||
command: "poetry" | ||
args: ["run", "which", "python3"] | ||
expectedOutput: ["/usr/local/bin/python3"] | ||
- name: "python3 version" | ||
command: "python3" | ||
args: ["--version"] | ||
expectedOutput: ["Python 3.11.*"] | ||
expectedOutput: ["Python 3.12.*"] | ||
- name: "poetry" | ||
command: "which" | ||
args: ["poetry"] | ||
expectedOutput: ["/usr/bin/poetry"] | ||
- name: "poetry version" | ||
command: "poetry" | ||
args: ["--version"] | ||
expectedOutput: ["Poetry (version 1.6*)*"] | ||
- name: "poetry python version" | ||
command: "poetry" | ||
args: ["run", "python3", "--version"] | ||
expectedOutput: ["Python 3.12.*"] | ||
- name: "dotnet which" | ||
command: "which" | ||
args: ["dotnet"] | ||
expectedOutput: ["/usr/bin/dotnet"] | ||
- name: "dotnet version" | ||
command: "dotnet" | ||
args: [ "--version" ] | ||
expectedOutput: ["6.0.*"] | ||
- name: "powershell which" | ||
command: "which" | ||
args: ["pwsh"] | ||
expectedOutput: ["/usr/bin/pwsh"] | ||
- name: "powershell version" | ||
command: "pwsh" | ||
args: ["--version"] | ||
expectedOutput: ["PowerShell 7.*"] | ||
- name: "ps-empire help" | ||
command: "./ps-empire" | ||
args: ["server", "--help"] | ||
expectedOutput: ["usage: empire.py server [-h]*"] | ||
- name: "ps-empire version" | ||
command: "./ps-empire" | ||
args: ["server", "--version"] | ||
expectedOutput: ["5.* BC Security Fork"] | ||
fileExistenceTests: | ||
- name: 'profiles' | ||
path: '/empire/empire/server/data/profiles/' | ||
shouldExist: true | ||
- name: 'invoke obfuscation' | ||
path: '/usr/local/share/powershell/Modules/Invoke-Obfuscation/' | ||
shouldExist: true | ||
- name: 'sharpire' | ||
path: '/empire/empire/server/csharp/Covenant/Data/ReferenceSourceLibraries/Sharpire' | ||
shouldExist: true | ||
- name: 'starkiller' | ||
path: '/empire/empire/server/api/v2/starkiller/index.html' | ||
shouldExist: true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
ARG BASE_IMAGE | ||
FROM $BASE_IMAGE | ||
WORKDIR /empire | ||
COPY . /empire | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
RUN apt-get update && apt-get -y install sudo | ||
|
||
# Add a non-root user | ||
RUN echo 'empire ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers | ||
RUN useradd -m empire | ||
RUN chown -R empire:empire /empire | ||
USER empire | ||
|
||
RUN sed -i 's/use: mysql/use: sqlite/g' empire/server/config.yaml | ||
RUN yes | /empire/setup/install.sh | ||
RUN rm -rf /empire/empire/server/data/empire* |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
schemaVersion: 2.0.0 | ||
containerRunOptions: | ||
user: "empire" | ||
commandTests: | ||
- name: "mysql version" | ||
command: "mysql" | ||
args: ["--version"] | ||
expectedOutput: ["mysql Ver 15.*10.*-MariaDB"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
schemaVersion: 2.0.0 | ||
containerRunOptions: | ||
user: "empire" | ||
commandTests: | ||
- name: "mysql version" | ||
command: "mysql" | ||
args: ["--version"] | ||
expectedOutput: ["mysql Ver 15.*10.*-MariaDB"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
schemaVersion: 2.0.0 | ||
containerRunOptions: | ||
user: "empire" | ||
commandTests: | ||
- name: "mysql version" | ||
command: "mysql" | ||
args: ["--version"] | ||
expectedOutput: ["mysql Ver 15.*10.*-MariaDB"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
schemaVersion: 2.0.0 | ||
containerRunOptions: | ||
user: "empire" | ||
commandTests: | ||
- name: "mysql version" | ||
command: "mysql" | ||
args: ["--version"] | ||
expectedOutput: ["mysql Ver 8.0.*"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.