
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 (gopacket) के नए Go कार्यान्वयन का परीक्षण करने के लिए बनाया गया था और यह वास्तव में अच्छा है, और Python को कभी न छूने की दिशा में एक कदम है, जो हमेशा अच्छा है।
इसके अलावा कोई सफाई नहीं है, हो सकता है मैं बाद में जोड़ दूं, पता नहीं।
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