After learning modern PHP in past few days, I decide GIVING UP this language now. :(
I wrote an MiTM proxy in PHP for TCP connection forwarding and hijacking, code can be found on github.
This project is based on ReactPHP.
It can be also installed from composer / packagist.org.
I’ve coded some examples in that project, you can try those out and write your own. Including: forward DNS TCP query, forward HTTP query, modify HTTP request.
If you have a linux router/box, you can add some iptables rules forwarding requests to your running instance.
Have fun!
PHP Man-in-The-Middle TCP Proxy by @sskaje: https://sskaje.me/2016/10/php-man-in-the-middle-tcp-proxy/
Incoming search terms:
- https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1881 rlFRg6I47Mjr_Rf6rfz9DMJvFmI9Lp1Bmw4__zEKqe0 6663734f734c5c8a3fc0b03a262ef8fc53ff5d31&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXmeppkgUc0YGHEttDsYq_w3p
- php mitm
- tcp proxy in php
- volumeo5t
Link to this post!