Compare commits

...

2 Commits

Author SHA1 Message Date
0xjbb-n
311373327c Merge 2737c8b356 into d740fb526f 2025-01-30 02:29:10 -07:00
0xjbb-n
2737c8b356 Added custom machine and domain name
custom domain and machine name
2024-09-08 13:35:50 +01:00
2 changed files with 16 additions and 1 deletions

View File

@@ -79,6 +79,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

View File

@@ -291,11 +291,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