|
[求助]app检测自身是否运行在docker容器中
pureGavin 内核中的进程描述符里有个nsproxy结构体,这个指明了你是否在docker中,当然,如果你直接修改这个结构体,也能做到docker逃逸大佬 这个怎么能看出来 generic_x86_64_arm64:/ # ls -l /proc/self/ns total 0 lrwxrwxrwx 1 root root 0 2024-09-14 03:03 cgroup -> cgroup:[4026531835] lrwxrwxrwx 1 root root 0 2024-09-14 03:03 mnt -> mnt:[4026532600] lrwxrwxrwx 1 root root 0 2024-09-14 03:03 net -> net:[4026531998] lrwxrwxrwx 1 root root 0 2024-09-14 03:03 uts -> uts:[4026531838] generic_x86_64_arm64:/ # ls -l /proc/5110/ns total 0 lrwxrwxrwx 1 u0_a167 u0_a167 0 2024-09-14 03:03 cgroup -> cgroup:[4026531835] lrwxrwxrwx 1 u0_a167 u0_a167 0 2024-09-14 03:03 mnt -> mnt:[4026532813] lrwxrwxrwx 1 u0_a167 u0_a167 0 2024-09-14 03:03 net -> net:[4026531998] lrwxrwxrwx 1 u0_a167 u0_a167 0 2024-09-14 03:03 uts -> uts:[4026531838] |
|
[求助]app检测自身是否运行在docker容器中
tDasm 说句不好听的,那列举的那些检测思路都是错的,你检测是否安装docker?安装了docker就一定运行在docker中?所以你这个项目也就不言而喻了。没错 是这样的,之前的检测方向可能不对,所以现在就是想找到这样一种方法。 |
|
|
|
|
|
|
|
|
|
|
|
|
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值