Files
shadow-rs/doc/thread.md
joaoviictorti f132d0c0c6 new: add docs
2025-10-10 11:10:04 -03:00

1.5 KiB

Hide / Unhide thread

Description: This command allows you to hide or reveal specific threads on the system.

shadow.exe thread [hide | unhide] --tid <tid>

Options:

  • hide: Hide the specified thread.
  • unhide: Unhide the specified thread.
  • tid: The TID of the thread you want to hide or reveal.

Example of use:

shadow.exe thread hide --tid 1234

This command will hide the thread with TID 1234.

Thread Protection (Anti-Kill)

Description: This command allows you to add or remove thread protection.

shadow.exe thread protection --tid <tid> [--add | --remove]

Options:

  • protection: Protect the specified thread.
  • -a / --add: Add the thread.
  • -r / --remove: Remove the thread.
  • tid: The TID of the thread you want to protect.

Example of use:

shadow.exe thread protection --tid 1234 --add

This command will protect the thread with TID 1234.

Lists protected and hidden threads currently on the system

Description: This command allows you to list the thread that are currently protected or hidden.

shadow.exe thread enumerate -l -t <value>

Options:

  • enumerate: Terminate the specified thread.

  • -l / --list: List the protected or hidden thread.

  • -t / --type: Specify which type you want to list.

    • Possible values:
      • hide: List of hidden targets
      • protection: List of protected targets

Example of use:

shadow.exe thread enumerate -l -t protection

This command will close and list the currently protected threads.