Skip to content
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
Closed

Not working on windows ? #459

zclongpop123 opened this issue Jun 14, 2018 · 2 comments

Comments

@zclongpop123
Copy link

 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
Copy link
Collaborator

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 as completed Jun 14, 2018
@zclongpop123
Copy link
Author

thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants