wootski / impacket

Automatically exported from code.google.com/p/impacket
Other
0 stars 0 forks source link

smbserver not working with OSX Mavericks #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Launch the simple_server example (with the srvsvcservice.py running)
2. Connect from an OSX machine

What is the expected output? What do you see instead?
To show the shares and connect to the target machine

The problem seems to be two fold:

1) When we answer the SMB_COM_NEGOTIATE we don't set as a capability the RPC 
Remote APIs bit. Looks like the new Mavericks SMB stack will not try to ask 
shares w/o doing it in the RPC way.. hence it will close the connection. If I 
change the smbserver.py and add that capability the connection continues

2)  When the client is asking for shares through ncacn_np the bind answer 
should respond with '\PIPE\srvsvc' instead of '135' for the Secondary Addr 
field. This should be changed at the srvsvcserver.py file.

If I change both things.. everything starts working again.. We should perform 
further tests to verify nothing else breaks.. and think whether or not this is 
the best solution.

Original issue reported on code.google.com by bet...@gmail.com on 7 Jun 2014 at 9:19