kgretzky / evilginx2

Standalone man-in-the-middle attack framework used for phishing login credentials along with session cookies, allowing for the bypass of 2-factor authentication
BSD 3-Clause "New" or "Revised" License
10.33k stars 1.88k forks source link

Added support to different ports than 443 for targets #859

Open riramar opened 1 year ago

riramar commented 1 year ago

By default, evilginx2 always connect on port 443 for all domains under proxy_hosts. With this patch, if the port is different than 443, you can provide a domain and port as domain under proxy_hosts. It's a ugly patch, but it works. Please check the example below.

proxy_hosts:
  - {phish_sub: 'sub1', orig_sub: 'sub1', domain: 'example.com', session: true, is_landing: true}
  - {phish_sub: 'sub2', orig_sub: 'sub2', domain: 'anotherexample.com:443', session: true, is_landing: false}
lonewolf-github commented 10 months ago

@riramar do you happen to have an updated version? This currently no longer works