본문으로 건너뛰기
Skillpedia
보안35k · #8164

moving-laterally-with-netexec

하는 일

이 도구는 기업 같은 컴퓨터 네트워크를 테스트하고 탐색하는 데 도움을 줍니다. 사용자 이름과 비밀번호 같은 인증 정보가 여러 컴퓨터에서 작동하는지 확인하고, 약점을 찾으며, 통제된 안전한 방식으로 원격 컴퓨터에서 명령을 실행할 수도 있습니다.

사용하는 경우

  • ✓네트워크 보안을 테스트할 허가를 받았고, 인증 정보가 어디까지 접근을 허용하는지 확인하고 싶을 때.
  • ✓많은 계정의 비밀번호를 빠르게 잠기지 않도록 테스트하고 싶을 때.
  • ✓네트워크에 있는 컴퓨터와 사용자에 대한 정보를 찾아야 할 때.

스킬 링크

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/moving-laterally-with-netexec/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/moving-laterally-with-netexec/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“네트워크 192.168.1.0/24의 모든 컴퓨터에서 사용자 'admin'의 비밀번호 'Password123'이 작동하는지 확인해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 도구는 여러 가지 방식(프로토콜)으로 컴퓨터에 연결해 정보를 검증하거나 작업을 수행하려고 합니다. 효율적으로 작동하고 자신의 작업을 기록하도록 설계되어, 다른 시스템에 접근하는 경로를 파악하는 데 도움을 줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Moving Laterally with NetExec

Authorized Use Only: This skill is for authorized penetration testing, red-team engagements, and educational labs only. NetExec authenticates to, executes code on, and extracts credentials from remote hosts. Running it against systems you do not own or lack explicit written authorization to test is illegal under computer-misuse laws (e.g. the US CFAA, UK Computer Misuse Act). Confirm scope and rules of engagement before use.

Overview

NetExec (nxc) is the actively maintained successor to CrackMapExec, a network-service swiss-army knife for assessing and exploiting Windows/Active Directory and Linux environments. It wraps Impacket and other libraries behind a unified CLI so an operator can authenticate against many hosts at once, validate harvested credentials, spray passwords, enumerate shares/users/policies, execute commands, and dump credentials — all while logging cleanly for reporting.

NetExec is protocol-oriented: every invocation starts with a protocol module. As of the 2025 releases it supports smb, winrm, mssql, ldap, ssh, ftp, wmi, rdp, vnc, and nfs. Command execution (-x/-X) is available on SMB, WINRM, SSH, MSSQL, WMI and (since summer 2025) RDP. A built-in module system (-M) adds capabilities such as LAPS retrieval, LSASS dumping via lsassy, BloodHound collection, and share spidering.

For lateral movement specifically, NetExec maps directly to MITRE ATT&CK T1021.002 (Remote Services: SMB/Windows Admin Shares): it authenticates over SMB (port 445), reaches ADMIN$/C$, and uses named-pipe or task-scheduler execution to run code on remote machines. The (Pwn3d!) marker in output signals that the supplied principal has local-admin code-execution rights on a host — the green light for lateral movement.

When to Use

  • During an internal network penetration test after obtaining one or more valid credentials/hashes, to identify every host where those credentials grant admin access.
  • To perform controlled password spraying against a domain while respecting lockout thresholds.
  • To enumerate SMB shares, domain users, password policy, and loggedon sessions across a subnet in one sweep.
  • To execute commands or dump SAM/LSA/NTDS credentials on authorized targets during post-exploitation.
  • To collect BloodHound data or LAPS passwords using NetExec modules instead of separate tooling.

Prerequisites

  • A Linux operator host (Kali/Parrot/Ubuntu). Install via pipx (recommended):
    sudo apt install -y pipx git
    pipx ensurepath
    pipx install git+https://github.com/Pennyw0rth/NetExec
    # verify
    nxc --version
    nxc smb --help
    
  • Docker alternative:
    git clone https://github.com/Pennyw0rth/NetExec
    cd NetExec
    docker build -t netexec .
    docker run --rm -it netexec smb --help
    
  • Network reachability to target ports (445/SMB, 5985-5986/WinRM, 389-636/LDAP, 1433/MSSQL).
  • Valid credentials, NT hashes, or Kerberos tickets within an authorized scope.
  • A signed rules-of-engagement document and knowledge of the account-lockout policy before spraying.

Objectives

  • Validate harvested credentials across a host range and locate (Pwn3d!) admin access.
  • Enumerate shares, users, and password policy over SMB and LDAP.
  • Conduct lockout-safe password spraying with --continue-on-success.
  • Execute commands on authorized hosts and select an appropriate --exec-method.
  • Dump SAM, LSA, and NTDS credentials and collect them into the NetExec workspace.
  • Drive AD attacks (Kerberoasting, ASREPRoast, BloodHound collection) through LDAP modules.

MITRE ATT&CK Mapping

Technique ID Official Name How NetExec Implements It
T1021.002 Remote Services: SMB/Windows Admin Shares Authenticates over SMB to ADMIN$/C$ and executes code on remote hosts (-x, --exec-method)
T1110.003 Brute Force: Password Spraying One password against many accounts with --continue-on-success
T1003.002 OS Credential Dumping: Security Account Manager --sam dumps local SAM hashes
T1003.004 OS Credential Dumping: LSA Secrets --lsa dumps LSA secrets and cached credentials
T1003.006 OS Credential Dumping: DCSync --ntds via drsuapi extracts the domain database
T1558.003 Steal or Forge Kerberos Tickets: Kerberoasting ldap --kerberoasting requests service tickets

…

자주 묻는 질문

이 도구를 사용하려면 허가가 필요한가요?

네, 어떤 네트워크에서든 이 도구를 사용하기 전에 명시적인 서면 허가를 받는 것이 매우 중요합니다. 허가 없이 사용하는 것은 불법입니다.

출력에 나오는 (Pwn3d!)는 무엇을 뜻하나요?

사용한 인증 정보가 해당 컴퓨터에서 관리자 권한을 가지고 있다는 뜻입니다. 이는 네트워크를 더 탐색하기 위한 진입점입니다.

이 도구로 비밀번호를 훔칠 수 있나요?

이 도구는 나중에 분석할 수 있도록 로컬 시스템에서 인증 정보(해시)를 추출할 수 있습니다. 하지만 주된 용도는 허가받은 보안 테스트와 접근 경로 파악입니다.

상세 정보

작성자의 원본 설명

Use NetExec (nxc) to validate credentials, enumerate SMB shares/users/policy, password-spray safely across lockout thresholds, execute commands, and dump SAM/LSA/NTDS credentials across SMB, WinRM, LDAP, MSSQL, SSH, and other protocol modules. Use during authorized internal penetration tests to find lateral-movement paths after obtaining credentials or hashes, or to conduct controlled password spr

repo: mukul975/Anthropic-Cybersecurity-Skills

인기도

GitHub 스타
35k
순위
#8164
라이선스
Apache-2.0
업데이트
2026. 8. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬