Skip to content
KitploitKITPLOIT
أدواتالمدونة
إرسال
أدواتالمدونة
إرسال

أدوات الاختراق واختبار الاختراق والأمن السيبراني لترسانتك الأمنية!

Kitploit هو دليل لأدوات الاختراق والأمن السيبراني واختبار الاختراق. اكتشف آخر تحديثات المشاريع للعثور على الثغرات وتحليل الأنظمة وأتمتة الاختبارات وتعزيز أمنك.

··الخلاصات·اتصال·الخصوصية·© 2026 Kitploit

دليل الأدوات

الفئات

عرض جميع الفئات
Loading categories
MoreImpacketExamples — مزيد من الأمثلة باستخدام مكتبة Impacket مصممة لأغراض التعلم. | Kitploit
أدوات/GitHubGitHub/icyguider/moreimpacketexamples
الحركة الجانبيةتسريب البياناتما بعد الاستغلالالتعلم والتعليمالفريق الأحمرتطوير الحمولات
GitHubicyguider/moreimpacketexamples

MoreImpacketExamples

مزيد من الأمثلة باستخدام مكتبة Impacket مصممة لأغراض التعلم.

عرض المستودع
26824منذ 3 سنواتتمت المراجعة من قبل Kitploit

الأكثر شعبية

عرض الكل →

اكتشف الأدوات الأكثر استخدامًا من قبل مجتمعنا.

استكشف جميع الأدوات

تصفح مجموعتنا من الأدوات

عرض جميع الأدوات →
مشاركة

MoreImpacketExamples

يحتوي هذا المستودع على عدد قليل من نصوص بايثون القصيرة التي أُنشئت باستخدام مكتبة Impacket. الهدف الأساسي من هذا المشروع هو مساعدة نفسي والآخرين الذين يتطلعون إلى الانتقال من استخدام أمثلة impacket المتوفرة إلى تعديل/إنشاء نصوص خاصة بهم. هذه النصوص ليست بالضرورة محسّنة من حيث الفائدة أو اعتبارات OPSEC، ومع ذلك حاولت جعلها ديناميكية قدر الإمكان في حال أراد أي شخص تغيير سلوكها الافتراضي.

remote_ssp_dump intro gif

wmi_reg_exec.py

تم تصميم سكربت wmi_reg_exec.py لتنفيذ ملف حصريًا عبر WMI عن طريق الكتابة في سجل ويندوز. يقوم بذلك أولاً بكتابة الملف المُرمّز بـ base64 إلى موقع سجل محدد مع تجاوز لـ PowerShell AMSI/ETW. ثم يتم استخدام PowerShell stager لتنفيذ تجاوز AMSI/ETW والملف المحدد في الذاكرة بشكل انعكاسي. ملفات C# الثنائية مدعومة 'أصليًا' طالما أن مساحة الأسماء الرئيسية والصنف والطريقة كلها متاحة للعموم. إذا لم يتم توفيرها، سيحاول السكربت تلقائيًا تخمين مساحة الأسماء بناءً على اسم الملف. إذا تم توفير ملف غير تابع لـ .NET، يتم أولاً تحويله إلى شيل كود باستخدام @s4ntiago_p فرع Donut لاستدعاءات النظام ثم إدراجه في @Snovvcrash الحاقن الذاتي C# D/Invoke. ثم يتم تجميع الحاقن الذاتي باستخدام MCS واستخدامه مثل أي ملف C# ثنائي آخر.

شاهد العرض التوضيحي لـ .NET عرض توضيحي لـ wmi_reg_exec.py .NET
شاهد العرض التوضيحي لـ PE عرض توضيحي لـ wmi_reg_exec.py PE
root@kitploit:~
usage: wmi_reg_exec.py [-h] [-f file] [-a args] [-n namespace] [-r key] [-p patch] [-rp remotePath] [-nooutput] [-H hash] [-k]
                       [-dc-ip IPAddress]
                       target

Store exe in registry and execute via powershell

positional arguments:
  target                Target host to execute file on

optional arguments:
  -h, --help            show this help message and exit
  -f file, -file file   File to execute
  -a args, -args args   Command line arguments for file
  -n namespace, -namespace namespace
                        Namespace.Class containing main method to execute (Ex: Rubeus.Program)
  -r key, -reg-key key  Registry key to write file to (Default: HKLM\Software\Microsoft\Edge)
  -p patch, -patch patch
                        File containing AMSI/ETW patch to perform before execution
  -rp remotePath, -remote-path remotePath
                        The remote path to write files to (Default: C:\Windows\Temp)
  -nooutput             Do not attempt to get/print output

authentication:
  -H hash, -hash hash   NTHash for login via PtH
  -k                    Use Kerberos authentication with credentials from the KRB5CCNAME ccache file
  -dc-ip IPAddress      IP Address of the domain controller (useful for Kerberos auth)

dll_proxy_exec.py

تم تصميم سكربت dll_proxy_exec.py لتنفيذ ملف DLL معين باستخدام LOLBin عبر اختطاف DLL/الوكالة/التحميل الجانبي/أياً كان تسميتك له. سيتم أولاً رفع ملف DLL المحدد إلى الهدف عبر SMB. ثم سيقوم السكربت بنسخ ملف exe المحدد من System32 إلى نفس المجلد الذي يحتوي ملف DLL المُرفع. أخيرًا، سيتم تنفيذ ملف exe من System32 من الموقع الجديد، مما يؤدي إلى تحميل/تنفيذ ملف DLL المحدد.

شاهد العرض التوضيحي عرض توضيحي لـ dll_proxy_exec.py
root@kitploit:~
usage: dll_proxy_exec.py [-h] [-f file] [-e exe] [-output] [-H hash] [-k] [-dc-ip IPAddress] [-rp remotePath] target

Execute file via DLL proxying on a remote host.

positional arguments:
  target                [[domain/]username[:password]@]<hostname or address>

optional arguments:
  -h, --help            show this help message and exit
  -f file, -file file   DLL file to execute
  -e exe, -exe exe      System32 EXE used to execute DLL file
  -output               Attempt to get output
  -rp remotePath, -remote-path remotePath
                        The remote path to write files to (Default: C:\Windows\Temp)

authentication:
  -H hash, -hash hash   NTHash for login via PtH
  -k                    Use Kerberos authentication with credentials from the KRB5CCNAME ccache file
  -dc-ip IPAddress      IP Address of the domain controller (useful for Kerberos auth)

remote_ssp_dump.py

تم تصميم سكربت remote_ssp_dump.py لتفريغ بيانات الاعتماد من LSASS من مضيف بعيد باستخدام DLL الخاصة بـ Nanodump لوحدة SSP. افتراضيًا، سيستخدم السكربت DLL واللودر غير المعدلين، والموجودين مضمّنين في الملف. بدلاً من ذلك، سيستخدم السكربت DLL أو لودر معدلًا إذا كان موجودًا في الدليل الحالي بأسمائهما القياسية (nanodump_ssp.x64.dll و load_ssp.x64.exe على التوالي). عند التنفيذ، سيقوم السكربت برفع DLL واللودر إلى الهدف، وتنفيذ اللودر، وتنزيل تفريغ LSASS، وتحليله لاستخراج التجزئات باستخدام Pypykatz. بالإضافة إلى ذلك، تم دمج هذا السكربت مع سكربتي wmi_reg_exec.py و dll_proxy_exec.py، مما يتيح طرقًا مختلفة لتنفيذ لودر SSP.

شاهد العرض التوضيحي عرض توضيحي لـ remote_ssp_dump.py
root@kitploit:~
usage: remote_ssp_dump.py [-h] [-t timeout] [-rp remotePath] [-re] [-dp] [-f dll] [-e exe] [-r key] [-H hash] [-k]
                          [-dc-ip IPAddress]
                          target

Dump creds from LSASS remotely using Nanodump SSP

positional arguments:
  target                [[domain/]username[:password]@]<hostname or address>

optional arguments:
  -h, --help            show this help message and exit
  -t timeout, -timeout timeout
                        Timeout in seconds to wait for LSASS dump file to be created (Default: 3)
  -rp remotePath, -remote-path remotePath
                        The remote path to write files to (Default: C:\Windows\Temp)
  -re, -reg-exec        Execute SSP loader by writing it to the registry and executing it in memory with PowerShell
  -dp, -dll-proxy       Execute SSP loader via DLL Proxying (See below for options)

dll proxying options:
  -f dll, -file dll     DLL file to execute
  -e exe, -exe exe      System32 EXE used to execute DLL file

registry execute options:
  -r key, -reg-key key  Registry key to write file to (Default: HKLM\Software\Microsoft\Edge)

authentication:
  -H hash, -hash hash   NTHash for login via PtH
  -k                    Use Kerberos authentication with credentials from the KRB5CCNAME ccache file
  -dc-ip IPAddress      IP Address of the domain controller (useful for Kerberos auth)

dump_ntds_creds.py

تم تصميم سكربت dump_ntds_creds.py لتفريغ وسرقة وتحليل جميع تجزئات المجال من وحدة تحكم مجال مستهدفة. يقوم أولاً بتنفيذ أداة LOLBin ntdsutil.exe عبر WMI لإنشاء التفريغ ثم يقوم بتنزيل الملفات الناتجة ntds.dit و SYSTEM و SECURITY عبر SMB. بعد ذلك، سيحلل جميع بيانات اعتماد المجال من الملف المُفرغ ويحفظ النتائج في ملف.

شاهد العرض التوضيحي عرض توضيحي لـ dump_ntds_creds.py
root@kitploit:~
usage: dump_ntds_creds.py [-h] [-nooutput] [-o filename] [-H hash] [-k] [-dc-ip IPAddress] [-rp remotePath] target

Dump NTDS.dit file, exfiltrate, and parse locally.

positional arguments:
  target                [[domain/]username[:password]@]<hostname or address>

optional arguments:
  -h, --help            show this help message and exit
  -nooutput             Do not print dumped hashes to console
  -o filename, -outfile filename
                        Name to save output files with (Default: DomainDump)
  -rp remotePath, -remote-path remotePath
                        The remote path to write files to (Default: C:\Windows\Temp)

authentication:
  -H hash, -hash hash   NTHash for login via PtH
  -k                    Use Kerberos authentication with credentials from the KRB5CCNAME ccache file
  -dc-ip IPAddress      IP Address of the domain controller (useful for Kerberos auth)

المشكلات المعروفة

  • لا يمكن لسكربت wmi_reg_exec.py الحصول على مخرجات ملف PE غير تابع لـ .NET دون الكتابة على القرص. إذا كنت تريد محاولة الحصول على المخرجات في هذه الحالة، يجب أن يجعل ملف PE نفسه يكتب مخرجاته باستخدام اسم الملف المحدد في السكربت. يمكن أن يكون هذا مضمّنًا بشكل ثابت في ملف PE، أو يمكن توفيره عبر الخيار -a في السكربت إذا كان PE يحتوي بالفعل على وسيط لكتابة مخرجاته إلى ملف. على سبيل المثال، انظر إلى صورة "مثال PE التوضيحي" المتحركة التي توضح هذه العملية مع Mimikatz.
  • الطريقة التي يكتب بها سكربت wmi_reg_exec.py إلى السجل بطيئة. من خلال اختباراتي، قد يستغرق الأمر أكثر من 4 دقائق لكل ميغابايت. لست متأكدًا حقًا من سبب ذلك. إذا كنت تعرف طريقة لتسريعها دون الحاجة إلى إعادة كتابة السكربت بالكامل، فطلبات السحب مرحب بها دائمًا. :)

الشكر والتقدير:

  • @SecureAuthCorp لمشروعهم Impacket، الذي يستخدمه هذا المشروع بأكمله للتفاعل مع خدمات ويندوز: https://github.com/SecureAuthCorp/impacket
  • @s4ntiago_p لمشروعهم NanoDump، المستخدم في سكربت remote_ssp_dump.py: https://github.com/helpsystems/nanodump
  • @s4ntiago_p مرة أخرى لفرع Donut المخصص لاستدعاءات النظام، المستخدم في سكربت wmi_reg_exec.py: https://github.com/S4ntiagoP/donut/tree/syscalls
  • @snovvcrash للحاقن الذاتي C# D/Invoke الخاص بهم، المستخدم في سكربت wmi_reg_exec.py: https://twitter.com/snovvcrash/status/1558837027122167810
تنزيل الأداة