Add more PAC constants
parent
b0a178e0a3
commit
75a2846377
|
@ -42,11 +42,11 @@ module Msf
|
||||||
# @see Rex::Proto::Kerberos::Pac::Type
|
# @see Rex::Proto::Kerberos::Pac::Type
|
||||||
def build_pac(opts = {})
|
def build_pac(opts = {})
|
||||||
user_name = opts[:client_name] || ''
|
user_name = opts[:client_name] || ''
|
||||||
user_id = opts[:user_id] || 1000
|
user_id = opts[:user_id] || Rex::Proto::Kerberos::Pac::DEFAULT_USER_SID
|
||||||
primary_group_id = opts[:group_id] || 513
|
primary_group_id = opts[:group_id] || Rex::Proto::Kerberos::Pac::DOMAIN_USERS
|
||||||
group_ids = opts[:group_ids] || [513]
|
group_ids = opts[:group_ids] || [Rex::Proto::Kerberos::Pac::DOMAIN_USERS]
|
||||||
domain_name = opts[:realm] || ''
|
domain_name = opts[:realm] || ''
|
||||||
domain_id = opts[:domain_id] || 'S-1-1'
|
domain_id = opts[:domain_id] || Rex::Proto::Kerberos::Pac::NT_AUTHORITY_SID
|
||||||
logon_time = opts[:logon_time] || Time.now
|
logon_time = opts[:logon_time] || Time.now
|
||||||
checksum_type = opts[:checksum_type] || Rex::Proto::Kerberos::Crypto::RSA_MD5
|
checksum_type = opts[:checksum_type] || Rex::Proto::Kerberos::Crypto::RSA_MD5
|
||||||
|
|
||||||
|
|
|
@ -6,25 +6,23 @@ module Rex
|
||||||
module Pac
|
module Pac
|
||||||
VERSION = 0
|
VERSION = 0
|
||||||
NETLOGON_FLAG = 0x20000
|
NETLOGON_FLAG = 0x20000
|
||||||
|
|
||||||
SE_GROUP_MANDATORY = 1
|
SE_GROUP_MANDATORY = 1
|
||||||
SE_GROUP_ENABLED_BY_DEFAULT = 2
|
SE_GROUP_ENABLED_BY_DEFAULT = 2
|
||||||
SE_GROUP_ENABLED = 4
|
SE_GROUP_ENABLED = 4
|
||||||
SE_GROUP_ALL = SE_GROUP_MANDATORY | SE_GROUP_ENABLED_BY_DEFAULT | SE_GROUP_ENABLED
|
SE_GROUP_ALL = SE_GROUP_MANDATORY | SE_GROUP_ENABLED_BY_DEFAULT | SE_GROUP_ENABLED
|
||||||
|
|
||||||
USER_NORMAL_ACCOUNT = 0x00000010
|
USER_NORMAL_ACCOUNT = 0x00000010
|
||||||
USER_DONT_EXPIRE_PASSWORD = 0x00000200
|
USER_DONT_EXPIRE_PASSWORD = 0x00000200
|
||||||
|
|
||||||
PAC_LOGON_INFO = 1
|
PAC_LOGON_INFO = 1
|
||||||
PAC_SERVER_CHECKSUM = 6
|
PAC_SERVER_CHECKSUM = 6
|
||||||
PAC_PRIVSVR_CHECKSUM = 7
|
PAC_PRIVSVR_CHECKSUM = 7
|
||||||
PAC_CLIENT_INFO = 10
|
PAC_CLIENT_INFO = 10
|
||||||
|
|
||||||
AD_WIN2K_PAC = 128
|
AD_WIN2K_PAC = 128
|
||||||
|
|
||||||
SEC_TO_UNIX_EPOCH = 11644473600
|
SEC_TO_UNIX_EPOCH = 11644473600
|
||||||
WINDOWS_TICK = 10000000
|
WINDOWS_TICK = 10000000
|
||||||
NEVER_EXPIRE = 0x7fffffffffffffff
|
NEVER_EXPIRE = 0x7fffffffffffffff
|
||||||
|
DOMAIN_USERS = 513
|
||||||
|
DEFAULT_USER_SID = 1000
|
||||||
|
NT_AUTHORITY_SID = 'S-1-5'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue