Running the above will show only the calls being made via curl being intercepted by mitmproxy.
file_get_contents does not respect proxy config unless declared within the options array, there are likely other functions which will have the same behaviour.
Found this issue during investigation of a kit and noticed it making telegram calls without it being intercepted by mitmproxy.
PoC:
Running the above will show only the calls being made via curl being intercepted by mitmproxy.
file_get_contents
does not respect proxy config unless declared within the options array, there are likely other functions which will have the same behaviour.