Skip to content

Commit

Permalink
Added Integrity level field
Browse files Browse the repository at this point in the history
  • Loading branch information
Ne0nd0g committed Feb 17, 2022
1 parent a6dbd0a commit a84bede
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 55 deletions.
57 changes: 4 additions & 53 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,60 +1,11 @@
FROM golang:1.16-buster
FROM ne0nd0g/merlin-base

# Build the Docker image first
# > sudo docker build -t merlin .

# To start the Merlin Server, run
# > sudo docker run -it -p 443:443 -v ~/merlin-server-log:/opt/merlin/data/log -v ~/merlin-agent-logs:/opt/merlin/data/agents merlin:latest
# To start the Merlin Server and interact with it, run:
# > sudo docker run -it -p 443:443 -v ~/merlin:/opt/merlin/data merlin:latest

# Update APT
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y apt-transport-https vim gcc-mingw-w64 unzip

# Install Microsoft package signing key
RUN wget --quiet -O - https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
RUN mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
RUN wget --quiet https://packages.microsoft.com/config/debian/10/prod.list
RUN mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
RUN chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
RUN chown root:root /etc/apt/sources.list.d/microsoft-prod.list

# Install Microsoft .NET Core 2.1 SDK
RUN apt-get update
RUN apt-get install -y dotnet-sdk-2.1

# Clone Merlin Server
WORKDIR /opt
RUN git clone --recurse-submodules https://github.com/Ne0nd0g/merlin
WORKDIR /opt/merlin
RUN go mod download

# Clone Merlin Agent
WORKDIR /opt/
RUN git clone https://github.com/Ne0nd0g/merlin-agent
WORKDIR /opt/merlin-agent
RUN go mod download
RUN make all

# Clone Merlin Agent DLL
WORKDIR /opt/
RUN git clone https://github.com/Ne0nd0g/merlin-agent-dll
WORKDIR /opt/merlin-agent-dll
RUN go mod download
RUN make

# Build SharpGen
WORKDIR /opt/merlin/data/src/cobbr/SharpGen
RUN dotnet build -c release

# Download Mimikatz
WORKDIR /opt/merlin/data/src/
RUN wget https://github.com/gentilkiwi/mimikatz/releases/latest/download/mimikatz_trunk.zip
RUN unzip mimikatz_trunk.zip -d mimikatz
RUN rm /opt/merlin/data/src/mimikatz_trunk.zip

# Port that the agent will communicate with the server on
EXPOSE 443

WORKDIR /opt/merlin
CMD ["go", "run", "main.go"]
ENTRYPOINT ["go", "run", "main.go"]
3 changes: 2 additions & 1 deletion docs/CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 1.3 - 2022-02-11
## 1.3 - 2022-02-17

### Changed

- Added the `Integrity` field to the agents.Agent and messages.SysInfo structures
- The agent menu `info` command now shows the agent's integrity level
- Windows: `2`-Medium, `3`-High, `4`-System
- All other OS: `3` - member of sudo group, `4` - running as root
- Dockerfile now uses [merlin-base](https://hub.docker.com/r/ne0nd0g/merlin-base) image

## 1.2.1 - 2022-01-10

Expand Down
2 changes: 1 addition & 1 deletion pkg/merlin.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package merlin

// Version is a constant variable containing the version number for the Merlin package
const Version = "1.2.1"
const Version = "1.3"

// Build is the unique number based off the git commit in which it is compiled against
var Build = "nonRelease"

0 comments on commit a84bede

Please sign in to comment.