lgandx / PoC

Various PoCs
489 stars 199 forks source link

wind10.py running error #1

Open kinds1123 opened 7 years ago

kinds1123 commented 7 years ago

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.

agowa commented 7 years ago

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.

jooeji commented 7 years ago

@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

s4nt789 commented 7 years ago

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.

drlec commented 7 years ago

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