> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/ports-and-services.md).

# Ports and Services

Port and service enumeration notes for penetration testing, including FTP, SSH, SMB, Kerberos, LDAP, SNMP, WinRM, RDP, databases, C2 panels, and exposed management services.

Practical service enumeration and exploitation notes for penetration testing and CTF workflows. Use this section to move from open ports to verified attack paths: anonymous access, weak credentials, exposed files, default configurations, known CVEs, remote command execution, and lateral movement.

## Service Enumeration Workflow

1. Identify open ports, protocol versions, and exposed products.
2. Check anonymous access, default credentials, weak authentication, and management panels.
3. Enumerate service-specific data: shares, users, banners, tickets, databases, OIDs, mailboxes, or directory objects.
4. Validate known CVEs, dangerous features, credential reuse, and misconfigurations.
5. Convert findings into a clean attack path: file read, credential discovery, remote command execution, reverse shell, privilege escalation, or lateral movement.

## High-Value Checks

* **Identity services:** Kerberos, LDAP, SMB, WinRM, and RDP often expose users, tickets, hashes, and administrative paths.
* **File and data services:** FTP, SMB, NFS, MongoDB, MSSQL, Elasticsearch, and InfluxDB commonly reveal credentials or sensitive files.
* **Remote execution surfaces:** distcc, gdbserver, Consul, C2 panels, MSSQL `xp_cmdshell`, and vulnerable SMB services can lead directly to code execution.
* **Remote access services:** SSH, RDP, VNC, and WinRM are useful for credential validation, tunneling, and lateral movement.

## Service Notes

## Recommended Tools

* [Nmap](/reconnaissance/nmap.md) for port scanning, service detection, and NSE scripts.
* CrackMapExec, NetExec, Impacket, and rpcclient for SMB, LDAP, Kerberos, WinRM, and MSSQL checks.
* Hydra, Kerbrute, and service-specific clients for controlled credential validation.
* Gobuster, ffuf, Nikto, and Burp Suite for HTTP and HTTPS service discovery.
* snmpwalk, ldapsearch, smbclient, enum4linux-ng, and showmount for protocol-specific enumeration.

<table data-view="cards" data-full-width="false" data-search="false"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h4><i class="fa-folder-open" style="color:$primary;">:folder-open:</i></h4></td><td><strong>FTP - 21</strong></td><td>FTP enumeration notes for anonymous access, brute force checks, file upload abuse, web shells, and reverse shells.</td><td><a href="/ports-and-services/ftp-21.md">FTP - 21</a></td></tr><tr><td><h4><i class="fa-terminal" style="color:$primary;">:terminal:</i></h4></td><td><strong>SSH - 22</strong></td><td>SSH enumeration notes for brute force testing, user enumeration, key-based access, and credential validation.</td><td><a href="/ports-and-services/ssh-22.md">SSH - 22</a></td></tr><tr><td><h4><i class="fa-globe" style="color:$primary;">:globe:</i></h4></td><td><strong>HTTP &#x26; HTTPS - 80/443</strong></td><td>HTTP and HTTPS service notes for TLS inspection, certificate review, Heartbleed checks, and web-facing attack surface validation.</td><td><a href="/ports-and-services/http-and-https-80-443.md">HTTP &amp; HTTPS - 80/443</a></td></tr><tr><td><h4><i class="fa-ticket" style="color:$primary;">:ticket:</i></h4></td><td><strong>Kerberos - 88</strong></td><td>Kerberos enumeration notes for AS-REP roasting, Kerberoasting, user discovery, and Active Directory authentication attacks.</td><td><a href="/ports-and-services/kerberos-88.md">Kerberos - 88</a></td></tr><tr><td><h4><i class="fa-circle-nodes" style="color:$primary;">:circle-nodes:</i></h4></td><td><strong>SNMP - 161</strong></td><td>SNMP enumeration notes for community strings, OID walking, information disclosure, credentials, and scheduled task leaks.</td><td><a href="/ports-and-services/snmp-161.md">SNMP - 161</a></td></tr><tr><td><h4><i class="fa-folder-tree" style="color:$primary;">:folder-tree:</i></h4></td><td><strong>LDAP - 389/636/3268/3269</strong></td><td>LDAP enumeration notes for naming contexts, Active Directory objects, users, groups, authenticated binds, and sensitive attributes.</td><td><a href="/ports-and-services/ldap-389-636-3268-3269.md">LDAP - 389/636/3268/3269</a></td></tr><tr><td><h4><i class="fa-network-wired" style="color:$primary;">:network-wired:</i></h4></td><td><strong>SMB - 445</strong></td><td>SMB enumeration and exploitation notes for shares, null sessions, RID brute force, PsExec, NetExec, CrackMapExec, SMBMap, and EternalBlue.</td><td><a href="/ports-and-services/smb-445.md">SMB - 445</a></td></tr><tr><td><h4><i class="fa-lock" style="color:$primary;">:lock:</i></h4></td><td><strong>IKE/IPsec - 500</strong></td><td>IKE/IPsec aggressive mode enumeration with ike-scan, PSK hash capture, hashcat cracking, and SSH access.</td><td><a href="/ports-and-services/ike-ipsec-500.md">IKE/IPsec - 500</a></td></tr><tr><td><h4><i class="fa-bug" style="color:$primary;">:bug:</i></h4></td><td><strong>gdbserver - 1337</strong></td><td>gdbserver exploitation with Searchsploit, msfvenom payload generation, and reverse shell execution.</td><td><a href="/ports-and-services/gdbserver-1337.md">gdbserver - 1337</a></td></tr><tr><td><h4><i class="fa-database" style="color:$primary;">:database:</i></h4></td><td><strong>MSSQL - 1433</strong></td><td>MSSQL exploitation notes for credential testing, mssqlclient access, xp_cmdshell, PowerShell payload delivery, and reverse shells.</td><td><a href="/ports-and-services/mssql-1433.md">MSSQL - 1433</a></td></tr><tr><td><h4><i class="fa-share-nodes" style="color:$primary;">:share-nodes:</i></h4></td><td><strong>NFS - 2049</strong></td><td>NFS enumeration notes for exported shares, mount permissions, readable backups, configuration files, and credential discovery.</td><td><a href="/ports-and-services/nfs-2049.md">NFS - 2049</a></td></tr><tr><td><h4><i class="fa-gears" style="color:$primary;">:gears:</i></h4></td><td><strong>distcc - 3632</strong></td><td>distcc CVE-2004-2687 validation and remote command execution with Nmap, Python exploit code, and reverse shells.</td><td><a href="/ports-and-services/distcc-3632.md">distcc - 3632</a></td></tr><tr><td><h4><i class="fa-desktop" style="color:$primary;">:desktop:</i></h4></td><td><strong>RDP - 3389</strong></td><td>RDP notes for brute force checks, credential validation, BlueKeep detection, and remote desktop access during penetration tests.</td><td><a href="/ports-and-services/rdp-3389.md">RDP - 3389</a></td></tr><tr><td><h4><i class="fa-envelope" style="color:$primary;">:envelope:</i></h4></td><td><strong>James Server - 4555/119/110</strong></td><td>Apache James enumeration across NNTP, remote administration, POP3 mailbox access, password reset abuse, and credential discovery.</td><td><a href="/ports-and-services/james-server-4555-119-110.md">James Server - 4555/119/110</a></td></tr><tr><td><h4><i class="fa-desktop" style="color:$primary;">:desktop:</i></h4></td><td><strong>VNC - 5800,5801,5900,5901</strong></td><td>VNC port forwarding through SSH, VNC service scanning, vncviewer access, and root session validation.</td><td><a href="/ports-and-services/vnc-5800-5801-5900-5901.md">VNC - 5800,5801,5900,5901</a></td></tr><tr><td><h4><i class="fa-windows" style="color:$primary;">:windows:</i></h4></td><td><strong>WinRM - 5986</strong></td><td>WinRM notes for Evil-WinRM access, brute force testing, Pass-the-Hash, certificate authentication, and remote PowerShell administration.</td><td><a href="/ports-and-services/winrm-5986.md">WinRM - 5986</a></td></tr><tr><td><h4><i class="fa-helmet-safety" style="color:$primary;">:helmet-safety:</i></h4></td><td><strong>HardHatC2 - 7096</strong></td><td>HardHatC2 authentication bypass, forged JWT generation, TeamLead user creation, and implant reverse shell execution.</td><td><a href="/ports-and-services/hardhatc2-7096.md">HardHatC2 - 7096</a></td></tr><tr><td><h4><i class="fa-globe" style="color:$primary;">:globe:</i></h4></td><td><strong>InfluxDB - 8086</strong></td><td>InfluxDB CVE-2019-20933 authentication bypass, database enumeration, and credential discovery.</td><td><a href="/ports-and-services/influxdb-8086.md">InfluxDB - 8086</a></td></tr><tr><td><h4><i class="fa-globe" style="color:$primary;">:globe:</i></h4></td><td><strong>Devzat - 8443</strong></td><td>Devzat file parameter abuse, backup discovery, path traversal, shadow file read, and root SSH key access.</td><td><a href="/ports-and-services/devzat-8443.md">Devzat - 8443</a></td></tr><tr><td><h4><i class="fa-server" style="color:$primary;">:server:</i></h4></td><td><strong>Consul - 8500</strong></td><td>Consul REST API exposure and malicious service check registration for reverse shell execution.</td><td><a href="/ports-and-services/consul-8500.md">Consul - 8500</a></td></tr><tr><td><h4><i class="fa-chart-simple" style="color:$primary;">:chart-simple:</i></h4></td><td><strong>Elasticsearch - 9200</strong></td><td>Elasticsearch index enumeration, data exposure review, keyword filtering, and base64 credential recovery.</td><td><a href="/ports-and-services/elasticsearch-9200.md">Elasticsearch - 9200</a></td></tr><tr><td><h4><i class="fa-database" style="color:$primary;">:database:</i></h4></td><td><strong>MongoDB - 27017</strong></td><td>MongoDB unauthenticated access, database enumeration, command injection through app.js, and reverse shell execution.</td><td><a href="/ports-and-services/mongodb-27017.md">MongoDB - 27017</a></td></tr><tr><td><h4><i class="fa-helmet-safety" style="color:$primary;">:helmet-safety:</i></h4></td><td><strong>Havoc-C2 - 40056</strong></td><td>Havoc-C2 SSRF to RCE workflow with hosted payload delivery and reverse shell access.</td><td><a href="/ports-and-services/havoc-c2-40056.md">Havoc-C2 - 40056</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/ports-and-services.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
