
تنفيذ بلغة Go لأداة NoPac، يستغل CVE-2021-42278 وCVE-2021-42287
أداة NoPac، تستغل بعض الثغرات القديمة CVE-2021-42278 و CVE-2021-42287 لانتحال صفة مسؤول المجال من مستخدم عادي.
لا مزيد من التبعيات المزعجة، مجرد ملف ثنائي واحد، يا إلهي أحب Go، Python لم تستطع أبدًا.
العلامة -shell تقوم فقط بتشغيل impacket-smbexec. يمكنك أيضًا استخدام ملف ccache للحساب المنتحل على أي حال.
صنعت هذا بشكل أساسي لاختبار تطبيق Go الجديد لـ Impacket (gopacket) وهو رائع حقًا، وخطوة نحو عدم الاضطرار إلى لمس 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