---
description: Monitor Cache for TGTs | https://github.com/Leo4j/TGT_Monitor
---

# Monitor

The `Monitor` command in Amnesiac serves a crucial role in extracting Kerberos tickets from the Local Security Authority (LSA) cache on a target system. Similar to the [`Kerb`](kerb) command, the functionality of `Monitor` depends on the privilege level of the user running it.&#x20;

Simply type `Monitor` and press Enter. This command will trigger the TGT Monitoring script, which will begin extracting and securely storing the TGTs from the LSA cache on the target system.

After entering the `Monitor` command, the script will display the process ID (PID) under which it is running. You can use this PID for manual termination if needed.

<figure><img src="https://1622982705-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxZYmkSsz78lM8RvvHGKL%2Fuploads%2FGFU6vD1gFMClr7xwKaYx%2Fimage.png?alt=media&#x26;token=e8757c3f-9986-4eea-8686-b97c674bd5ef" alt=""><figcaption></figcaption></figure>

**Periodic Extraction of TGTs:**

`Monitor` periodically extracts all Ticket Granting Tickets (TGTs) from the LSA cache on the target system. This function is especially useful on servers with unconstrained delegation enabled.

**Encrypted Storage in the Registry:**

The retrieved TGTs are encrypted and stored in the system's registry. The encryption password used for securing the TGTs is currently hardcoded into Amnesiac. The password is used for both encryption and decryption of TGTs stored in the registry.

**Process Termination:**

In case you forget to manually kill the Monitor process, the script is designed to terminate itself after 24 hours from its launch. Additionally, the script will automatically delete TGTs saved in the registry after 48 hours from its launch.&#x20;

This provides a window of opportunity for you to retrieve the TGTs if needed, such as in case of a lost session or forgotten script execution on the target system.

**Access to Encrypted TGTs:**

To access and decrypt the content of the registry, you can use the `MonitorRead` command. This command retrieves the encrypted TGTs saved within the registry by the `Monitor` command, decrypts them, and displays their contents on the screen.

Additionally, decrypted TGTs are saved locally within the "C:\Users\Public\Documents\Amnesiac\Monitor\_TGTs" folder for your convenience.

**Clearing the Registry:**

The `MonitorClear` command is used to clear the registry from saved TGTs. However, it is only effective if the Monitor process has been previously terminated, either manually or automatically.
