How to drop a packet? #41
Answered
by
ickerwx
TheTechRobo
asked this question in
Q&A
|
There are some packets I want to drop entirely through a module. How would I accomplish this? |
Answered by
ickerwx
Feb 19, 2023
Replies: 2 comments 3 replies
|
Hi, thanks for trying out my little tool. Dropping packets (as in, TCP packets) ist not possible. It's a TCP proxy and therefore works on streams of data. The proxy does not see packets, you are reading data through file descriptors. Dropping packets while mitm-ing a connection is quite involved, you would need to keep track of sequence numbers and modify every subsequent packet. This is beyond the scope of this tool. |
3 replies
Answer selected by
ickerwx
|
Moved this to a discussion thread, in case I misunderstood what you want to do. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, thanks for trying out my little tool. Dropping packets (as in, TCP packets) ist not possible. It's a TCP proxy and therefore works on streams of data. The proxy does not see packets, you are reading data through file descriptors.
Dropping packets while mitm-ing a connection is quite involved, you would need to keep track of sequence numbers and modify every subsequent packet. This is beyond the scope of this tool.