Open
Description
Hi,
I can't connect to a (supposed) smb2 host. I have no control or detailed info about the server. I can't connect to it using smbclient:
smbclient //ip/share -U DOMAIN\\USER%PASS:
wireshark:
1 0.000000000 172.28.120.110 → 10.2.0.142 TCP 74 55208 → 445 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM TSval=620089998 TSecr=0 WS=128
3 0.011530811 10.2.0.142 → 172.28.120.110 TCP 74 445 → 55208 [SYN, ACK] Seq=0 Ack=1 Win=8192 Len=0 MSS=1460 WS=256 SACK_PERM TSval=3068524379 TSecr=620089998
4 0.011564344 172.28.120.110 → 10.2.0.142 TCP 66 55208 → 445 [ACK] Seq=1 Ack=1 Win=64256 Len=0 TSval=620090010 TSecr=3068524379
5 0.011805340 172.28.120.110 → 10.2.0.142 SMB2 298 Negotiate Protocol Request
6 0.016529865 10.2.0.142 → 172.28.120.110 TCP 74 139 → 47462 [SYN, ACK] Seq=0 Ack=1 Win=8192 Len=0 MSS=1460 WS=256 SACK_PERM TSval=3068524379 TSecr=620090003
But with pysmb, the server host do not reply with any errors and the pysmb can not detect that it's talking to a smbv2 server to switch itself to smbv2:
from smb.SMBConnection import SMBConnection
c = SMBConnection('user', 'pass', 'client', IP, 'domain', is_direct_tcp=True)
c.connect(IP, port=445)
wireshark:
1 0.000000000 172.28.120.110 → 10.2.0.142 TCP 74 36250 → 445 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM TSval=621411900 TSecr=0 WS=128
2 0.011390598 10.2.0.142 → 172.28.120.110 TCP 74 445 → 36250 [SYN, ACK] Seq=0 Ack=1 Win=8192 Len=0 MSS=1460 WS=256 SACK_PERM TSval=3068656568 TSecr=621411900
3 0.011435655 172.28.120.110 → 10.2.0.142 TCP 66 36250 → 445 [ACK] Seq=1 Ack=1 Win=64256 Len=0 TSval=621411912 TSecr=3068656568
4 0.011533045 172.28.120.110 → 10.2.0.142 SMB 128 Negotiate Protocol Request
5 0.222132729 172.28.120.110 → 10.2.0.142 TCP 128 [TCP Retransmission] 36250 → 445 [PSH, ACK] Seq=1 Ack=1 Win=64256 Len=62 TSval=621412123 TSecr=3068656568
6 0.434130032 172.28.120.110 → 10.2.0.142 TCP 128 [TCP Retransmission] 36250 → 445 [PSH, ACK] Seq=1 Ack=1 Win=64256 Len=62 TSval=621412335 TSecr=3068656568
7 0.858151094 172.28.120.110 → 10.2.0.142 TCP 128 [TCP Retransmission] 36250 → 445 [PSH, ACK] Seq=1 Ack=1 Win=64256 Len=62 TSval=621412759 TSecr=3068656568
What is wrong?
Thank you
Metadata
Assignees
Labels
No labels
Activity