doudie2693 2016-10-07 08:48
浏览 15

在GoLang中收听传出的http / https请求

I'm trying to make a GoLang program, that logs every outgoing http/https request when it runs on the computer, for example, when it's running it on my computer, when I open a browser and open http://example.com, it logs it. An appreciated extra would be a way to redirect some unwanted website requests (like a parental control)

I've been trying and looking all around and it seems that all the examples out there consider the computer where the Go exe is running as a server.. That's not what I want

Thank you very much

  • 写回答

1条回答 默认 最新

  • dsbj66959 2016-10-07 09:57
    关注

    Techniques for "getting every request" off a computer will vary a bit if your intent is to trap things that don't use common HTTP proxy settings (and things get a bit weird if SSL/TLS is involved, which on the modern Internet it almost assuredly is). So let's ignore the complications of trying to actually get an unencrypted channel to MitM...

    Assuming you're writing a simple HTTP proxy at first and expanding on that, try GoProxy. It has a good list of examples and a decent feature list.

    评论

报告相同问题?

悬赏问题

  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算
  • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
  • ¥20 有人知道这种图怎么画吗?
  • ¥15 pyqt6如何引用qrc文件加载里面的的资源
  • ¥15 安卓JNI项目使用lua上的问题
  • ¥20 RL+GNN解决人员排班问题时梯度消失
  • ¥60 要数控稳压电源测试数据
  • ¥15 能帮我写下这个编程吗
  • ¥15 ikuai客户端l2tp协议链接报终止15信号和无法将p.p.p6转换为我的l2tp线路