yuanLink/CVE-2022-26809

OSError: WinError 10013

amaperf opened this issue · 1 comments

when the fake_smb_server.py script is started this error occurs:

__File "c:\Users\pc\Desktop\CVE-2022-26809-main\attacker-server\fake_smb_server.py", line 4, in
myserver = SimpleSMBServer(listenPort=445)
File "C:\Users\pc\AppData\Local\Programs\Python\Python310\lib\site-packages\impacket\smbserver.py", line 4838, in init
self.__server = SMBSERVER((listenAddress, listenPort), config_parser=self.smbConfig)
File "C:\Users\pc\AppData\Local\Programs\Python\Python310\lib\site-packages\impacket\smbserver.py", line 3941, in init
socketserver.TCPServer.init(self, server_address, handler_class)
File "C:\Users\pc\AppData\Local\Programs\Python\Python310\lib\socketserver.py", line 452, in init
self.server_bind()
File "C:\Users\pc\AppData\Local\Programs\Python\Python310\lib\socketserver.py", line 466, in server_bind
self.socket.bind(self.server_address)
OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

This seems to be due to the fact that on windows port 445 cannot be delegated to another service.
Is it possible to fix this or is it easier to deploy a server on linux?

Sorry for the bad English.
Thank you in advance!

You are right, it's easier to deploy a server on linux (Sorry I forget mention this on readme)