Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: CDK CI

on:
workflow_dispatch:
release:
types: [released]
types: [released, prereleased]

jobs:

Expand All @@ -13,15 +14,15 @@ jobs:
steps:
- uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: 1.22.2
- uses: actions/setup-node@v1
with:
node-version: 10.x
- uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
- name: Upload Release and Renew Changelog
env:
UPLOAD_URL: ${{ github.event.release.upload_url }}
Expand All @@ -30,6 +31,7 @@ jobs:
RELEASE_URL: ${{ github.event.release.url }}

run: |
set -euo pipefail
set -x

go get github.com/mitchellh/gox
Expand Down
5 changes: 4 additions & 1 deletion pkg/exploit/escaping/containerd_shim_pwn.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
"log"
"net"
"os"
"path/filepath"
"regexp"
"strings"

Expand Down Expand Up @@ -123,7 +124,9 @@ func containerdShimApiExp(sock, shellCmd, rhost, rport string) error {
localBundlePath := fmt.Sprintf("/cdk_%s", util.RandString(6))
os.Mkdir(localBundlePath, os.ModePerm)

dockerAbsPath := GetDockerAbsPath() + "/merged" + localBundlePath
absPath := GetDockerAbsPath()
absPath = strings.TrimSuffix(absPath, "/merged")
dockerAbsPath := filepath.Join(absPath, "merged", localBundlePath)

var payloadShellCmd = ""
if len(shellCmd) > 0 {
Expand Down
Loading