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