Modded the smbserver

main
byt3bl33d3r 2015-11-02 10:52:05 -07:00
parent 995011f21d
commit 2256caa865
1 changed files with 4 additions and 2 deletions

View File

@ -282,8 +282,8 @@ class SMBserver:
self.smbConfig.set('global','log_file',str('')) self.smbConfig.set('global','log_file',str(''))
self.smbConfig.set('global','rpc_apis','yes') self.smbConfig.set('global','rpc_apis','yes')
self.smbConfig.set('global','credentials_file',str('')) self.smbConfig.set('global','credentials_file',str(''))
self.smbConfig.set('global', 'challenge', str('')) self.smbConfig.set('global', 'challenge', str('A'*8))
self.smbConfig.set("global", 'SMB2Support', 'True') self.smbConfig.set("global", 'SMB2Support', 'False')
# IPC always needed # IPC always needed
self.smbConfig.add_section('IPC$') self.smbConfig.add_section('IPC$')
@ -318,6 +318,8 @@ class SMBserver:
self.wkstServer.daemon = True self.wkstServer.daemon = True
self.server.registerNamedPipe('srvsvc',('127.0.0.1',self.srvsServer.getListenPort())) self.server.registerNamedPipe('srvsvc',('127.0.0.1',self.srvsServer.getListenPort()))
self.server.registerNamedPipe('wkssvc',('127.0.0.1',self.wkstServer.getListenPort())) self.server.registerNamedPipe('wkssvc',('127.0.0.1',self.wkstServer.getListenPort()))
self.srvsServer.setServerConfig(self.smbConfig)
self.srvsServer.processConfigFile()
def serve_forever(self): def serve_forever(self):
self.srvsServer.start() self.srvsServer.start()