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

wind10.py running error #1

Open
kinds1123 opened this issue Feb 4, 2017 · 4 comments
Open

wind10.py running error #1

kinds1123 opened this issue Feb 4, 2017 · 4 comments

Comments

@kinds1123
Copy link

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 kinds1123 changed the title wind10poc.py运行报错的问题 wind10poc.py running error Feb 4, 2017
@kinds1123 kinds1123 changed the title wind10poc.py running error wind10.py running error Feb 4, 2017
@agowa
Copy link

agowa commented Feb 5, 2017

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

jooeji commented Feb 8, 2017

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

s4nt789 commented Feb 17, 2017

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

drlec commented Apr 8, 2017

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

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

5 participants