Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/lib/rex/proto/kerberos/pac.rb
Views: 11704
# -*- coding: binary -*-12module Rex3module Proto4module Kerberos5module Pac6VERSION = 07NETLOGON_FLAG = 0x2000089# Kerberos:10# https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-pac/311aab27-ebdf-47f7-b939-13dc99b1534111# Reference with details on flags:12# https://learn.microsoft.com/en-gb/windows/win32/api/winnt/ns-winnt-token_groups?redirectedfrom=MSDN#members13SE_GROUP_MANDATORY = 0x0000000114SE_GROUP_ENABLED_BY_DEFAULT = 0x0000000215SE_GROUP_ENABLED = 0x0000000416SE_GROUP_OWNER = 0x0000000817SE_GROUP_RESOURCE = 0x200000001819# XXX: Does not include some of the newer SE_GROUP_* flags20SE_GROUP_ALL = SE_GROUP_MANDATORY | SE_GROUP_ENABLED_BY_DEFAULT | SE_GROUP_ENABLED2122PAC_WAS_GIVEN_IMPLICITLY = 0x000000012324USER_NORMAL_ACCOUNT = 0x0000001025USER_DONT_EXPIRE_PASSWORD = 0x0000020026PAC_LOGON_INFO = 127PAC_CREDENTIALS_INFO = 228PAC_SERVER_CHECKSUM = 629PAC_PRIVSVR_CHECKSUM = 730PAC_CLIENT_INFO = 1031AD_WIN2K_PAC = 12832SEC_TO_UNIX_EPOCH = 1164447360033WINDOWS_TICK = 1000000034NEVER_EXPIRE = 0x7fffffffffffffff35DOMAIN_ADMINS = 51236DOMAIN_USERS = 51337SCHEMA_ADMINISTRATORS = 51838ENTERPRISE_ADMINS = 51939GROUP_POLICY_CREATOR_OWNERS = 52040DEFAULT_ADMIN_RID = 50041DEFAULT_USER_RID = 100042NT_AUTHORITY_SID = 'S-1-5'43end44end45end46end474849