2014-12-15 23:13:22 +00:00
|
|
|
# -*- coding: binary -*-
|
|
|
|
|
|
|
|
module Rex
|
|
|
|
module Proto
|
|
|
|
module Kerberos
|
|
|
|
module Pac
|
2014-12-19 07:12:14 +00:00
|
|
|
VERSION = 0
|
|
|
|
NETLOGON_FLAG = 0x20000
|
2014-12-16 15:32:47 +00:00
|
|
|
SE_GROUP_MANDATORY = 1
|
|
|
|
SE_GROUP_ENABLED_BY_DEFAULT = 2
|
|
|
|
SE_GROUP_ENABLED = 4
|
|
|
|
SE_GROUP_ALL = SE_GROUP_MANDATORY | SE_GROUP_ENABLED_BY_DEFAULT | SE_GROUP_ENABLED
|
|
|
|
USER_NORMAL_ACCOUNT = 0x00000010
|
|
|
|
USER_DONT_EXPIRE_PASSWORD = 0x00000200
|
2014-12-16 17:31:27 +00:00
|
|
|
PAC_LOGON_INFO = 1
|
|
|
|
PAC_SERVER_CHECKSUM = 6
|
|
|
|
PAC_PRIVSVR_CHECKSUM = 7
|
|
|
|
PAC_CLIENT_INFO = 10
|
2014-12-17 05:21:13 +00:00
|
|
|
AD_WIN2K_PAC = 128
|
2014-12-19 07:12:14 +00:00
|
|
|
SEC_TO_UNIX_EPOCH = 11644473600
|
|
|
|
WINDOWS_TICK = 10000000
|
|
|
|
NEVER_EXPIRE = 0x7fffffffffffffff
|
2014-12-22 21:14:46 +00:00
|
|
|
DOMAIN_USERS = 513
|
|
|
|
DEFAULT_USER_SID = 1000
|
|
|
|
NT_AUTHORITY_SID = 'S-1-5'
|
2014-12-15 23:13:22 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
require 'rex/proto/kerberos/pac/element'
|
|
|
|
require 'rex/proto/kerberos/pac/priv_svr_checksum'
|
2014-12-15 23:16:43 +00:00
|
|
|
require 'rex/proto/kerberos/pac/server_checksum'
|
2014-12-15 23:32:51 +00:00
|
|
|
require 'rex/proto/kerberos/pac/client_info'
|
2014-12-16 15:32:47 +00:00
|
|
|
require 'rex/proto/kerberos/pac/logon_info'
|
2014-12-16 17:31:27 +00:00
|
|
|
require 'rex/proto/kerberos/pac/type'
|