bettercap / caplets

caplets and proxy modules.
Other
481 stars 151 forks source link

http-req-dump could not get req.Client.IP #45

Closed amane-ame closed 4 years ago

amane-ame commented 5 years ago

Description of the bug or feature request

Environment

Please provide:

Steps to Reproduce

  1. net.probe on
  2. set targets for arp.spoof
  3. arp.spoof on
  4. set certificate for https.proxy
  5. set https.proxy.script /usr/local/share/bettercap/caplets/http-req-dump/http-req-dump.js
  6. https.proxy on

Expected behavior: The script print the requests with client IP

Actual behavior: The script print the requests, but the client IP is empty

image

evilsocket commented 5 years ago

@yungtravla if i recall correctly you changed something recently about this, any idea?

buffermet commented 5 years ago

still debugging this but so far i can tell that req.RemoteAddr is not passed through requests in https.proxy. This issue does not seem to occur with http.proxy.

amane-ame commented 5 years ago

I think the problem is in bettercap but not in caplets