Skip to content

Commit ae411af

Browse files
committed
fix #114 (shim_pwn): a new log for debug, need to fix the bug in future
1 parent 2ed837a commit ae411af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/exploit/escaping/containerd_shim_pwn.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,12 @@ func containerdShimApiExp(sock, shellCmd, rhost, rport string) error {
124124
localBundlePath := fmt.Sprintf("/cdk_%s", util.RandString(6))
125125
os.Mkdir(localBundlePath, os.ModePerm)
126126

127+
// dockerAbsPath := GetDockerAbsPath() + "/merged" + localBundlePath
127128
absPath := GetDockerAbsPath()
128129
absPath = strings.TrimSuffix(absPath, "/merged")
129130
dockerAbsPath := filepath.Join(absPath, "merged", localBundlePath)
131+
// add a new log info, to find bug in real world
132+
log.Println("rootfs path, dockerAbsPath:", dockerAbsPath)
130133

131134
var payloadShellCmd = ""
132135
if len(shellCmd) > 0 {

0 commit comments

Comments
 (0)