From 8269886e94a0610f0d9e18252816af3762744771 Mon Sep 17 00:00:00 2001 From: sud0Ru Date: Fri, 31 May 2024 14:06:49 -0400 Subject: [PATCH] editing netlogon.rb --- lib/ruby_smb/dcerpc/netlogon.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ruby_smb/dcerpc/netlogon.rb b/lib/ruby_smb/dcerpc/netlogon.rb index 8045866bd..d26d28bba 100644 --- a/lib/ruby_smb/dcerpc/netlogon.rb +++ b/lib/ruby_smb/dcerpc/netlogon.rb @@ -11,6 +11,7 @@ module Netlogon NETR_SERVER_REQ_CHALLENGE = 4 NETR_SERVER_AUTHENTICATE3 = 26 NETR_SERVER_PASSWORD_SET2 = 30 + DSR_GET_DC_NAME_EX2 = 34 # see: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nrpc/3b224201-b531-43e2-8c79-b61f6dea8640 class LogonsrvHandle < Ndr::NdrWideStringzPtr; end @@ -65,6 +66,7 @@ def assign(val) require 'ruby_smb/dcerpc/netlogon/netr_server_password_set2_response' require 'ruby_smb/dcerpc/netlogon/netr_server_req_challenge_request' require 'ruby_smb/dcerpc/netlogon/netr_server_req_challenge_response' + require 'ruby_smb/dcerpc/netlogon/dsr_get_dc_name_ex2_request' # Calculate the netlogon session key from the provided shared secret and # challenges. The shared secret is an NTLM hash.