bettercap / caplets

caplets and proxy modules.
Other
484 stars 152 forks source link

make hstshijack stealthier #21

Closed buffermet closed 6 years ago

buffermet commented 6 years ago
buffermet commented 6 years ago

I'm still testing this so if all works as intended I'll merge.

buffermet commented 6 years ago

This works as intended now. Merging now.

Example:

  1. User visits spoofed hostname
  2. User logs in and the custom payload steals the credentials by posting them to the callback path (/obf_path_callback)
  3. User gets redirected to "wrong password" page (or "reset password" page)
  4. User tries to visit previous page
  5. User is presented the real login page (original, non-spoofed hostname)

After receiving a request for the callback path, this hostname will no longer be spoofed for this client and any request for the spoofed hostname will immediately be redirected to the original host.