Hijacking programs' socket(s) using / Proxy python

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Hijacking programs' socket(s) using / Proxy python



Currently I'm attempting to read/send UDP(/TCP) packets a running process is receiving and sending. So far I figured out several methods:


Normal:
Program <-> socket <-> Destination

Proxy:
Program <-> socket <-> proxy <-> Destination

Socket hijack:
Program <-> socket <-> Destination
^ | ^
| v |
+---"Shared" Socket ---+
Python



A Proxy would be possible but the ports change on startup and detecting that would be a pain.



So I reasoned that it would be possible to get some kind of copy/reference of the socket of the running process so that I could use that socket to read/send packets in python.



Edit: To clarify my question:
How would you get a python socket that is a "copy" of a process.





And the question is...?
– Adam Brinded
9 mins ago









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

jcJPuC,Bi fzfCA8I2b5I7raoI tOEGvSnvYr YaNkSZWbRAHYNCbtS
yNKjYCiSJ33,IWjc

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

Visual Studio Code: How to configure includePath for better IntelliSense results