PoC icon indicating copy to clipboard operation
PoC copied to clipboard

wind10.py running error

Open kinds1123 opened this issue 8 years ago • 4 comments

Code: launch = SocketServer.TCPServer(('192.168.40.131',445),SMB2)

Running error: socket.error: [Errno 10049]

The target server opened the 445 port, and I turned off the firewall.

kinds1123 avatar Feb 04 '17 02:02 kinds1123

Are you running this on windows or linux? If you're running this on windows you have to disable smb first, otherwise windows is already bound to this port.

agowa avatar Feb 05 '17 09:02 agowa

@lgandx **~/PoC/SMBv3 Tree Connect$ sudo python Win10.py 192.168.0.157 Traceback (most recent call last): File "Win10.py", line 423, in launch = SocketServer.TCPServer((' ', 445),SMB2) File "/usr/lib/python2.7/SocketServer.py", line 419, in init self.server_bind() File "/usr/lib/python2.7/SocketServer.py", line 430, in server_bind self.socket.bind(self.server_address) File "/usr/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) socket.gaierror: [Errno -2] Name or service not known


uesed on Ubuntu 14.04

jooeji avatar Feb 08 '17 03:02 jooeji

I'm getting the following by running the script: capture

It just stays like that for like ever. Does anyone knows if I'm missing something? like typing a command at the "victim" IP address?

I'm using VM Kali as the "attacker" on python 2.7.13.

s4nt789 avatar Feb 17 '17 22:02 s4nt789

s4nt789, Everythings fine, the server is running. The victim machine just needs to connect to the smb server for it to work

drlec avatar Apr 08 '17 20:04 drlec