MCPcopy Create free account
hub / github.com/secdev/scapy / renew

Method renew

scapy/modules/ticketer.py:2570–2591  ·  view source on GitHub ↗

Renew a Kerberos TGT or a TS from the local CCache using a TGS-REQ :param i: the ticket/sessionkey to renew.

(self, i, ip=None, additional_tickets=[], **kwargs)

Source from the content-addressed store, hash-verified

2568 )
2569
2570 def renew(self, i, ip=None, additional_tickets=[], **kwargs):
2571 """
2572 Renew a Kerberos TGT or a TS from the local CCache using a TGS-REQ
2573
2574 :param i: the ticket/sessionkey to renew.
2575 """
2576 ticket, sessionkey, upn, spn = self.export_krb(i)
2577
2578 res = krb_tgs_req(
2579 upn,
2580 spn,
2581 sessionkey=sessionkey,
2582 ticket=ticket,
2583 ip=ip,
2584 renew=True,
2585 additional_tickets=additional_tickets,
2586 **kwargs,
2587 )
2588 if not res:
2589 return
2590
2591 self.import_krb(res, _inplace=i)
2592
2593 def iter_tickets(self):
2594 """

Callers

nothing calls this directly

Calls 3

export_krbMethod · 0.95
import_krbMethod · 0.95
krb_tgs_reqFunction · 0.90

Tested by

no test coverage detected