Dec 4th 2009
CHOWN 1.1 Crack With Activator 2025

Download CHOWN
-
CHOWN应用程序的设计是小命令行工具,表明它是可以分配一个新的所有者文件的,即使微软称,这是不可能的。 不是第一次执行情况这样一个方案,但源包括在内,所以你可以知道这是怎么运作的。
设置一个新的主人的一个文件,只有普通Win32API调是必要的。 所有你需要做的是:
-启用备份,恢复并取得所有权的特权(与AdjustTokenPrivileges()). 这些通常是授予管理员。 我也使旁遍检查的特权,但我们尚未充分的调查,如果这是真的有必要。
-找希德为新的所有者与GetAccountSid()
-创建一个空安全的描述符用InitializeSecurityDescriptor()
-填写的所有人的安全的描述符用SetSecurityDescriptorOwner(),忽视的集团,ACL和机制
-适用这SD到你想要的文件修改与SetFileSecurity(szCurrentFile,(SECURITY_INFORMATION)(OWNER_SECURITY_INFORMATION),...)
-
CHOWN आवेदन डिजाइन किया गया था होना करने के लिए एक छोटे से कमांड लाइन उपकरण है कि यह दर्शाता है कि यह संभव है करने के लिए आवंटित एक नए मालिक के लिए एक फाइल करने के लिए, यहां तक कि अगर माइक्रोसॉफ्ट का दावा है कि यह असंभव है. नहीं पहले कार्यान्वयन के इस तरह के एक कार्यक्रम है, लेकिन स्रोत शामिल है, तो आप समझ में यह कैसे काम करता है.
स्थापित करने के लिए एक नए मालिक के लिए एक फ़ाइल, केवल साधारण Win32 API कॉल कर रहे हैं की जरूरत है. आप सभी के लिए है है:
- सक्षम बैकअप, बहाल करने और स्वामित्व लेने के विशेषाधिकार (AdjustTokenPrivileges()). इन कर रहे हैं आमतौर पर व्यवस्थापकों के लिए दी है । मैं भी सक्षम बायपास Traverse जाँच कर रहा है विशेषाधिकार है, लेकिन मैं नहीं अभी तक पूरी तरह से जांच की, तो यह वास्तव में आवश्यक है.
- सिड के लिए नए मालिक के साथ GetAccountSid()
- बनाने के लिए एक खाली सुरक्षा डिस्क्रिप्टर के साथ InitializeSecurityDescriptor()
- भरने के मालिक सुरक्षा डिस्क्रिप्टर के साथ SetSecurityDescriptorOwner(), अनदेखी, DACL और SACL
- इस आवेदन एसडी करने के लिए इस फ़ाइल को आप संशोधित करना चाहते हैं के साथ SetFileSecurity(szCurrentFile,(SECURITY_INFORMATION)(OWNER_SECURITY_INFORMATION),...)
-
The CHOWN application was designed to be a small command line tool that demonstrates that it is possible to assign a new owner to a file, even if Microsoft asserts that this is impossible. Not the first implementation of such a program, but source is included, so you may understand how this works.
To set a new owner of a file, only ordinary Win32 API calls are needed. All you have to do is:
- enable the Backup, Restore and Take Ownership privileges (with AdjustTokenPrivileges()). These are usually granted to Administrators. I also enable the Bypass Traverse Checking privilege, but I have not yet fully investigated if this is really necessary.
- find the SID for the new owner with GetAccountSid()
- create an empty Security Descriptor with InitializeSecurityDescriptor()
- fill the owner of the Security Descriptor with SetSecurityDescriptorOwner(), ignore group, DACL and SACL
- apply this SD to the file you want to modify with SetFileSecurity(szCurrentFile,(SECURITY_INFORMATION)(OWNER_SECURITY_INFORMATION),...)
Leave a reply
Your email will not be published. Required fields are marked as *