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

Class GeneralizedTime

scapy/volatile.py:1344–1352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1342
1343
1344class GeneralizedTime(_AutoTime[str]):
1345 def __init__(self, diff=0):
1346 # type: (int) -> None
1347 super(GeneralizedTime, self).__init__(diff=diff)
1348
1349 def _fix(self):
1350 # type: () -> str
1351 return time.strftime("%Y%m%d%H%M%SZ",
1352 time.gmtime(time.time() + self.diff))
1353
1354
1355class DelayedEval(VolatileValue[Any]):

Callers 15

randvalMethod · 0.90
randvalMethod · 0.90
_fixMethod · 0.90
OCSP_ResponseDataClass · 0.90
PA_ENC_TS_ENCClass · 0.90
KrbFastFinishedClass · 0.90
KRB_PKAuthenticatorClass · 0.90
EncTicketPartClass · 0.90
KRB_KDC_REQ_BODYClass · 0.90
LastReqItemClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…