(self, pac, element)
| 1645 | return sid.summary() |
| 1646 | |
| 1647 | def _getLogonInformation(self, pac, element): |
| 1648 | logonInfo = pac.getPayload(0x00000001) |
| 1649 | if not logonInfo: |
| 1650 | pac.Buffers.append(PAC_INFO_BUFFER(ulType=0x00000001)) |
| 1651 | logonInfo = KERB_VALIDATION_INFO() |
| 1652 | else: |
| 1653 | logonInfo = logonInfo.value |
| 1654 | self._make_fields( |
| 1655 | element, |
| 1656 | [ |
| 1657 | ("LogonTime", self._filetime_totime(logonInfo.LogonTime)), |
| 1658 | ("LogoffTime", self._filetime_totime(logonInfo.LogoffTime)), |
| 1659 | ("KickOffTime", self._filetime_totime(logonInfo.KickOffTime)), |
| 1660 | ( |
| 1661 | "PasswordLastSet", |
| 1662 | self._filetime_totime(logonInfo.PasswordLastSet), |
| 1663 | ), |
| 1664 | ( |
| 1665 | "PasswordCanChange", |
| 1666 | self._filetime_totime(logonInfo.PasswordCanChange), |
| 1667 | ), |
| 1668 | ( |
| 1669 | "PasswordMustChange", |
| 1670 | self._filetime_totime(logonInfo.PasswordMustChange), |
| 1671 | ), |
| 1672 | ( |
| 1673 | "EffectiveName", |
| 1674 | logonInfo.EffectiveName.Buffer.value.value[0].value.decode(), |
| 1675 | ), |
| 1676 | ( |
| 1677 | "FullName", |
| 1678 | logonInfo.FullName.Buffer.value.value[0].value.decode(), |
| 1679 | ), |
| 1680 | ( |
| 1681 | "LogonScript", |
| 1682 | logonInfo.LogonScript.Buffer.value.value[0].value.decode(), |
| 1683 | ), |
| 1684 | ( |
| 1685 | "ProfilePath", |
| 1686 | logonInfo.ProfilePath.Buffer.value.value[0].value.decode(), |
| 1687 | ), |
| 1688 | ( |
| 1689 | "HomeDirectory", |
| 1690 | logonInfo.HomeDirectory.Buffer.value.value[0].value.decode(), |
| 1691 | ), |
| 1692 | ( |
| 1693 | "HomeDirectoryDrive", |
| 1694 | logonInfo.HomeDirectoryDrive.Buffer.value.value[0].value.decode(), |
| 1695 | ), |
| 1696 | ("LogonCount", str(logonInfo.LogonCount)), |
| 1697 | ("BadPasswordCount", str(logonInfo.BadPasswordCount)), |
| 1698 | ("UserId", str(logonInfo.UserId)), |
| 1699 | ("PrimaryGroupId", str(logonInfo.PrimaryGroupId)), |
| 1700 | ], |
| 1701 | ) |
| 1702 | self._make_table( |
| 1703 | element, |
| 1704 | "GroupIds", |
no test coverage detected