Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added config flag to send captured credentials to Gophish #1135

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

callightmn
Copy link

@callightmn callightmn commented Oct 25, 2024

Hello there,

By default, Evilginx does not send session information to Gophish. This is on purpose not to expose credentials and keep them in Evilginx only. Nevertheless, having credentials readily available in Gophish could be a nice feature to have everything in the dashboard, provided Gophish's admin interface is properly secured (behind a firewall for instance). I made it an opt-in feature to keep the default behavior.

Default behavior (or after config gophish sessions false in Evilginx' terminal):

Capture d’écran 2024-10-25 à 20 36 42

After config gophish sessions true in Evilginx' terminal:

Capture d’écran 2024-10-25 à 20 38 22

The feature takes into account all three types of credentials (username, password and custom) and all three types of auth_tokens (cookies, body and HTTP tokens).

NB: Actually displaying session info in Gophish requires the ability for Gophish to receive session information (see kgretzky/gophish#1). The Gophish update was done by @nairpaa, who also did a similar update for Evilginx but without the opt-in and not supporting cookie tokens. I merged his changes with mine as he wrapped the session info into a single generic data member, which is cleaner on the wire (instead of having potentially null members, unrelated to the event being sent by Evilginx).

@callightmn
Copy link
Author

Update: linked to kgretzky/gophish#4, which adds a /session endpoint to Gophish and a "Captured Sessions" chart, and no longer to kgretzky/gophish#1. Credentials are also sent as they are captured, not waiting for the whole session to be completely captured (session tokens are however sent only when the session is fully captured: either authorization URL or all tokens intercepted).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant