New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working on windows ? #459

Closed
zclongpop123 opened this Issue Jun 14, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@zclongpop123

zclongpop123 commented Jun 14, 2018

 File "d:\Repo\publisher\test2.py", line 9, in
server = smbserver.SimpleSMBServer()
File "C:\Python27\Lib\site-packages\impacket\smbserver.py", line 4564, in init
self.__server = SMBSERVER((listenAddress,listenPort), config_parser = self.__smbConfig)
File "C:\Python27\Lib\site-packages\impacket\smbserver.py", line 3706, in init
SocketServer.TCPServer.init(self, server_address, handler_class)
File "C:\Python27\Lib\SocketServer.py", line 417, in init
self.server_bind()
File "C:\Python27\Lib\SocketServer.py", line 431, in server_bind
self.socket.bind(self.server_address)
File "C:\Python27\Lib\socket.py", line 228, in meth
return getattr(self._sock,name)(*args)

socket.error: [Errno 10013]

@asolino

This comment has been minimized.

Show comment
Hide comment
@asolino

asolino Jun 14, 2018

Contributor

Hey @zclongpop123

The SMBServer will not work in Windows since port 445/tcp is bound by the Windows kernel. You can bind the impacket SMBServer to a high port and then use a port redirection driver (using WFP) like windivert to redirect port 445 to whatever port the SMBServer is listening on.

Contributor

asolino commented Jun 14, 2018

Hey @zclongpop123

The SMBServer will not work in Windows since port 445/tcp is bound by the Windows kernel. You can bind the impacket SMBServer to a high port and then use a port redirection driver (using WFP) like windivert to redirect port 445 to whatever port the SMBServer is listening on.

@asolino asolino closed this Jun 14, 2018

@zclongpop123

This comment has been minimized.

Show comment
Hide comment
@zclongpop123

zclongpop123 commented Jun 15, 2018

thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment