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.54k stars 1.91k forks source link

Change the condition of content type definition #761

Closed redlocks closed 1 year ago

redlocks commented 2 years ago

https://github.com/kgretzky/evilginx2/blob/511860ca993b73e0d412c372c8aaa4b70ba5a7e1/core/http_proxy.go#L436

At the moment the condition is not satisfied with "application/json;charset=UTF-8", you need to replace string matching with substring search.

if strings.Contains(contentType, "application/json"){}