So I have currently setup a hidden service to give me an onion address and the port it runs off is port 80 or 443. For some cybersecurity research I'm doing, I was initially going to setup an exit node however there's so many issues with monitoring-related studies, that the hidden service is my next best option - since I'm only monitoring myself. I do this as follows:
HiddenServiceDir /usr/local/etc/tor/hidden_service/robot HiddenServicePort 443 127.0.0.1:443 HiddenServicePort 80 127.0.0.1:80
I have some TLS pcap data which I was planning on replaying to understand the impact of Tor in my use case, and monitoring the incoming data on the host (another machine of mine) running the hidden service to capture the "tor" packets.
My question is, how can I use Python (as an example, as I can use ScaPy for TLS replaying) for sending the data to the hidden service (i.e. socks?) so I can then monitor the incoming data on the hidden service machine using Wireshark?