Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is a fundamental problem: the decoding of TCP is not stateful #1

Open
jeffsilverm opened this issue Apr 11, 2011 · 0 comments
Open

Comments

@jeffsilverm
Copy link
Owner

There is a basic problem with the decode_http.py program: the TCP layer is not stateful. There is no concept of a three way handshake, no notion of the connection tear down at the end, no idea that there might be several streams going to the same HTTP port.

To fix the problem, implement a finite state machine which uses the TCP flags, source port and destination port to keep track of the state of the TCP connection. The output of such a state machine would be a series of TCP streams. Since there could theoretically (and practically) be several streams going to the server simultaneously, use threads to keep the streams straight?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant