
Microsoft Windows용 WMI만 사용하는 명령 셸 래퍼
저영향 조사 및 기타 유사한 활동을 수행할 때 디스크에 기록되거나 눈에 띄는 것을 최소화하고 싶을 수 있습니다.
이 도구를 사용하면 WMI를 통해 명령을 실행하고 이 채널로는 달리 얻을 수 없는 정보를 확보할 수 있습니다.
WMI만 사용하여 다음 작업을 수행하는 소형 유틸리티입니다:
이 도구는 다음으로 구성되어 있습니다:
C:\Data\NCC\!Code\Git.Public\WMIcmd\WMIcmd\bin\Debug>WMIcmd.exe --help
NCC Group WMIcmd 1.0.0.0
Released under AGPL
-h, --host Host (IP address or hostname - default: localhost)
-u, --username Username to authenticate with
-p, --password Password to authenticate with
-d, --domain Domain to authenticate with
-v, --Verbose (Default: False) Prints all messages to standard
output.
-c, --Command (Default: ) Command to run e.g. "nestat-ano"
-s, --CommandSleep (Default: 10000) Command sleep in milliseconds -
increase if getting truncated output
--help Display this help screen.
참고: 관리자 자격 증명을 사용하세요
WMIcmd.exe -h 192.168.1.165 -d hostname -u localadmin -p theirpassword -c "netstat -an"
참고: 관리자 자격 증명을 사용하세요
WMIcmd.exe -h 192.168.1.165 -d domain -u domainadmin -p theirpassword -c "netstat -an"
참고: 관리자 자격 증명을 사용하세요
C:\Data\NCC\!Code\Git.Public\WMIcmd\WMIcmd\bin\Debug>WMIcmd.exe -d win10host -h win10host -u superuser -p password -c "netstat -an"
[!] Connecting with superuser
[i] Connecting to win10host
[i] Connected
[i] Command: netstat -an
[i] Running command...
[i] Getting stdout from registry from SOFTWARE\
[i] Full command output received
Active Connections
Proto Local Address Foreign Address State
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
TCP 0.0.0.0:5357 0.0.0.0:0 LISTENING
TCP 0.0.0.0:5985 0.0.0.0:0 LISTENING
TCP 0.0.0.0:7680 0.0.0.0:0 LISTENING
TCP 0.0.0.0:18800 0.0.0.0:0 LISTENING
TCP 0.0.0.0:47001 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49152 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49153 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49154 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49664 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49665 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49666 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49667 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49668 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49669 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49671 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49713 0.0.0.0:0 LISTENING
.. snip ..