Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upcan not set payload correctly with length changed #29
Comments
|
We can manually modify the length of packet, |
|
I tried the above example using netcat senting Hello. I see the debug information showing its overwriting 'hello' with 'for the hook test' but the netcat at the other end still recieves 'hello'. why is it not modifying the packet? |
|
Hello |
|
Does this strategy work whit UDP packet? actually I test this for change udp packet size but for size above 1500 It send IP packet whit no source/destination IP address too! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
after changing the TCP payload, and the length is different, the program is abnormal:
iptables rule in test server:
if the length is shorter after changed:
client can receive the modified payload, but the client send a RST connection to server while closing socket
if the length is longer:
client can receive the modified payload, but the server repeatedly to send the packet for several times, and the length looks like not changed via get_payload_len()
if the length is same, just replace content, all behave correctly
could you please help me? thanks, below is the test code: