From 2737c8b356d6bd04c81c70097be222a26432574d Mon Sep 17 00:00:00 2001 From: 0xjbb-n Date: Sun, 8 Sep 2024 13:35:50 +0100 Subject: [PATCH] Added custom machine and domain name custom domain and machine name --- Responder.conf | 7 +++++++ settings.py | 10 +++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Responder.conf b/Responder.conf index 180e94f..cf57bd2 100755 --- a/Responder.conf +++ b/Responder.conf @@ -75,6 +75,13 @@ CaptureMultipleCredentials = On ; domain\popo, domain\zozo. Recommended value: On, capture everything. CaptureMultipleHashFromSameHost = On +[Machine Info] + +;Prefix for the Machine name +Machine-Name-Prefix = WIN +; Custom Domain name, include .local or .com etc. +Domain-Name = + [HTTP Server] ; Set to On to always serve the custom EXE diff --git a/settings.py b/settings.py index bdca9c2..e6fbded 100644 --- a/settings.py +++ b/settings.py @@ -289,11 +289,19 @@ class Settings: self.MDNSTLD = ['.LOCAL'] self.DontRespondToName = [x+y for x in self.DontRespondToName_ for y in ['']+self.MDNSTLD] #Generate Random stuff for one Responder session - self.MachineName = 'WIN-'+''.join([random.choice('ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789') for i in range(11)]) + machine_name_prefix = config.get("Machine Info", "Machine-Name-Prefix") + + self.MachineName = machine_name_prefix+'-'+''.join([random.choice('ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789') for i in range(11)]) + self.Username = ''.join([random.choice('ABCDEFGHIJKLMNOPQRSTUVWXYZ') for i in range(6)]) self.Domain = ''.join([random.choice('ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789') for i in range(4)]) self.DHCPHostname = ''.join([random.choice('ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789') for i in range(9)]) self.DomainName = self.Domain + '.LOCAL' + + custom_domain_name = config.get("Machine Info", "Domain-Name") + if custom_domain_name != "": + self.DomainName = custom_domain_name + self.MachineNego = ''.join([random.choice('ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789') for i in range(9)]) +'$@'+self.DomainName self.RPCPort = random.randrange(45000, 49999) # Auto Ignore List