[PR #1161] [New Feature] Add Notifications for Events per Phishlet Using notify #179

Open
opened 2026-02-26 02:31:31 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/kgretzky/evilginx2/pull/1161
Author: @DrorDvash
Created: 2/3/2025
Status: 🔄 Open

Base: masterHead: notify


📝 Commits (3)

  • c68b032 adding feature custom user-agent
  • 1e512c6 Merge branch 'kgretzky:master' into master
  • fbb97ad Adding notifications support using notify tool

📊 Changes

4 files changed (+216 additions, -6 deletions)

View changed files

📝 core/config.go (+67 -0)
📝 core/http_proxy.go (+44 -1)
📝 core/terminal.go (+26 -5)
📝 core/utils.go (+79 -0)

📄 Description

Summary

A small PR for notify integration, allowing you to track real-time events by sending notifications for:

  • Captured Username
  • Captured Password
  • Captured Session (Cookies/Tokens)

There are more PRs offering notifications, so there is nothing new here, i just love that notify is a wrapper to a variety of supported platforms and makes it easy to configure.

Note: This includes a previous PR i've made - https://github.com/kgretzky/evilginx2/pull/1115 Set Custom User-Agent.

Features

  • Send notifications using the notify CLI tool.
  • Any method supported by notify tool - Slack / Discord / Telegram / Teams / Webhook / Email / Pushover / ...
  • Enable/Disable notifications per phishlet.
  • Option to show/hide the captured data in the notification

Requirements

  1. Install notify and make sure it's in your $PATH
    go install -v github.com/projectdiscovery/notify/cmd/notify@latest
    
  2. Create and configure your provider-config.yaml. You can choose 1 or more provider.
    For example, here i chose Discord and Webhook
    image

Usage

  1. Enable notifications for a phishlet via:
    phishlets notify <phishlet> <off|on|minimal>
    
  • on - includes sensitive details - will send the username, password and session in clear-text
  • minimal - send only the event title, if you want to avoid sending victim details.

Screenshots

image
image

minimal mode (no sensitive data)
image

TODO

Support more events


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/kgretzky/evilginx2/pull/1161 **Author:** [@DrorDvash](https://github.com/DrorDvash) **Created:** 2/3/2025 **Status:** 🔄 Open **Base:** `master` ← **Head:** `notify` --- ### 📝 Commits (3) - [`c68b032`](https://github.com/kgretzky/evilginx2/commit/c68b0320f67fe553e49f1a2fa4b9d61ec0044898) adding feature custom user-agent - [`1e512c6`](https://github.com/kgretzky/evilginx2/commit/1e512c62bd04b0deaea0dbed31f34e1db9e564c6) Merge branch 'kgretzky:master' into master - [`fbb97ad`](https://github.com/kgretzky/evilginx2/commit/fbb97ad62b2229b541a142f85265d0073f02e55d) Adding notifications support using notify tool ### 📊 Changes **4 files changed** (+216 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `core/config.go` (+67 -0) 📝 `core/http_proxy.go` (+44 -1) 📝 `core/terminal.go` (+26 -5) 📝 `core/utils.go` (+79 -0) </details> ### 📄 Description ### Summary A small PR for **[notify](https://github.com/projectdiscovery/notify) integration**, allowing you to track real-time events by sending notifications for: - **Captured Username** - **Captured Password** - **Captured Session (Cookies/Tokens)** There are more PRs offering notifications, so there is nothing new here, i just love that `notify` is a wrapper to a variety of supported platforms and makes it easy to configure. **Note:** This includes a previous PR i've made - https://github.com/kgretzky/evilginx2/pull/1115 Set Custom User-Agent. ### Features - ✅ Send notifications using the `notify` CLI tool. - ✅ Any method supported by `notify` tool - Slack / Discord / Telegram / Teams / Webhook / Email / Pushover / ... - ✅ Enable/Disable notifications per phishlet. - ✅ Option to show/hide the captured data in the notification ### Requirements 1. Install `notify` and make sure it's in your `$PATH` ```sh go install -v github.com/projectdiscovery/notify/cmd/notify@latest ``` 2. Create and configure your [provider-config.yaml](https://github.com/projectdiscovery/notify?tab=readme-ov-file#provider-config). You can choose 1 or more provider. For example, here i chose Discord and Webhook ![image](https://github.com/user-attachments/assets/308ea8de-4d21-4d58-a7d5-25d1e9de436f) ### Usage 1. Enable notifications for a phishlet via: ```sh phishlets notify <phishlet> <off|on|minimal> ```` - `on` - includes sensitive details - will send the username, password and session in clear-text - `minimal` - send only the event title, if you want to avoid sending victim details. ### Screenshots ![image](https://github.com/user-attachments/assets/452aeb87-8f14-47d1-84b6-9898cea8fa3b) ![image](https://github.com/user-attachments/assets/31cf7bd8-12f7-4f0d-822f-6abd14730ca0) `minimal` mode (no sensitive data) ![image](https://github.com/user-attachments/assets/620273cc-021a-48eb-a59e-37b5b27da805) ### TODO Support more events --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/evilginx2-kgretzky#179
No description provided.