2

I am using python and mitmproxy to listen to all incoming and outgoing traffic so that I can capture the URLs. I run the script and it tells me all URLs my computer is trying to connect to.

I need to implement the same using Go but have not got a clue on how to start or what package to use. Can anyone guide me in the right direction please?

Thanks

Han Hanz
  • 41
  • 4

2 Answers2

0

You would need a local intermediate proxy, in order to capture its traffic and display the URLs used.

See for example, in Go, sipt/shuttle, with its GUI web interface:

https://github.com/sipt/shuttle/blob/master/static/cert.jpg?raw=true

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
0

You can either easily build a proxy with httputil - example here.
Or you might want to use gopacket as described here.

Das Jott
  • 996
  • 8
  • 13