
Implementazione in Go di NoPac, che sfrutta CVE-2021-42278 e CVE-2021-42287
NoPac, un exploit che sfrutta alcune vecchie vulnerabilità CVE-2021-42278 e CVE-2021-42287 per impersonare un amministratore di dominio da un utente standard.
Niente più fastidiose dipendenze, solo un singolo binario, porca miseria, amo Go, Python non potrebbe MAI.
Il flag -shell avvia semplicemente impacket-smbexec. Puoi anche semplicemente usare il file ccache per l'account impersonato, comunque.
L'ho fatto principalmente per testare la nuova implementazione in Go di Impacket (gopacket) ed è davvero figa, onestamente, e un passo verso il non dover toccare mai più Python, il che è sempre un bene.
Inoltre non c'è nessuna cleanup, potrei aggiungerla più tardi, non so.
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