MCPcopy Index your code
hub / github.com/secdev/scapy / kpasswdset

Method kpasswdset

scapy/modules/ticketer.py:2554–2568  ·  view source on GitHub ↗

Use kpasswd in 'Set Password' mode to set the password of an account. :param i: the TGT to use.

(self, i, targetupn=None, newpassword=None)

Source from the content-addressed store, hash-verified

2552 self.import_krb(res)
2553
2554 def kpasswdset(self, i, targetupn=None, newpassword=None):
2555 """
2556 Use kpasswd in 'Set Password' mode to set the password of an account.
2557
2558 :param i: the TGT to use.
2559 """
2560 ticket, sessionkey, upn, _ = self.export_krb(i)
2561 kpasswd(
2562 upn=upn,
2563 targetupn=targetupn,
2564 setpassword=True,
2565 ticket=ticket,
2566 key=sessionkey,
2567 newpassword=newpassword,
2568 )
2569
2570 def renew(self, i, ip=None, additional_tickets=[], **kwargs):
2571 """

Callers

nothing calls this directly

Calls 2

export_krbMethod · 0.95
kpasswdFunction · 0.90

Tested by

no test coverage detected