1

How can I sending packets through socket which I already created in my browser? I don't want to create new socket in Python, only bind socket as I mentioned earlier.

2
  • This question doesn't make sense. Are you sure you understand sockets, binding, processes, and file descriptors? Commented Jun 25, 2015 at 22:28
  • Maybe I used bad words. I want do something like wpe pro. This program can bind process in browser and sending packets. I want to sending packets in Python. Socket already exist in my browser, I want to bind this socket and sending packets in Python. Commented Jun 26, 2015 at 17:24

1 Answer 1

1

You cannot overtake an existing TCP connection from within another process without cooperation of the original process. With cooperation there are at least on UNIX like systems ways to transfer open file descriptors between processes. But to get this cooperation you would need to make changes to the browser.

But, your problem sounds like an XY problem. You should better ask about the original issue leading to this question.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.