
Go implementation of NoPac, exploiting CVE-2021-42278 and CVE-2021-42287
NoPac 익스플로잇은 CVE-2021-42278 및 CVE-2021-42287과 같은 오래된 취약점을 악용하여 일반 사용자로부터 도메인 관리자를 가장합니다.
더 이상 귀찮은 의존성은 없습니다. 단일 바이너리일 뿐입니다. 세상에, 저는 Go를 사랑합니다. Python은 절대 못 따라옵니다.
-shell 플래그는 impacket-smbexec를 실행합니다. 가장된 계정의 ccache 파일을 그냥 사용할 수도 있습니다.
주로 Impacket의 새로운 Go 구현(gopacket)을 테스트하기 위해 만들었고, 솔직히 꽤 멋집니다. 그리고 Python을 다시는 건드리지 않아도 되는 한 걸음이기도 합니다. 항상 좋은 일이죠.
또한 정리(cleanup) 기능은 없습니다. 나중에 추가할 수도 있고, 모르겠네요.
Usage: ./nopac [options] target
Target:
[[domain/]username[:password]@]<targetName or address>
Authentication:
-aesKey string
AES key to use for Kerberos Authentication (128 or 256 bits)
-hashes string
NTLM hashes, format is LMHASH:NTHASH
-k Use Kerberos authentication
-keytab string
Read keys for SPN from keytab file
-no-pass
don't ask for password (useful for -k)
Connection:
-6 Connect via IPv6
-dc-host string
Hostname of the domain controller
-dc-ip string
IP Address of the domain controller
-port int
Destination port to connect to SMB Server
-proxy string
SOCKS5 proxy URL (e.g. socks5h://127.0.0.1:1080). Routes TCP through the proxy. UDP features are disabled. If unset, ALL_PROXY env is consulted.
-target-ip string
IP Address of the target machine
Tool Specific:
-impersonate string
User to impersonate
-new-name string
New username
-new-pass string
New password
-shell
Launch shell at the end
-use-ldap
Use LDAP instead of LDAPS
Miscellaneous:
-debug
Turn DEBUG output ON
-inputfile string
input file with list of entries
-outputfile string
base output filename
-ts
Adds timestamp to every logging output