mirror of
https://github.com/lgandx/Responder.git
synced 2025-12-06 04:31:30 +00:00
Small fix
This commit is contained in:
@@ -339,8 +339,6 @@ def ConnectAndChoseSMB(host):
|
||||
s.settimeout(Timeout)
|
||||
try:
|
||||
s.connect(host)
|
||||
except:
|
||||
return False
|
||||
h = SMBHeader(cmd="\x72",flag1="\x00")
|
||||
n = SMBNego(Data = SMB2NegoData())
|
||||
n.calculate()
|
||||
@@ -348,6 +346,8 @@ def ConnectAndChoseSMB(host):
|
||||
buffer0 = longueur(packet0)+packet0
|
||||
s.send(NetworkSendBufferPython2or3(buffer0))
|
||||
data = s.recv(4096)
|
||||
except:
|
||||
return False
|
||||
if ParseNegotiateSMB2Ans(data):
|
||||
try:
|
||||
while True:
|
||||
|
||||
Reference in New Issue
Block a user