Skip to content

Commit 65e7f3d

Browse files
Receiving Response Packets
1 parent e9cb04d commit 65e7f3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Pinject.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,9 @@ def main():
272272
tcpobj = TCP(1234, 80)
273273
response = send(ipobj, tcpobj, iface="eth0", retry=1, timeout=0.3)
274274
if response:
275-
ip = ipobj.unpack(response)
276-
response = response[ip.ihl:]
277-
tcp = tcpobj.unpack(response)
275+
ip = ipobj.unpack(response)
276+
response = response[ip.ihl:]
277+
tcp = tcpobj.unpack(response)
278278
print "IP Header:", ip.list
279279
print "TCP Header:", tcp.list
280280
if __name__=="__main__":

0 commit comments

Comments
 (0)