From 9f750aabcceeb6522ddea8793a2d254a004d392b Mon Sep 17 00:00:00 2001 From: Curt Hash Date: Tue, 26 Jan 2010 13:30:23 -0700 Subject: [PATCH] padding TFTP ACK packet --- pollster/pollster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pollster/pollster.py b/pollster/pollster.py index d06169f..32b05f6 100755 --- a/pollster/pollster.py +++ b/pollster/pollster.py @@ -163,7 +163,7 @@ def poll_tftpd(srcip, ip): resp = resp.split(b'\n')[0] # 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')