# Services Enumeration Commands

### **plications & Services**

#### **What services are running?&#x20;*****Which service has which user privilege?***

<table><thead><tr><th width="251">Commands</th></tr></thead><tbody><tr><td>ps aux</td></tr><tr><td>ps -ef</td></tr><tr><td>top</td></tr><tr><td>cat /etc/services</td></tr></tbody></table>

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

<table><thead><tr><th width="251">Commands</th></tr></thead><tbody><tr><td>ps aux | grep root</td></tr><tr><td>ps -ef | grep root</td></tr><tr><td></td></tr></tbody></table>

#### **What applications are installed?&#x20;*****What version are they? Are they currently running?***

<table><thead><tr><th width="251">Commands</th></tr></thead><tbody><tr><td>ls -alh /usr/bin/</td></tr><tr><td>ls -alh /sbin/</td></tr><tr><td>dpkg -l</td></tr><tr><td>ls -alh /var/cache/apt/archivesO </td></tr><tr><td>ls -alh /var/cache/yum/</td></tr></tbody></table>

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

<table><thead><tr><th width="526">Commands</th></tr></thead><tbody><tr><td>cat /etc/syslog.conf</td></tr><tr><td>cat /etc/chttp.conf   </td></tr><tr><td>cat /etc/lighttpd.conf </td></tr><tr><td>cat /etc/cups/cupsd.conf</td></tr><tr><td>cat /etc/inetd.conf</td></tr><tr><td> cat /etc/apache2/apache2.conf</td></tr><tr><td>cat /etc/my.conf</td></tr><tr><td> cat /etc/httpd/conf/httpd.conf </td></tr><tr><td>cat /opt/lampp/etc/httpd.conf ls -aRl /etc/ | awk '$1 ~ /^.<em>r.</em>/</td></tr></tbody></table>
