# Enumerate Guest Logon

Using a random username and password you can check if the target accepts guest logon. If so, it means that either the domain guest account or the local guest account of the server you're targetting is enabled.

{% hint style="info" %}
Since 2025 you can now automatically check if guest login is enabled without supplying any credentials. This method is not yet by default, make sure NetExec is up to date then edit the file \~/.nxc/nxc.conf and change the line check\_guest\_account to true. Next just fire nxc without any credentials : nxc smb 10.10.10.178 if the guest is enabled you will see: Guest: True
{% endhint %}

<figure><img src="/files/C00RaaOc3YRgu9L43wZu" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
For checking manually, make sure the password is empty
{% endhint %}

```bash
nxc smb 10.10.10.178 -u 'a' -p '' 
nxc smb 10.10.10.178 -u 'a' -p '' --shares
```

Note that if the domain guest account is available you will be able to use to launch attacks such as Coerces.

{% embed url="<https://blog.whiteflag.io/blog/guest-vs-null-session-on-windows/>" %}

### Example

Nest machine is a good example of **guest logon** with NetExec

{% embed url="<https://www.hackthebox.com/machines/nest>" %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.netexec.wiki/smb-protocol/enumeration/enumerate-guest-logon.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
