# bettercap v2.41.0 - Product: bettercap (https://whatsnew.fyi/product/bettercap) - Vendor: bettercap - Date: 2025-01-31 - Version: v2.41.0 - Original notes: https://github.com/bettercap/bettercap/releases/tag/v2.41.0 - Permalink: https://whatsnew.fyi/product/bettercap/releases/v2.41.0 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- - **added** — Introduce zerogod module for ZeroConf / Bonjour impersonation attacks - **added** — Make api.rest return stdout data after executing a session command - **added** — Add addSessionEvent function for DNS and HTTP proxy script environments - **added** — Add removeEventListener built-in function - **added** — Implement support for named tickers - **changed** — Add TLS support to DNS proxy - **changed** — Implement backwards-compatible DNS record conversion - **changed** — Support RFC3597 generic/unknown record types when Rdata field is present - **added** — Introduce blacklist and whitelist support logic - **changed** — Allow wildcards in blacklist configurations - **changed** — Enhance IPv6 detection logic - **fixed** — Add nil check for interfaces to prevent crashes in IPv6 handling - **changed** — Improve readability of debug logs - **changed** — Print JavaScript property conversion errors for better error tracking - **fixed** — Catch nil values in DNS records - **fixed** — Prioritize longer and more explicit hostnames in DNS proxy - **changed** — Directly embed UI assets and remove UI submodule - **changed** — Improve backwards compatibility for getHandshakeFileFor ###### New Features - **ZeroGod Module**: Introduced the `zerogod` module for ZeroConf / Bonjour impersonation attacks. - **API Enhancements**: `api.rest` now returns stdout data after executing a session command. - **Session Event Handling**: Added `addSessionEvent` function for both DNS and HTTP proxy script environments. - **Built-in Functions**: Added `removeEventListener` function. - **Named Tickers**: Implemented support for named tickers. ###### Improvements - **DNS Proxy Enhancements**: - Added TLS support. - Implemented backwards-compatible DNS record conversion. - Support for RFC3597 generic/unknown record types if the `Rdata` field is present. - **Blacklist and Whitelist Support**: Introduced logic to support blacklists and whitelists. - **Wildcard Blacklisting**: Allow wildcards in blacklist configurations. - **IPv6 Improvements**: - Enhanced detection logic. - Added a nil check for interfaces to prevent crashes. - **Logging & Debugging**: - Improved readability of debug logs. - JS property conversion errors are now printed for better error tracking. ###### Fixes - **DNS Proxy Stability**: - Catch nil values in DNS records. - Prioritize longer and more explicit hostnames. - **UI Asset Handling**: - Directly embedded UI assets. - Removed UI submodule. - **Compatibility**: - Improved backwards compatibility for `getHandshakeFileFor`. - **Miscellaneous**: - Various small fixes and refactorings. ###### Miscellaneous - **Documentation**: - Updated `README.md`. - **Credits**: - Acknowledged the `grandcat` package. **Full Changelog**: https://github.com/bettercap/bettercap/compare/v2.40.0...v2.41.0