Skip to content

Commit

Permalink
Merge branch 'master' into multiextensions
Browse files Browse the repository at this point in the history
  • Loading branch information
rkervella authored Oct 16, 2023
2 parents c02c40c + e804605 commit 5e5e0df
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21
FROM golang:1.21.3

#
# IMPORTANT: This Dockerfile is used for testing, I do not recommend deploying
Expand Down
5 changes: 4 additions & 1 deletion client/console/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func StartClient(con *SliverConsoleClient, rpc rpcpb.SliverRPCClient, serverCmds
consoleLog := getConsoleLogFile()
consoleLogStream, err := con.ClientLogStream("json")
if err != nil {
log.Printf("Could not get client log stream: %s", err)
log.Printf("Could not get client json log stream: %s", err)
}
con.setupLogger(consoleLog, consoleLogStream)
defer consoleLog.Close()
Expand All @@ -202,6 +202,9 @@ func StartClient(con *SliverConsoleClient, rpc rpcpb.SliverRPCClient, serverCmds
defer asciicastLog.Close()

asciicastStream, err := con.ClientLogStream("asciicast")
if err != nil {
log.Printf("Could not get client asciicast log stream: %s", err)
}
con.setupAsciicastRecord(asciicastLog, asciicastStream)
}

Expand Down
12 changes: 9 additions & 3 deletions docs/install
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,25 @@ if command -v apt &> /dev/null; then
DEBIAN_FRONTEND=noninteractive apt install -yqq \
gpg curl build-essential git \
mingw-w64 binutils-mingw-w64 g++-mingw-w64
INSTALLER=(apt install -yqq)
elif command -v yum &> /dev/null; then # Redhat-based OS (Fedora, CentOS, RHEL)
echo "Installing dependencies using yum..."
yum -y install gnupg curl gcc gcc-c++ make mingw64-gcc git
INSTALLER=(yum -y)
elif command -v pacman &>/dev/null; then # Arch-based (Manjaro, Garuda, Blackarch)
echo "Installing dependencies using pacman..."
pacman -S mingw-w64-gcc mingw-w64-binutils mingw-w64-headers
INSTALLER=(pacman -S)
else
echo "Unsupported OS, exiting"
exit
fi

# Verify if necessary tools are installed
for cmd in curl awk gpg; do
if ! command -v "$cmd" &> /dev/null; then
echo "$cmd could not be found, exiting"
exit 1
if ! command -v "$cmd" &> /dev/null; then
echo "$cmd could not be found, installing..."
${INSTALLER[@]} "$cmd"
fi
done

Expand Down
4 changes: 2 additions & 2 deletions go-assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ set -e

# Creates the static go asset archives

GO_VER="1.21.0"
GARBLE_VER="1.21.0"
GO_VER="1.21.3"
GARBLE_VER="1.21.3"
SGN_VER="0.0.3"

BLOAT_FILES="AUTHORS CONTRIBUTORS PATENTS VERSION favicon.ico robots.txt SECURITY.md CONTRIBUTING.md LICENSE README.md ./doc ./test ./api ./misc"
Expand Down

0 comments on commit 5e5e0df

Please sign in to comment.