Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit 2256caa

Browse files
author
byt3bl33d3r
committed
Modded the smbserver
1 parent 995011f commit 2256caa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crackmapexec.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ def __init__(self, listenAddress='0.0.0.0', listenPort=445):
282282
self.smbConfig.set('global','log_file',str(''))
283283
self.smbConfig.set('global','rpc_apis','yes')
284284
self.smbConfig.set('global','credentials_file',str(''))
285-
self.smbConfig.set('global', 'challenge', str(''))
286-
self.smbConfig.set("global", 'SMB2Support', 'True')
285+
self.smbConfig.set('global', 'challenge', str('A'*8))
286+
self.smbConfig.set("global", 'SMB2Support', 'False')
287287

288288
# IPC always needed
289289
self.smbConfig.add_section('IPC$')
@@ -318,6 +318,8 @@ def __init__(self, listenAddress='0.0.0.0', listenPort=445):
318318
self.wkstServer.daemon = True
319319
self.server.registerNamedPipe('srvsvc',('127.0.0.1',self.srvsServer.getListenPort()))
320320
self.server.registerNamedPipe('wkssvc',('127.0.0.1',self.wkstServer.getListenPort()))
321+
self.srvsServer.setServerConfig(self.smbConfig)
322+
self.srvsServer.processConfigFile()
321323

322324
def serve_forever(self):
323325
self.srvsServer.start()

0 commit comments

Comments
 (0)