Skip to content

Commit 60291c7

Browse files
committed
Add Kerberos doc
1 parent 8d9d1f3 commit 60291c7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/scapy/layers/kerberos.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,18 @@ This section tries to give many usage examples, but isn't exhaustive. For more d
6868
>>> # Using the AES-256-SHA1-96 Kerberos Key
6969
>>> t.request_tgt("Administrator@domain.local", key=Key(EncryptionType.AES256_CTS_HMAC_SHA1_96, bytes.fromhex("63a2577d8bf6abeba0847cded36b9aed202c23750eb9c56b6155be1cc946bb1d")))
7070
71+
- **Request a TGT using PKINIT**:
72+
73+
.. code:: pycon
74+
75+
>>> from scapy.libs.rfc3961 import EncryptionType
76+
>>> load_module("ticketer")
77+
>>> t = Ticketer()
78+
>>> # If P12:
79+
>>> t.request_tgt("Administrator@DOMAIN.LOCAL", p12="admin.pfx", ca="ca.pem")
80+
>>> # One could also have used a different cert and key file:
81+
>>> t.request_tgt("Administrator@DOMAIN.LOCAL", x509="admin.cert", x509key="admin.key", ca="ca.pem")
82+
7183
- **Renew a TGT or ST**:
7284

7385
.. code::

0 commit comments

Comments
 (0)