padding TFTP ACK packet

This commit is contained in:
Curt Hash 2010-01-26 13:30:23 -07:00
parent e2036bbf84
commit 9f750aabcc
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ def poll_tftpd(srcip, ip):
resp = resp.split(b'\n')[0] resp = resp.split(b'\n')[0]
# ack # ack
_ = socket_poll(srcip, ip, 69, b'\x00\x04' + resp[2:4], socket.SOCK_DGRAM, 0) _ = socket_poll(srcip, ip, 69, b'\x00\x04\x00\x01' + '\x00' * 14, socket.SOCK_DGRAM, 0)
return resp[4:].strip(b'\r\n') return resp[4:].strip(b'\r\n')