Skip to content
KitploitKITPLOIT
ИнструментыБлог
Отправить
ИнструментыБлог
Отправить

Инструменты для хакинга, пентеста и кибербезопасности — ваш арсенал защиты!

Kitploit — это каталог инструментов для хакинга, кибербезопасности и пентестинга. Находите последние обновления проектов для поиска уязвимостей, анализа систем, автоматизации тестирования и усиления вашей безопасности.

··Ленты·Контакты·Конфиденциальность·© 2026 Kitploit

Каталог инструментов

Категории

Все категории
Loading categories
Invoke-RunAsWithCert — Скрипт PowerShell для выполнения аутентификации PKINIT с помощью Windows API с машины, не входящей в домен. | Kitploit
Инструменты/GitHubGitHub/synacktiv/invoke-runaswithcert
Латеральное перемещениеПост-эксплуатацияТестирование на ПроникновениеАутентификацияRed Teaming
GitHubsynacktiv/invoke-runaswithcert

Invoke-RunAsWithCert

Скрипт PowerShell для выполнения аутентификации PKINIT с помощью Windows API с машины, не входящей в домен.

Репозиторий
1781522 лет назадПроверено Kitploit

Популярное

Смотреть все →

Откройте для себя самые используемые инструменты нашего сообщества.

Изучить все инструменты

Просмотрите нашу коллекцию инструментов

Смотреть все инструменты →
Поделиться

Invoke-RunAsWithCert

A PowerShell script to perform PKINIT authentication with the Windows API from a non domain-joined machine.

Description

This cmdlet creates a new logon session with the specified certificate via PKINIT.

It is meant to be run on a non domain-joined VM. The cmdlet has two modes: one that sets registry keys and one that patches LSASS memory to bypass client-side checks related to the domain controller's certificate. These checks fail when running on a machine that is not joined to the domain.

In registry mode (the default), administrator privileges are needed to set the relevant registry keys (and restore them at the end). If the keys are already set, administrator privileges are not required. Moreover, the CA certificate must be added to the list of trusted certification authorities. If this method fails (e.g. because of a check that is not bypassed with the registry keys), the patch method can be tried instead. It is less elegant but will bypass any client-side check related to the KDC certificate.

In patch mode (-PatchLsass), the KerbCheckKdcCertificate function in LSASS will be patched. As KerbCheckKdcCertificate is not exported by kerberos.dll, symbols need to be retrieved. For the symbols to be automatically retrieved by this cmdlet, the environment variable _NT_SYMBOL_PATH needs to be defined (e.g. ). If the symbols are not already on disk, an Internet connection is needed to download them. The Windows SDK is also needed to download the symbols. By default, the script will look in to find the DLLs it needs ( and ).

SRV*c:\symbols*https://msdl.microsoft.com/download/symbols
C:\Program Files (x86)\Windows Kits\10\Debuggers\x64
dbghelp.dll
symsrv.dll

For a more detailed explanation, see the associated blogpost.

Usage

root@kitploit:~
PS > Invoke-RunAsWithCert user.pfx -Domain CORP.LOCAL
Скачать инструмент