I occasionally use HTTrack or wget on Linux to clone and archive websites for offline viewing. I use proxychains and a random socks5 proxy I find in those proxy lists on the Internet. The websites I clone have https and I always initiate the crawl with https://.
My concern is, if the socks5 proxy can inject or add malicious code to the traffic as he is literally the man in the middle and I'm not using a web browser to see if the certificate validation fails?
Does wget or httrack or proxychains validate the https connection and abort the connection if it gets tempered with?