BlackVenom is a powerful ARP and DNS spoofing tool designed for ethical hackers and cybersecurity professionals. π‘οΈ This utility allows you to seamlessly intercept and log network traffic, providing valuable insights into network vulnerabilities while remaining undetected. π΅οΈββοΈβ‘
Built with stealth and precision in mind, BlackVenom operates like a digital venomous strike: fast, effective, and silent. π€ Whether you're conducting penetration tests, monitoring network vulnerabilities, or analyzing traffic for security research, BlackVenom empowers you to take full control of ARP tables and spoof DNS requests for educational and professional purposes. π₯οΈπ
π I would like to express my sincere gratitude to Santiago HernΓ‘ndez, a leading expert in Cybersecurity and Artificial Intelligence. His outstanding course on Cybersecurity and Ethical Hacking, available on Udemy, was instrumental in the development of this project. The insights and techniques I gained from his course were invaluable in guiding my approach to cybersecurity practices. Thank you for sharing your knowledge and expertise!
Join the BlackVenom web of digital defenders and harness the power of stealthy network manipulation for the greater good! πΈοΈβ¨
BlackVenom is intended for ethical use only. Misuse of this tool against unauthorized systems is illegal and may result in severe penalties. Always obtain permission before testing network security. π
If you're interested in more powerful tools for ethical hacking, make sure to check out my other open-source projects designed to help cybersecurity professionals and penetration testers:
-
π¦ NetHawk: A state-of-the-art AI-powered ethical hacking tool for network vulnerability assessment. Using advanced frameworks like Scapy and Nmap, NetHawk automates port scanning, vulnerability detection, and report generation, making security audits faster, smarter, and more efficient. Whether you're a network administrator, cybersecurity expert, or ethical hacker, NetHawk simplifies the assessment process and offers actionable insights to fortify your systems.
-
π Nemesys: An advanced exploitation and post-exploitation tool built on top of the Metasploit Framework for automating critical data harvesting and system enumeration.
-
π ZeroTrace: A powerful search engine dorking tool designed to identify attack vectors and uncover exposed sensitive information across the web.
-
π DecryptX: An advanced hash and password security assessment tool that helps cybersecurity experts and penetration testers analyze password hashes and encrypted ZIP files to assess the robustness of security implementations.
-
π EclipseRecon: is a stealthy web reconnaissance tool for uncovering hidden vulnerabilities, subdomains, and site structures. π΅οΈββοΈπ It empowers security professionals to identify critical attack surfaces with precision, ensuring proactive defense. π¨π»
These tools are designed to streamline penetration testing, enhance security assessments, and provide in-depth insights into vulnerabilities. Explore them to level up your ethical hacking skills! π»π
- π ARP Spoofing Mastery: Perform bidirectional ARP spoofing to impersonate devices and intercept traffic between them. π
- π DNS Spoofing Capabilities: Redirect DNS requests to specified IP addresses, enabling control over domain resolutions. π‘
- π Traffic Logging: Capture and log all intercepted network traffic in a configurable PCAP file for later analysis. π
- βοΈ Ethical & Stealthy: Designed for ethical hacking, ensuring you stay invisible while uncovering security flaws. πΆοΈ
- Network Penetration Testing: Assess the security of networks by identifying weaknesses in ARP protocols and DNS resolutions. ππ‘οΈ
- Security Auditing: Log and analyze network traffic to discover potential vulnerabilities and improve network defenses. ππ
- Educational Purposes: Learn and teach network security concepts through practical, hands-on experience with ARP and DNS spoofing techniques. ππ
- Traffic Analysis: Monitor and capture traffic for forensic investigations or to understand user behavior on a network. ππ
-
ARP Spoofing: This technique involves sending false ARP (Address Resolution Protocol) messages over a local area network. By doing so, an attacker can associate their MAC address with the IP address of another device (e.g., the default gateway), allowing them to intercept and manipulate traffic intended for that device. This can lead to various attacks, including man-in-the-middle attacks and session hijacking.
β οΈ -
DNS Spoofing: This technique manipulates DNS (Domain Name System) responses to redirect traffic from legitimate websites to malicious ones. By altering the DNS records, an attacker can control what IP addresses users are directed to when they attempt to access specific domains. This can be used to carry out phishing attacks or serve malicious content. π
For BlackVenom to successfully intercept and forward traffic between the target and gateway, IP forwarding must be enabled on the system. This allows the machine running BlackVenom to act as a bridge, forwarding packets between the target and the network.
To enable IP forwarding, use the following command:
echo 1 > /proc/sys/net/ipv4/ip_forward
Additionally, you may need to configure IPTABLES to allow forwarding of packets. Hereβs a basic command to set up the necessary rules:
iptables -A FORWARD -i eth0 -j ACCEPT
iptables -A FORWARD -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
These commands ensure that the traffic can flow through the machine while BlackVenom performs its operations. π‘οΈ
-
NetFilterQueue: This library allows the interception of packets within the Linux kernel's Netfilter framework. It provides a powerful way to capture and manipulate network packets, making it an essential tool for implementing ARP and DNS spoofing techniques. π₯
-
Scapy: A powerful Python library used for packet manipulation, Scapy allows for the creation, sending, and receiving of network packets. It's crucial for constructing ARP and DNS packets needed for spoofing. π¦
-
Threading: To ensure that the tool operates efficiently without blocking the main execution thread, threading is utilized to manage concurrent packet processing for both ARP and DNS spoofing operations. π§΅
-
Traffic Logging: Using libraries like
pcap
andtqdm
, BlackVenom captures and logs network traffic in real-time, providing a comprehensive analysis of intercepted packets for further examination. π
BlackVenom requires several Python packages to function effectively. Below are the key dependencies along with their respective versions:
- scapy==2.6.0 π: A powerful Python library for network packet manipulation, allowing the creation, sending, and sniffing of network packets.
- tqdm==4.65.0 β³: A fast, extensible progress bar for Python, used to provide visual feedback during long-running tasks.
- rich==13.9.2 π: A library for rich text and beautiful formatting in the terminal, enhancing the output of the tool with colors and styles.
- netifaces==0.11.0 π: A cross-platform library to get network interface information, useful for identifying available interfaces for ARP spoofing.
- NetfilterQueue==1.1.0 π: A Python binding to the netfilter queue library, allowing the manipulation of packets in user space for packet filtering and modification.
Ensure that these dependencies are installed in your Python environment to use BlackVenom effectively. β
To install and run BlackVenom, follow these simple steps:
First, create a virtual environment to manage dependencies:
python -m venv BlackVenom-Kali
Activate the virtual environment:
source BlackVenom-Kali/bin/activate
Now, install the necessary dependencies from the requirements.txt file:
pip install -r requirements.txt
- Run the Tool β‘ After installation, you can run BlackVenom using the provided CLI:
python black_venom_cli.py
This command performs a basic ARP spoofing attack between a target and a gateway without enabling packet logging or DNS spoofing. π
sudo python black_venom_cli.py \
--target_ip 192.168.11.128 \
--gateway_ip 192.168.11.2 \
--interface eth0
In this example, packet logging is enabled while performing ARP spoofing. π
sudo python black_venom_cli.py \
--target_ip 192.168.11.128 \
--gateway_ip 192.168.11.2 \
--interface eth0 \
--enable_logging \
--log_file ~/Desktop/captured_packets.pcap
This command enables both ARP spoofing and DNS spoofing, redirecting DNS requests for a specific domain. ππ
sudo python black_venom_cli.py \
--target_ip 192.168.11.128 \
--gateway_ip 192.168.11.2 \
--interface eth0 \
--enable_logging \
--log_file ~/Desktop/captured_packets.pcap
Here multiple DNS records are redirected to a specific IP. This command performs ARP and DNS spoofing while logging traffic. ππ
sudo python black_venom_cli.py \
--target_ip 192.168.11.128 \
--gateway_ip 192.168.11.2 \
--interface eth0 \
--enable_logging \
--log_file ~/Desktop/captured_packets.pcap \
--spoof_dns \
--dns_records "example.com=192.168.11.10" "anotherdomain.com=192.168.11.11"
This example performs ARP spoofing and DNS spoofing without enabling traffic logging. π«π
sudo python black_venom_cli.py \
--target_ip 192.168.11.128 \
--gateway_ip 192.168.11.2 \
--interface eth0 \
--spoof_dns \
--dns_records "example.com=192.168.11.10"
--target_ip
: IP address of the target device. π»--gateway_ip
: IP address of the network gateway. π--interface
: Network interface to use (default iseth0
). π--enable_logging
: Enable traffic logging to a PCAP file. π--log_file
: Path and name of the PCAP file for logging. π--spoof_dns
: Enable DNS spoofing. π--attacker_ip
: IP to which DNS requests should be redirected. π--dns_queue_num
: Queue number for DNS spoofing (default is2
). π--dns_records
: DNS records in the format'domain=ip'
to redirect requests. π
π I would like to express my sincere gratitude to Santiago HernΓ‘ndez, a leading expert in Cybersecurity and Artificial Intelligence. His outstanding course on Cybersecurity and Ethical Hacking, available on Udemy, was instrumental in the development of this project. The insights and techniques I gained from his course were invaluable in guiding my approach to cybersecurity practices. Thank you for sharing your knowledge and expertise!
Contributions to BlackVenom are highly encouraged! If you're interested in adding new features, resolving bugs, or enhancing the project's functionality, please feel free to submit pull requests.
BlackVenom is developed and maintained by Sergio SΓ‘nchez SΓ‘nchez (Dream Software). Special thanks to the open-source community and the contributors who have made this project possible. If you have any questions, feedback, or suggestions, feel free to reach out at dreamsoftware92@gmail.com.
This project is licensed under the MIT License, an open-source software license that allows developers to freely use, copy, modify, and distribute the software. π οΈ This includes use in both personal and commercial projects, with the only requirement being that the original copyright notice is retained. π
Please note the following limitations:
- The software is provided "as is", without any warranties, express or implied. π«π‘οΈ
- If you distribute the software, whether in original or modified form, you must include the original copyright notice and license. π
- The license allows for commercial use, but you cannot claim ownership over the software itself. π·οΈ
The goal of this license is to maximize freedom for developers while maintaining recognition for the original creators.
MIT License
Copyright (c) 2024 Dream software - Sergio SΓ‘nchez
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.