OSCP Linux Privilege Escalation Using Apache2
文章介绍了一个名为GTFObins的Linux系统提权工具集,并演示了使用vim进行权限提升的常见方法以及一个不为人知的隐藏技巧。 2025-8-4 04:44:33 Author: infosecwriteups.com(查看原文) 阅读量:17 收藏

enigma_

Apache2 method

🔥FREE VERSION — Click here for free article… 🔥

If you’ve been around in the hacking scene for any period of time, then you’ve most likely heard of GTFObins. GTFObins is a collection of privilege escalation vectors commonly used in Linux systems.

I’m going to go over a common one, and then I’ll show you one that you may not know about, or do not show up on the GTFObins site but can still be used against many Linux systems.

Let’s examine a common GTFObin / privesc vector using vim:

Zoom image will be displayed

GTFObin VIM

Zoom image will be displayed

GTFObin using vim

Here we see that can can potentially execute the following command (given that we can successfully use sudo vim as the current user) and potentially escalate our privileges. Let’s try it out.

user@debian:~$ sudo -l
Matching Defaults entries for user on this host:
env_reset, env_keep+=LD_PRELOAD…

文章来源: https://infosecwriteups.com/oscp-linux-privilege-escalation-18c75248be91?source=rss----7b722bfd1b8d---4
如有侵权请联系:admin#unsafe.sh