Ubuntu 21.04使用编译好的5.13.13内核,然后去提权
原文写的如下命令。
make
cp exploit test/share
cd test
./run.sh
再执行下面的语句会报错:
cp: can't stat '/mnt/exploit': No such file or directory
# (in qemu)
cp /mnt/exploit .
setcap cap_bpf+ep exploit;
setsid cttyhack setuidgid 1000 exploit
上面的
cp exploit test/share 应该改成 cp exploit test/shared
继续执行上面的语句
setsid cttyhack setuidgid 1000 exploit
报错:
setuidgid: can't execute 'exploit': No such file or directory
应该按如下方式执行setsid cttyhack setuidgid 1000 ./exploit