Showing preview only (1,692K chars total). Download the full file or copy to clipboard to get everything.
Repository: objective-see/LuLu
Branch: master
Commit: a94454383c84
Files: 171
Total size: 1.6 MB
Directory structure:
gitextract_0dvkl5nv/
├── .github/
│ └── FUNDING.yml
├── .gitignore
├── DMG/
│ ├── LuLu.icns
│ └── createDMG.sh
├── LICENSE.md
├── LuLu/
│ ├── App/
│ │ ├── 3rd-party/
│ │ │ ├── OrderedDictionary.h
│ │ │ └── OrderedDictionary.m
│ │ ├── AboutWindowController.h
│ │ ├── AboutWindowController.m
│ │ ├── AddRuleWindowController.h
│ │ ├── AddRuleWindowController.m
│ │ ├── AlertWindowController.h
│ │ ├── AlertWindowController.m
│ │ ├── App.entitlements
│ │ ├── AppDelegate.h
│ │ ├── AppDelegate.m
│ │ ├── Assets.xcassets/
│ │ │ ├── Ancestry.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── AppIcon.appiconset/
│ │ │ │ └── Contents.json
│ │ │ ├── Contents.json
│ │ │ ├── FriendsFleet.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── FriendsHuntress.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── FriendsJamf.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── FriendsKandji.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── FriendsMacPaw.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── FriendsMalwarebytes.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── FriendsPANW.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── FriendsSophos.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── FriendsiVerify.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── Heart.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── Icon.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── InstallAllow.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── InstallApprove.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── InstallApprove_OLD.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── InstallAuth.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── InstallBlocked.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── LuLuText.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── PrefsList.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── PrefsMode.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── PrefsProfiles.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── PrefsRules.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── PrefsUpdate.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── RulesAllow.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── RulesBlock.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── RulesSystem.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── Signed.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── SignedApple.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── SignedUnknown.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── StatusActive.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── StatusInactive.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── Unsigned.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── VTIcon.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── allow.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── block.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── refresh.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── rulesRecent.imageset/
│ │ │ │ └── Contents.json
│ │ │ └── rulesUnknown.imageset/
│ │ │ └── Contents.json
│ │ ├── Base.lproj/
│ │ │ ├── AboutWindow.xib
│ │ │ ├── AddRule.xib
│ │ │ ├── AlertWindow.xib
│ │ │ ├── ItemPaths.xib
│ │ │ ├── MainMenu.xib
│ │ │ ├── Preferences.xib
│ │ │ ├── Rules.xib
│ │ │ ├── StartupWindowController.xib
│ │ │ ├── StatusBarPopover.xib
│ │ │ ├── UpdateWindow.xib
│ │ │ └── Welcome.xib
│ │ ├── Configure.h
│ │ ├── Configure.m
│ │ ├── Extension.h
│ │ ├── Extension.m
│ │ ├── Info.plist
│ │ ├── InfoPlist.xcstrings
│ │ ├── ItemPathsWindowController.h
│ │ ├── ItemPathsWindowController.m
│ │ ├── NSApplicationKeyEvents.h
│ │ ├── NSApplicationKeyEvents.m
│ │ ├── ParentsWindowController.h
│ │ ├── ParentsWindowController.m
│ │ ├── PrefsWindowController.h
│ │ ├── PrefsWindowController.m
│ │ ├── RuleRow.h
│ │ ├── RuleRow.m
│ │ ├── RulesMenuController.h
│ │ ├── RulesMenuController.m
│ │ ├── RulesWindowController.h
│ │ ├── RulesWindowController.m
│ │ ├── SigningInfoViewController.h
│ │ ├── SigningInfoViewController.m
│ │ ├── StartupWindowController.h
│ │ ├── StartupWindowController.m
│ │ ├── StatusBarItem.h
│ │ ├── StatusBarItem.m
│ │ ├── StatusBarPopoverController.h
│ │ ├── StatusBarPopoverController.m
│ │ ├── Update.h
│ │ ├── Update.m
│ │ ├── UpdateWindowController.h
│ │ ├── UpdateWindowController.m
│ │ ├── WelcomeWindowController.h
│ │ ├── WelcomeWindowController.m
│ │ ├── XPCDaemonClient.h
│ │ ├── XPCDaemonClient.m
│ │ ├── XPCUser.h
│ │ ├── XPCUser.m
│ │ ├── instructions.psd
│ │ ├── main.m
│ │ ├── mul.lproj/
│ │ │ ├── AboutWindow.xcstrings
│ │ │ ├── AddRule.xcstrings
│ │ │ ├── AlertWindow.xcstrings
│ │ │ ├── ItemPaths.xcstrings
│ │ │ ├── MainMenu.xcstrings
│ │ │ ├── Preferences.xcstrings
│ │ │ ├── Rules.xcstrings
│ │ │ ├── StartupWindowController.xcstrings
│ │ │ ├── StatusBarPopover.xcstrings
│ │ │ ├── UpdateWindow.xcstrings
│ │ │ └── Welcome.xcstrings
│ │ └── patrons.txt
│ ├── Extension/
│ │ ├── Alerts.h
│ │ ├── Alerts.m
│ │ ├── Binary.h
│ │ ├── Binary.m
│ │ ├── BlockOrAllowList.h
│ │ ├── BlockOrAllowList.m
│ │ ├── Extension.entitlements
│ │ ├── FilterDataProvider.h
│ │ ├── FilterDataProvider.m
│ │ ├── GrayList.h
│ │ ├── GrayList.m
│ │ ├── Info.plist
│ │ ├── Preferences.h
│ │ ├── Preferences.m
│ │ ├── Process.h
│ │ ├── Process.m
│ │ ├── Profiles.h
│ │ ├── Profiles.m
│ │ ├── Rules.h
│ │ ├── Rules.m
│ │ ├── XPCDaemon.h
│ │ ├── XPCDaemon.m
│ │ ├── XPCListener.h
│ │ ├── XPCListener.m
│ │ ├── XPCUserClient.h
│ │ ├── XPCUserClient.m
│ │ ├── main.h
│ │ ├── main.m
│ │ └── procInfo.h
│ ├── LuLu.xcodeproj/
│ │ ├── project.pbxproj
│ │ ├── project.xcworkspace/
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata/
│ │ │ └── IDEWorkspaceChecks.plist
│ │ └── xcshareddata/
│ │ └── xcschemes/
│ │ ├── Extension.xcscheme
│ │ └── LuLu.xcscheme
│ ├── Shared/
│ │ ├── Localizable.xcstrings
│ │ ├── Rule.h
│ │ ├── Rule.m
│ │ ├── XPCDaemonProto.h
│ │ ├── XPCUserProto.h
│ │ ├── consts.h
│ │ ├── signing.h
│ │ ├── signing.m
│ │ ├── utilities.h
│ │ └── utilities.m
│ └── Tests/
│ ├── README.md
│ ├── run_passive_mode_tests.sh
│ └── test_passive_mode_improvements.m
├── README.md
├── README_zh-Hans.md
├── README_zh-Hant.md
└── lulu.xcworkspace/
├── contents.xcworkspacedata
└── xcshareddata/
└── IDEWorkspaceChecks.plist
================================================
FILE CONTENTS
================================================
================================================
FILE: .github/FUNDING.yml
================================================
# These are supported funding model platforms
github: objective-see
patreon: objective_see
================================================
FILE: .gitignore
================================================
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
## macOS
.DS_Store
## Build generated
build/
DerivedData/
## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/
## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint
## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM
# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
Carthage/Build
Carthage/Checkouts
DMG/Release/*
DMG/LuLu.app
DMG/*.dmg
DMG/background.psd
LuLu/Binaries/
================================================
FILE: DMG/createDMG.sh
================================================
VERSION=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "Release/LuLu.app/Contents/Info.plist")
printf "\nCreating LuLu Disk Image...\n\n"
create-dmg \
--volname "LuLu v$VERSION" \
--volicon "LuLu.icns" \
--background "background.png" \
--window-pos 200 120 \
--window-size 800 400 \
--icon-size 100 \
--icon "LuLu.app" 200 190 \
--hide-extension "LuLu.app" \
--app-drop-link 600 190 \
"LuLu_$VERSION.dmg" \
"Release/"
printf "\nCode signing dmg...\n"
codesign --force --sign "Developer ID Application: Objective-See, LLC (VBG97UB4TA)" LuLu_$VERSION.dmg
printf "Done!\n"
================================================
FILE: LICENSE.md
================================================
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
================================================
FILE: LuLu/App/3rd-party/OrderedDictionary.h
================================================
//
// OrderedDictionary.h
// OrderedDictionary
//
// Created by Matt Gallagher on 19/12/08.
// Copyright 2008 Matt Gallagher. All rights reserved.
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software. Permission is granted to anyone to
// use this software for any purpose, including commercial applications, and to
// alter it and redistribute it freely, subject to the following restrictions:
//
// 1. The origin of this software must not be misrepresented; you must not
// claim that you wrote the original software. If you use this software
// in a product, an acknowledgment in the product documentation would be
// appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
// misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source
// distribution.
//
@import Cocoa;
@interface OrderedDictionary : NSMutableDictionary
{
NSMutableDictionary *dictionary;
NSMutableArray *array;
}
/* METHODS */
-(void)reverse;
-(id)keyAtIndex:(NSUInteger)anIndex;
-(void)insertObject:(id)anObject forKey:(id)aKey atIndex:(NSUInteger)anIndex;
@end
================================================
FILE: LuLu/App/3rd-party/OrderedDictionary.m
================================================
//
// OrderedDictionary.m
// OrderedDictionary
//
// Created by Matt Gallagher on 19/12/08.
// Copyright 2008 Matt Gallagher. All rights reserved.
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software. Permission is granted to anyone to
// use this software for any purpose, including commercial applications, and to
// alter it and redistribute it freely, subject to the following restrictions:
//
// 1. The origin of this software must not be misrepresented; you must not
// claim that you wrote the original software. If you use this software
// in a product, an acknowledgment in the product documentation would be
// appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
// misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source
// distribution.
//
#import "Consts.h"
#import "OrderedDictionary.h"
NSString *DescriptionForObject(NSObject *object, id locale, NSUInteger indent)
{
NSString *objectString;
if ([object isKindOfClass:[NSString class]])
{
objectString = (NSString *)object;
}
else if ([object respondsToSelector:@selector(descriptionWithLocale:indent:)])
{
objectString = [(NSDictionary *)object descriptionWithLocale:locale indent:indent];
}
else if ([object respondsToSelector:@selector(descriptionWithLocale:)])
{
objectString = [(NSSet *)object descriptionWithLocale:locale];
}
else
{
objectString = [object description];
}
return objectString;
}
@implementation OrderedDictionary
-(id)init
{
self = [super init];
if (self != nil)
{
dictionary = [NSMutableDictionary dictionary];
array = [NSMutableArray array];
}
return self;
}
-(id)copy
{
return [self mutableCopy];
}
-(id)mutableCopy
{
OrderedDictionary* copy = nil;
copy = [[OrderedDictionary alloc] init];
copy->array = [array mutableCopy];
copy->dictionary = [dictionary mutableCopy];
return copy;
}
-(void)reverse
{
[array setArray:[[array reverseObjectEnumerator] allObjects]];
}
-(void)setObject:(id)anObject forKey:(id)aKey
{
if(![dictionary objectForKey:aKey])
{
//
[array addObject:aKey];
}
[dictionary setObject:anObject forKey:aKey];
}
-(void)removeObjectForKey:(id)aKey
{
[dictionary removeObjectForKey:aKey];
[array removeObject:aKey];
}
- (NSUInteger)count
{
return [dictionary count];
}
-(id)objectForKey:(id)aKey
{
return [dictionary objectForKey:aKey];
}
-(NSEnumerator *)keyEnumerator
{
return [array objectEnumerator];
}
-(void)insertObject:(id)anObject forKey:(id)aKey atIndex:(NSUInteger)anIndex
{
//remove old object
if([dictionary objectForKey:aKey])
{
//remove
[self removeObjectForKey:aKey];
}
//adding at end?
// just append item
if(array.count == anIndex)
{
//add
[array addObject:aKey];
}
//insert object
else
{
//insert
[array insertObject:aKey atIndex:anIndex];
}
//add to dictionary
[dictionary setObject:anObject forKey:aKey];
}
-(id)keyAtIndex:(NSUInteger)anIndex
{
//object
id item = nil;
if((nil == array) ||
(anIndex >= array.count))
{
//bail
goto bail;
}
//extract item
item = [array objectAtIndex:anIndex];
bail:
return item;
}
@end
================================================
FILE: LuLu/App/AboutWindowController.h
================================================
//
// file: AboutWindowController.h
// project: lulu (main app)
// description: 'about' window controller (header)
//
// created by Patrick Wardle
// copyright (c) 2017 Objective-See. All rights reserved.
//
@import Cocoa;
@interface AboutWindowController : NSWindowController <NSWindowDelegate>
{
}
/* PROPERTIES */
//version label/string
@property (weak) IBOutlet NSTextField *versionLabel;
//patrons
@property (unsafe_unretained) IBOutlet NSTextView *patrons;
/* METHODS */
//automatically invoked when user clicks any of the buttons
// ->perform actions, such as loading patreon or products URL
-(IBAction)buttonHandler:(id)sender;
@end
================================================
FILE: LuLu/App/AboutWindowController.m
================================================
//
// file: AboutWindowController.m
// project: lulu (main app)
// description: 'about' window controller
//
// created by Patrick Wardle
// copyright (c) 2017 Objective-See. All rights reserved.
//
#import "consts.h"
#import "utilities.h"
#import "AboutWindowController.h"
@implementation AboutWindowController
@synthesize patrons;
@synthesize versionLabel;
//automatically called when nib is loaded
// ->center window
-(void)awakeFromNib
{
//center
[self.window center];
}
//automatically invoked when window is loaded
// set to window to white, set app version, patrons, etc
-(void)windowDidLoad
{
//version
NSString* version = nil;
//super
[super windowDidLoad];
//not in dark mode?
// make window white
if(YES != isDarkMode())
{
//make white
self.window.backgroundColor = NSColor.whiteColor;
}
//grab app version
version = getAppVersion();
if(nil == version)
{
//default
version = NSLocalizedString(@"unknown", @"unknown");
}
//set version sting
self.versionLabel.stringValue = [NSString stringWithFormat:NSLocalizedString(@"Version: %@", @"Version: %@"), version];
//load patrons
self.patrons.string = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"patrons" ofType:@"txt"] encoding:NSUTF8StringEncoding error:NULL];
if(nil == self.patrons.string)
{
//default
self.patrons.string = NSLocalizedString(@"ERROR: failed to load patrons", @"ERROR: failed to load patrons");
}
return;
}
//automatically invoked when window is closing
// ->make window unmodal
-(void)windowWillClose:(NSNotification *)notification
{
//make un-modal
[[NSApplication sharedApplication] stopModal];
return;
}
//automatically invoked when user clicks any of the buttons
// perform actions, such as loading patreon or products URL
-(IBAction)buttonHandler:(id)sender
{
//support us button
if(((NSButton*)sender).tag == BUTTON_SUPPORT_US)
{
//open URL
// invokes user's default browser
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:PATREON_URL]];
}
//more info button
else if(((NSButton*)sender).tag == BUTTON_MORE_INFO)
{
//open URL
// invokes user's default browser
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:PRODUCT_URL]];
}
return;
}
@end
================================================
FILE: LuLu/App/AddRuleWindowController.h
================================================
//
// file: AddRuleWindowController.h
// project: lulu
// description: 'add/edit rule' window controller (header)
//
// created by Patrick Wardle
// copyright (c) 2017 Objective-See. All rights reserved.
//
@import Cocoa;
@import OSLog;
#import "Rule.h"
@interface AddRuleWindowController : NSWindowController <NSTextFieldDelegate>
/* PROPERTIES */
//app/binary icon
@property (weak) IBOutlet NSImageView *icon;
//path to app/binary
@property (weak) IBOutlet NSTextField *path;
//endpoint address
@property (weak) IBOutlet NSTextField *endpointAddr;
//but indicating endpoint addr is a regex
@property (weak) IBOutlet NSButton *isEndpointAddrRegex;
//endpoint port
@property (weak) IBOutlet NSTextField *endpointPort;
//'add' button
@property (weak) IBOutlet NSButton *addButton;
//block button
@property (weak) IBOutlet NSButton *blockButton;
//allow button
@property (weak) IBOutlet NSButton *allowButton;
//(existing) rule
@property (nonatomic, retain)Rule* rule;
//info (to create/update rule)
@property(nonatomic, retain) NSDictionary* info;
/* METHODS */
//'block'/'allow' button handler
// just needed so buttons will toggle
-(IBAction)radioButtonsHandler:(id)sender;
//'browse' button handler
// open a panel for user to select file
-(IBAction)browseButtonHandler:(id)sender;
//'cancel' button handler
// returns NSModalResponseCancel
-(IBAction)cancelButtonHandler:(id)sender;
//'add' button handler
// returns NSModalResponseOK
-(IBAction)addButtonHandler:(id)sender;
@end
================================================
FILE: LuLu/App/AddRuleWindowController.m
================================================
//
// file: AddRuleWindowController.h
// project: lulu
// description: 'add/edit rule' window controller
//
// created by Patrick Wardle
// copyright (c) 2017 Objective-See. All rights reserved.
//
#import "consts.h"
#import "utilities.h"
#import "AddRuleWindowController.h"
/* GLOBALS */
//log handle
extern os_log_t logHandle;
@implementation AddRuleWindowController
@synthesize rule;
//automatically called when nib is loaded
// center window, set some defaults such as icon
-(void)awakeFromNib
{
//set icon
self.icon.image = [[NSWorkspace sharedWorkspace] iconForFileType: NSFileTypeForHFSTypeCode(kGenericApplicationIcon)];
//resize
[self.icon.image setSize:NSMakeSize(128, 128)];
//set delegate for process path text field
self.path.delegate = self;
//existing rule?
// prepopulate fields
if(nil != self.rule)
{
//set title
self.window.title = @"Edit Exiting Rule";
//path
self.path.stringValue = self.rule.path;
//endpoint addr
self.endpointAddr.stringValue = self.rule.endpointAddr;
//regex button
if(YES == self.rule.isEndpointAddrRegex)
{
//on
self.isEndpointAddrRegex.state = NSControlStateValueOn;
}
//endpoint port
self.endpointPort.stringValue = self.rule.endpointPort;
//block?
if(RULE_STATE_BLOCK == self.rule.action.intValue)
{
//set
self.blockButton.state = NSControlStateValueOn;
}
//allow?
else
{
//set
self.allowButton.state = NSControlStateValueOn;
}
//configure 'add' button
self.addButton.title = NSLocalizedString(@"Update", @"Update");
//enable 'add' button
self.addButton.enabled = YES;
//make add/edit button first responder
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (100 * NSEC_PER_MSEC)), dispatch_get_main_queue(), ^{
//set first responder
[self.window makeFirstResponder:self.addButton];
});
}
//no rule
// just init some defaults
else
{
//'add' button should be disabled
// ...until user enters an app/binary
self.addButton.enabled = NO;
}
return;
}
//automatically called when editing start
// update UI by resetting icon and disabling 'add' button
-(void)controlTextDidBeginEditing:(NSNotification *)obj
{
//reset icon
self.icon.image = [[NSWorkspace sharedWorkspace]
iconForFileType: NSFileTypeForHFSTypeCode(kGenericApplicationIcon)];
//resize
[self.icon.image setSize:NSMakeSize(128, 128)];
//disable 'add' button
self.addButton.enabled = NO;
return;
}
//automatically called when text changes
// invoke helper to set icon, and enable/select 'add' button
-(void)controlTextDidChange:(NSNotification *)notification
{
//ignore everything but process path
if([notification object] != self.path)
{
//bail
goto bail;
}
//update
[self updateUI];
bail:
return;
}
//automatically called when 'enter' is hit
// invoke helper to set icon, and enable/select 'add' button
-(void)controlTextDidEndEditing:(NSNotification *)notification
{
//ignore everything but process path
if([notification object] != self.path)
{
//bail
goto bail;
}
//update
[self updateUI];
//make 'add' selected
[self.window makeFirstResponder:self.addButton];
bail:
return;
}
//'block'/'allow' button handler
// just needed so buttons will toggle
-(IBAction)radioButtonsHandler:(id)sender
{
return;
}
//'browse' button handler
// open a panel for user to select file
-(IBAction)browseButtonHandler:(id)sender
{
//'browse' panel
NSOpenPanel *panel = nil;
//response to 'browse' panel
NSInteger response = 0;
//init panel
panel = [NSOpenPanel openPanel];
//allow files
panel.canChooseFiles = YES;
//allow directories (app bundles)
panel.canChooseDirectories = YES;
//can open app bundles
panel.treatsFilePackagesAsDirectories = YES;
//start in /Apps
panel.directoryURL = [NSURL fileURLWithPath:@"/Applications"];
//disable multiple selections
panel.allowsMultipleSelection = NO;
//show it
response = [panel runModal];
//ignore cancel
if(NSModalResponseCancel == response)
{
//bail
goto bail;
}
//set text
self.path.stringValue = panel.URL.path;
//update UI
[self updateUI];
//make 'add' selected
[self.window makeFirstResponder:self.addButton];
bail:
return;
}
//'cancel' button handler
// close sheet, returning NSModalResponseCancel
-(IBAction)cancelButtonHandler:(id)sender
{
//dbg msg
os_log_debug(logHandle, "user clicked: %{public}@", ((NSButton*)sender).title);
//stop/cancel
[NSApp stopModalWithCode:NSModalResponseCancel];
//close
[self.window close];
return;
}
//'add' button handler
// close sheet, returning NSModalResponseOK
-(IBAction)addButtonHandler:(id)sender
{
//response
NSModalResponse response = NSModalResponseAbort;
//path
NSMutableString* path = nil;
//flag
BOOL exists = NO;
//flag
BOOL isDirectory = NO;
//(remote) endpoint addr
NSString* endpointAddr = nil;
//flag
NSNumber* endpointAddrRegex = nil;
//(remote) endpoint addr
NSString* endpointPort = nil;
//action
NSNumber* action = nil;
//error
NSError* error = nil;
//dbg msg
os_log_debug(logHandle, "user clicked: %{public}@", ((NSButton*)sender).title);
//init path
// and check
path = [self.path.stringValue mutableCopy];
if(0 == path.length)
{
//bail
goto bail;
}
//set flags
// exists/is directory
exists = [NSFileManager.defaultManager fileExistsAtPath:path isDirectory:&isDirectory];
//if its a directory (but not bundle)
// add '/*' to make it directory rule
if( (YES == isDirectory) &&
(nil == [NSBundle bundleWithPath:path]))
{
//no '/'?
// ...append it
if(YES != [path hasSuffix:@"/"])
{
//append
[path appendString:@"/"];
}
//add '*' to make it a directory rule
[path appendString:VALUE_ANY];
}
//invalid path?
if( (YES != exists) ||
(0 == path.length) )
{
//error
// though only if its not '*' or '/*'
if(YES != [path hasSuffix:VALUE_ANY])
{
//show alert
showAlert(NSAlertStyleWarning, NSLocalizedString(@"ERROR: invalid path", @"ERROR: invalid path"), [NSString stringWithFormat:NSLocalizedString(@"%@ does not exist!", @"%@ does not exist!"), path], @[NSLocalizedString(@"OK", @"OK")]);
//bail
goto bail;
}
}
//endpoint addr
// or '*' if blank
endpointAddr = (0 != self.endpointAddr.stringValue.length) ? self.endpointAddr.stringValue : VALUE_ANY;
//is endpoint addr regex?
// ...set var, but also validate
endpointAddrRegex = [NSNumber numberWithBool:(self.isEndpointAddrRegex.state == NSControlStateValueOn)];
if( (YES == endpointAddrRegex.boolValue) &&
(nil == [NSRegularExpression regularExpressionWithPattern:endpointAddr options:0 error:&error]) )
{
//show alert
showAlert(NSAlertStyleWarning, NSLocalizedString(@"ERROR: invalid regex", @"ERROR: invalid regex"), [NSString stringWithFormat:NSLocalizedString(@"%@ is not a valid regular expression\r\ndetails: %@", @"%@ is not a valid regular expression\r\ndetails: %@"), endpointAddr, error.localizedDescription], @[NSLocalizedString(@"OK", @"OK")]);
//bail
goto bail;
}
//endpoint port
// ...set var, but also validate
endpointPort = (0 != self.endpointPort.stringValue.length) ? self.endpointPort.stringValue : VALUE_ANY;
if( (0 != self.endpointPort.stringValue.length) &&
(YES != [self.endpointPort.stringValue isEqualToString:VALUE_ANY]) &&
(NSNotFound != [endpointPort rangeOfCharacterFromSet:[[NSCharacterSet decimalDigitCharacterSet] invertedSet]].location) )
{
//show alert
showAlert(NSAlertStyleWarning, NSLocalizedString(@"ERROR: invalid port", @"ERROR: invalid port"), [NSString stringWithFormat:NSLocalizedString(@"%@ is not a valid (port) number", @"%@ is not a valid (port) number"), endpointPort], @[NSLocalizedString(@"OK", @"OK")]);
//bail
goto bail;
}
//set action
action = (self.blockButton.state == NSControlStateValueOn) ? @RULE_STATE_BLOCK : @RULE_STATE_ALLOW;
//save all info
self.info = @{KEY_PATH:path,
KEY_ENDPOINT_ADDR:endpointAddr,
KEY_ENDPOINT_ADDR_IS_REGEX:endpointAddrRegex,
KEY_ENDPOINT_PORT:endpointPort,
KEY_TYPE:@RULE_TYPE_USER,
KEY_ACTION:action};
//ok happy
response = NSModalResponseOK;
bail:
//stop w/ response
[NSApp stopModalWithCode:response];
//close
[self.window close];
return;
}
//update the UI
// set icon, and enable/select 'add' button
-(void)updateUI
{
//icon
NSImage* processIcon = nil;
//blank
// disable 'add' button
if(0 == self.path.stringValue.length)
{
//set state
self.addButton.enabled = NO;
//bail
goto bail;
}
//get icon
processIcon = getIconForProcess(self.path.stringValue);
if(nil != processIcon)
{
//add
self.icon.image = processIcon;
}
//enable 'add' button
self.addButton.enabled = YES;
bail:
return;
}
//ensure title-bar close also ends the modal
- (BOOL)windowShouldClose:(NSWindow *)sender {
[NSApp stopModalWithCode:NSModalResponseCancel];
return YES;
}
@end
================================================
FILE: LuLu/App/AlertWindowController.h
================================================
//
// file: AlertWindowController.h
// project: lulu (login item)
// description: window controller for main firewall alert (header)
//
// created by Patrick Wardle
// copyright (c) 2017 Objective-See. All rights reserved.
//
@import Cocoa;
@import OSLog;
#import "ParentsWindowController.h"
#import "SigningInfoViewController.h"
@interface AlertWindowController : NSWindowController <NSTouchBarProvider, NSTouchBarDelegate>
/* PROPERTIES */
//alert info
@property(nonatomic, retain)NSDictionary* alert;
//touch bar
@property(nonatomic, retain)NSTouchBar* touchBar;
//reply
@property (nonatomic, copy)void(^reply)(NSDictionary*);
/* TOP */
//process icon
@property (weak) IBOutlet NSImageView *processIcon;
//process name
@property (weak) IBOutlet NSTextField *processName;
//general alert message
@property (unsafe_unretained) IBOutlet NSTextView *alertMessage;
//signing info button
@property (weak) IBOutlet NSButton *signingInfoButton;
//signing info: popover
@property (strong) IBOutlet NSPopover *signingInfoPopover;
//virus total: button
@property (weak) IBOutlet NSButton *virusTotalButton;
//view controller for ancestry view/popover
@property (weak) IBOutlet ParentsWindowController *ancestryViewController;
//ancestry button
@property (weak) IBOutlet NSButton *ancestryButton;
//popover for ancestry
@property (strong) IBOutlet NSPopover *ancestryPopover;
//process ancestry
@property (nonatomic, retain)NSMutableArray* processHierarchy;
@property (weak) IBOutlet NSButton *allowButton;
/* BOTTOM (DETAILS) */
//process id
@property (weak) IBOutlet NSTextField *processID;
//process args
@property (weak) IBOutlet NSTextField *processArgs;
//process path
@property (unsafe_unretained) IBOutlet NSTextView *processPath;
//ip address
@property (weak) IBOutlet NSTextField *ipAddress;
//port/protocol
@property (weak) IBOutlet NSTextField *portProto;
//reverse dns name
@property (unsafe_unretained) IBOutlet NSTextView *reverseDNS;
//ancestry view
@property (strong) IBOutlet NSView *ancestryView;
//outline view in ancestry popover
@property (weak) IBOutlet NSOutlineView *ancestryOutline;
//text cell for ancestry popover
@property (weak) IBOutlet NSTextFieldCell *ancestryTextCell;
//time stamp
@property (weak) IBOutlet NSTextField *timeStamp;
//action (rule) scope
@property (weak) IBOutlet NSPopUpButton *actionScope;
//rule durations
@property (weak) IBOutlet NSButton *ruleDurationAlways;
@property (weak) IBOutlet NSButton *ruleDurationProcess;
@property (weak) IBOutlet NSButton *ruleDurationCustom;
@property (weak) IBOutlet NSTextField *ruleDurationHours;
@property (weak) IBOutlet NSTextField *ruleDurationMinutes;
//options view
@property (weak) IBOutlet NSView *options;
//show options button
@property (weak) IBOutlet NSButton* showOptions;
//endpoint (e.g. domain)
@property(nonatomic, retain)NSString* endpoint;
/* METHODS */
//open signing info popover
-(void)openSigningInfoPopover;
//button handler
// ->block/allow, and then close
-(IBAction)handleUserResponse:(id)sender;
//set wrapping
-(void)setWrapping:(NSTextView *)textView;
@end
================================================
FILE: LuLu/App/AlertWindowController.m
================================================
//
// file: AlertWindowController.m
// project: lulu
// description: window controller for main firewall alert
//
// created by Patrick Wardle
// copyright (c) 2017 Objective-See. All rights reserved.
//
@import Foundation;
#import <sys/socket.h>
#import "consts.h"
#import "utilities.h"
#import "AppDelegate.h"
#import "XPCDaemonClient.h"
#import "AlertWindowController.h"
/* GLOBALS */
//log handle
extern os_log_t logHandle;
//xpc for daemon comms
extern XPCDaemonClient* xpcDaemonClient;
@implementation AlertWindowController
@synthesize alert;
@synthesize processIcon;
@synthesize processName;
@synthesize ancestryButton;
@synthesize ancestryPopover;
@synthesize processHierarchy;
@synthesize virusTotalButton;
@synthesize signingInfoButton;
#define DEFAULT_WINDOW_HEIGHT 244
#define DEFAULT_WINDOW_HEIGHT_EXPANDED 452
//center window
// also, transparency
-(void)awakeFromNib
{
//center
[self.window center];
//full size content view for translucency
self.window.styleMask = self.window.styleMask | NSWindowStyleMaskFullSizeContentView;
//title bar translucency
self.window.titlebarAppearsTransparent = YES;
//move via background
self.window.movableByWindowBackground = YES;
//set hour formatter
NSNumberFormatter *hoursFormatter = [[NSNumberFormatter alloc] init];
hoursFormatter.minimum = @0;
hoursFormatter.maximum = @23;
hoursFormatter.allowsFloats = NO;
self.ruleDurationHours.formatter = hoursFormatter;
//set minute formatter
NSNumberFormatter *minutesFormatter = [[NSNumberFormatter alloc] init];
minutesFormatter.minimum = @0;
minutesFormatter.maximum = @59;
minutesFormatter.allowsFloats = NO;
self.ruleDurationMinutes.formatter = minutesFormatter;
return;
}
//delegate method
// populate/configure alert window
-(void)windowDidLoad
{
//process pid
pid_t processID = 0;
//process args
NSMutableString* arguments = nil;
//timestamp formatter
NSDateFormatter *timeFormat = nil;
//paragraph style
NSMutableParagraphStyle* paragraphStyle = nil;
//title attributes (for temporary label)
NSMutableDictionary* titleAttributes = nil;
//preferences
NSDictionary* preferences = nil;
//height
NSUInteger height = 0;
//url
NSURL* url = nil;
//selected duration
NSInteger lastRuleDurationTag = 0;
//init paragraph style
paragraphStyle = [[NSMutableParagraphStyle alloc] init];
//init dictionary for title attributes
titleAttributes = [NSMutableDictionary dictionary];
//extract process ID
processID = [self.alert[KEY_PROCESS_ID] intValue];
//get preferences
preferences = [xpcDaemonClient getPreferences];
//do we have access?
// build hierarchy here
if(0 == kill(processID, 0))
{
//extract
self.processHierarchy = generateProcessHierarchy(processID);
//dbg msg
os_log_debug(logHandle, "(re)generated process hierarchy: %{public}@", self.processHierarchy);
}
else
{
//extract
self.processHierarchy = alert[KEY_PROCESS_ANCESTORS];
}
//disable ancestory button if no ancestors
if(0 == self.processHierarchy.count)
{
//disable
self.ancestryButton.enabled = NO;
}
//disable VirusTotal button if preference is set
// this is enough, as all VT integration only occurs when user interacts with button
if(YES == [preferences[PREF_NO_VT_MODE] boolValue])
{
//dbg msg
os_log_debug(logHandle, "user has disabled VirusTotal integrations, so disabling VT button");
//disable
self.virusTotalButton.enabled = NO;
}
//default to using url
// though we trim as we don't want the whole URL
if(nil != self.alert[KEY_URL])
{
//init url
url = [NSURL URLWithString:self.alert[KEY_URL]];
//extract host
self.endpoint = url.host;
}
//use IP address
else
{
//set
self.endpoint = self.alert[KEY_HOST];
}
//sanity check
if(nil == self.endpoint)
{
//set
self.endpoint = NSLocalizedString(@"unknown", @"unknown");
}
/* TOP */
//set process icon
self.processIcon.image = getIconForProcess(self.alert[KEY_PATH]);
//process signing info
[self setSigningIcon];
//set name
self.processName.stringValue = self.alert[KEY_PROCESS_NAME];
//ensure process name clips
self.processName.wantsLayer = YES;
self.processName.layer.masksToBounds = YES;
//alert message
self.alertMessage.string = [NSString stringWithFormat:NSLocalizedString(@"is connecting to %@", @"is connecting to %@"), self.endpoint];
//set tooltip to full URL
if(nil != url)
{
//use (full) URLs
self.alertMessage.toolTip = [NSString stringWithFormat:NSLocalizedString(@"Full URL: %@", @"Full URL: %@"), url.absoluteString];
}
/* BOTTOM (DETAILS) */
//process pid
self.processID.stringValue = [self.alert[KEY_PROCESS_ID] stringValue];
//process args
// none? means error
if(0 == [self.alert[KEY_PROCESS_ARGS] count])
{
//unknown
self.processArgs.stringValue = NSLocalizedString(@"unknown", @"unknown");
}
//process args
// only one? means, argv[0] and none
else if(1 == [self.alert[KEY_PROCESS_ARGS] count])
{
//none
self.processArgs.stringValue = NSLocalizedString(@"none", @"none");
}
//process args
// more than one? create string of all
else
{
//alloc
arguments = [NSMutableString string];
//add each
// but skip argv[0]
for(NSUInteger i=0; i<[self.alert[KEY_PROCESS_ARGS] count]; i++)
{
//skip first
if(0 == i) continue;
//add arg
[arguments appendFormat:@"%@ ", [self.alert[KEY_PROCESS_ARGS] objectAtIndex:i]];
}
//add to UI
self.processArgs.stringValue = arguments;
}
//set tooltip
self.processArgs.toolTip = [NSString stringWithFormat:NSLocalizedString(@"Process Arguments: %@", @"Process Arguments: %@"), self.processArgs.stringValue];
//process path for normal processes
if(YES != [self.alert[KEY_PROCESS_DELETED] boolValue])
{
//add as is
self.processPath.string = self.alert[KEY_PATH];
}
//deleted processes
// strike thru, so user knows
else
{
//strike thru
[self.processPath.textStorage setAttributedString: [[NSAttributedString alloc] initWithString:self.alert[KEY_PATH] attributes:@{NSStrikethroughStyleAttributeName:@(NSUnderlineStyleSingle)}]];
}
//set wrapping
[self setWrapping:self.processPath];
//set tooltip
self.processPath.toolTip = [NSString stringWithFormat:NSLocalizedString(@"Process Path: %@", @"Process Path: %@"), self.processPath.string];
//ensure process path clips
self.processPath.wantsLayer = YES;
self.processPath.layer.masksToBounds = YES;
//ip address
self.ipAddress.stringValue = (nil != self.alert[KEY_HOST]) ? self.alert[KEY_HOST] : NSLocalizedString(@"unknown", @"unknown");
//port & proto
self.portProto.stringValue = [NSString stringWithFormat:@"%@ (%@)", self.alert[KEY_ENDPOINT_PORT], [self convertProtocol:self.alert[KEY_PROTOCOL]]];
//alloc time formatter
timeFormat = [[NSDateFormatter alloc] init];
//set format
timeFormat.dateFormat = @"HH:mm:ss";
//add timestamp
self.timeStamp.stringValue = [NSString stringWithFormat:NSLocalizedString(@"Time stamp: %@", @"Time stamp: %@"), [timeFormat stringFromDate:[[NSDate alloc] init]]];
//set paragraph style to left
paragraphStyle.alignment = NSTextAlignmentLeft;
//set paragraph attribute for temporary label
titleAttributes[NSParagraphStyleAttributeName] = paragraphStyle;
//set color to label default
titleAttributes[NSForegroundColorAttributeName] = [NSColor labelColor];
//set font
titleAttributes[NSFontAttributeName] = [NSFont fontWithName:@"Menlo-Regular" size:12];
//process deleted?
// rule scope can only be temporary (as we don't have a path)
if(YES == [self.alert[KEY_PROCESS_DELETED] boolValue])
{
//on
self.ruleDurationProcess.state = NSControlStateValueOn;
//disable others
self.ruleDurationAlways.enabled = NO;
self.ruleDurationCustom.enabled = NO;
}
//otherwise make sure others are (always) enabled
else
{
//enable
self.ruleDurationAlways.enabled = YES;
self.ruleDurationCustom.enabled = YES;
}
//set rule scope
// ...based on last one
[self.actionScope selectItemAtIndex:[preferences[PREF_ALERT_LAST_RULE_SCOPE] integerValue]];
//grab last rule duration tag
lastRuleDurationTag = [preferences[PREF_ALERT_LAST_RULE_DURATION] integerValue];
//not set
// default to always
if(0 == lastRuleDurationTag)
{
self.ruleDurationAlways.state = NSControlStateValueOn;
}
//set rule duration
// ...based on last one
else if(lastRuleDurationTag == self.ruleDurationAlways.tag)
{
//set: on
self.ruleDurationAlways.state = NSControlStateValueOn;
}
else if(lastRuleDurationTag == self.ruleDurationProcess.tag)
{
//set: on
self.ruleDurationProcess.state = NSControlStateValueOn;
}
else if(lastRuleDurationTag == self.ruleDurationCustom.tag)
{
//set: on
self.ruleDurationCustom.state = NSControlStateValueOn;
}
//show touch bar
[self initTouchBar];
//default height
height = DEFAULT_WINDOW_HEIGHT;
//resize to handle size of alert
[self.window setFrame:NSMakeRect(self.window.frame.origin.x, self.window.frame.origin.y, self.window.frame.size.width, height) display:YES];
//make 'allow' button first responder
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (100 * NSEC_PER_MSEC)), dispatch_get_main_queue(), ^{
//set first responder
[self.window makeFirstResponder:self.allowButton];
});
//show details?
// if user expanded them on the last alert
if(NSControlStateValueOn == [preferences[PREF_ALERT_SHOW_OPTIONS] integerValue])
{
//set 'options' button state to on
self.showOptions.state = NSControlStateValueOn;
//toggle, to show options
[self toggleOptionsView:self.showOptions];
}
//otherwise
// (re)set back to defaults
else
{
//default min
[self.window setContentMinSize:NSMakeSize(self.window.frame.size.width, DEFAULT_WINDOW_HEIGHT)];
//default max
[self.window setContentMaxSize:NSMakeSize(self.window.frame.size.width, DEFAULT_WINDOW_HEIGHT)];
//(re)set action scope
[self.actionScope selectItemAtIndex:ACTION_SCOPE_PROCESS];
//(re)set rule scope
self.ruleDurationAlways.state = NSControlStateValueOn;
}
bail:
return;
}
//covert number protocol to name
-(NSString*)convertProtocol:(NSNumber*)protocol
{
//protocol
NSString* name = nil;
//convert
switch(protocol.intValue)
{
//tcp
case IPPROTO_TCP:
name = @"TCP";
break;
//udp
case IPPROTO_UDP:
name = @"UDP";
break;
//??
default:
name = [NSString stringWithFormat:NSLocalizedString(@"<unknown (%d)>", @"<unknown (%d)>"), [self.alert[KEY_PROTOCOL] intValue]];
}
return name;
}
//set signing icon
-(void)setSigningIcon
{
//signing info
NSDictionary* signingInfo = nil;
//extract
signingInfo = self.alert[KEY_CS_INFO];
//dbg msg
os_log_debug(logHandle, "signing info: %{public}@", signingInfo);
//none?
// just set to unknown
if(nil == signingInfo)
{
//set icon
signingInfoButton.image = [NSImage imageNamed:@"SignedUnknown"];
//bail
goto bail;
}
//parse signing info
switch([signingInfo[KEY_CS_STATUS] intValue])
{
//happily signed
case noErr:
//item signed by apple
if(Apple == [signingInfo[KEY_CS_SIGNER] intValue])
{
//set icon
signingInfoButton.image = [NSImage imageNamed:@"SignedApple"];
}
//signed by dev id/ad hoc, etc
else
{
//set icon
signingInfoButton.image = [NSImage imageNamed:@"Signed"];
}
break;
//unsigned
case errSecCSUnsigned:
//set icon
signingInfoButton.image = [NSImage imageNamed:@"Unsigned"];
break;
default:
//set icon
signingInfoButton.image = [NSImage imageNamed:@"SignedUnknown"];
}
bail:
return;
}
//automatically invoked when user clicks signing icon
// depending on state, show/populate the popup, or close it
-(IBAction)signingInfoButtonHandler:(id)sender
{
//not open?
// show popover
if(YES != self.signingInfoPopover.isShown)
{
//open
[self openSigningInfoPopover];
}
//otherwise close it
else
{
//close
[self.signingInfoPopover close];
}
return;
}
//open signing info popover
-(void)openSigningInfoPopover
{
//view controller
SigningInfoViewController* popoverDelegate = nil;
//set button state
self.signingInfoButton.state = NSControlStateValueOn;
//grab delegate
popoverDelegate = (SigningInfoViewController*)self.signingInfoPopover.delegate;
//set icon image
popoverDelegate.icon.image = self.signingInfoButton.image;
//set alert info
popoverDelegate.alert = self.alert;
//show popover
[self.signingInfoPopover showRelativeToRect:[self.signingInfoButton bounds] ofView:self.signingInfoButton preferredEdge:NSMaxYEdge];
return;
}
//VT button handler
// open user's browser w/ VT results
-(IBAction)vtButtonHandler:(id)sender
{
NSString* path = nil;
NSString* hash = nil;
//default
path = self.processPath.string;
//package?
// get path of binary from bundle
if ([[NSWorkspace sharedWorkspace] isFilePackageAtPath:self.processPath.string]) {
//get path
path = getBundleExecutable(self.processPath.string);
}
//hash
if(path) {
hash = hashFile(path);
}
if(hash) {
//dbg msg
os_log_debug(logHandle, "%{public}@ hashed to %{public}@ for VT", path, hash);
//open/show in browser
[NSWorkspace.sharedWorkspace openURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://www.virustotal.com/gui/file/%@", hash]]];
}
//error
else {
//show error
showAlert(NSAlertStyleWarning, [NSString stringWithFormat:NSLocalizedString(@"ERROR: Failed to hash %@", @"ERROR: Failed to hash %@"), self.processName.stringValue], nil, @[NSLocalizedString(@"OK", @"OK")]);
}
return;
}
//invoked when user clicks process ancestry button
// depending on state, show/populate the popup, or close it
-(IBAction)ancestryButtonHandler:(id)sender
{
//open popover
if(NSControlStateValueOn == self.ancestryButton.state)
{
//add the index value to each process in the hierarchy
// used to populate outline/table
for(NSUInteger i = 0; i<self.processHierarchy.count; i++)
{
//set index
self.processHierarchy[i][@"index"] = [NSNumber numberWithInteger:i];
}
//set process hierarchy
self.ancestryViewController.processHierarchy = processHierarchy;
//dynamically (re)size popover
[self setPopoverSize];
//reload it
[self.ancestryOutline reloadData];
//auto-expand
[self.ancestryOutline expandItem:nil expandChildren:YES];
//show popover
[self.ancestryPopover showRelativeToRect:[self.ancestryButton bounds] ofView:self.ancestryButton preferredEdge:NSMaxYEdge];
}
//close popover
else
{
//close
[self.ancestryPopover close];
}
return;
}
//set the popover window size
// make it roughly fit to content
-(void)setPopoverSize
{
//popover's frame
CGRect popoverFrame = {0};
//required height
CGFloat popoverHeight = 0.0f;
//text of current row
NSString* currentRow = nil;
//width of current row
CGFloat currentRowWidth = 0.0f;
//length of max line
CGFloat maxRowWidth = 0.0f;
//extra rows
NSUInteger extraRows = 0;
//when hierarchy is less than 4
// ->set (some) extra rows
if(self.ancestryViewController.processHierarchy.count < 4)
{
//5 total
extraRows = 4 - self.ancestryViewController.processHierarchy.count;
}
//calc total window height
// ->number of rows + extra rows, * height
popoverHeight = (self.ancestryViewController.processHierarchy.count + extraRows + 2) * [self.ancestryOutline rowHeight];
//get window's frame
popoverFrame = self.ancestryView.frame;
//calculate max line width
for(NSUInteger i=0; i<self.ancestryViewController.processHierarchy.count; i++)
{
//generate text of current row
currentRow = [NSString stringWithFormat:NSLocalizedString(@"%@ (pid: %@)", @"%@ (pid: %@)"), self.ancestryViewController.processHierarchy[i][@"name"], [self.ancestryViewController.processHierarchy lastObject][@"pid"]];
//calculate width
// ->first w/ indentation
currentRowWidth = [self.ancestryOutline indentationPerLevel] * (i+1);
//calculate width
// ->then size of string in row
currentRowWidth += [currentRow sizeWithAttributes: @{NSFontAttributeName: self.ancestryTextCell.font}].width;
//save it greater than max
if(maxRowWidth < currentRowWidth)
{
//save
maxRowWidth = currentRowWidth;
}
}
//add some padding
// ->scroll bar, etc
maxRowWidth += 50;
//set height
popoverFrame.size.height = popoverHeight;
//set width
popoverFrame.size.width = maxRowWidth;
//set new frame
self.ancestryView.frame = popoverFrame;
return;
}
//close any open popups
-(void)closePopups
{
//process ancestry popup
if(NSControlStateValueOn == self.ancestryButton.state)
{
//close
[self.ancestryPopover close];
//set button state to off
self.ancestryButton.state = NSControlStateValueOff;
}
//signing info popup
if(NSControlStateValueOn == self.signingInfoButton.state)
{
//close
[self.signingInfoPopover close];
//set button state to off
self.signingInfoButton.state = NSControlStateValueOff;
}
return;
}
//button handler
// close popups, grap user response/send to daemon, save 'preferences' (options shown, etc)
-(IBAction)handleUserResponse:(id)sender
{
//rule expiration
NSDate* expiration = nil;
//show options state
NSInteger showOptionsState = 0;
//rule scope index
NSInteger ruleScopeIndex = 0;
//rule duration
NSInteger ruleDurationTag = 0;
//response to daemon
NSMutableDictionary* alertResponse = nil;
//dbg msg
os_log_debug(logHandle, "handling user response");
//grab state
showOptionsState = self.showOptions.state;
//grab action scope index
ruleScopeIndex = self.actionScope.indexOfSelectedItem;
//get selected rule duration
if(self.ruleDurationAlways.state == NSControlStateValueOn)
{
//save
ruleDurationTag = self.ruleDurationAlways.tag;
}
else if(self.ruleDurationProcess.state == NSControlStateValueOn)
{
//save
ruleDurationTag = self.ruleDurationProcess.tag;
}
else if(self.ruleDurationCustom.state == NSControlStateValueOn)
{
//save
ruleDurationTag = self.ruleDurationCustom.tag;
}
//init alert response
// start w/ copy of received alert
alertResponse = [self.alert mutableCopy];
//set type as user
alertResponse[KEY_TYPE] = @(RULE_TYPE_USER);
//add current user
alertResponse[KEY_USER_ID] = @(getuid());
//add user response
alertResponse[KEY_ACTION] = @(((NSButton*)sender).tag);
//add action scope
alertResponse[KEY_SCOPE] = @(ruleScopeIndex);
//rule duration temporary (pid)?
if(NSControlStateValueOn == self.ruleDurationProcess.state)
{
//set flag
alertResponse[KEY_DURATION_PROCESS] = @1;
}
//rule duration temporary (expiration)?
else if(NSControlStateValueOn == self.ruleDurationCustom.state)
{
NSInteger hours = self.ruleDurationHours.integerValue;
NSInteger minutes = self.ruleDurationMinutes.integerValue;
NSTimeInterval totalSeconds = (hours * 3600) + (minutes * 60);
//sanity check
if(totalSeconds <= 0)
{
//lower window level (so alert can show above)
[self.window setLevel:NSNormalWindowLevel];
//show error
showAlert(NSAlertStyleWarning, NSLocalizedString(@"ERROR: Enter a non-zero duration", @"ERROR: Enter a non-zero duration"), nil, @[NSLocalizedString(@"OK", @"OK")]);
//(re)set window level
[self.window setLevel:NSPopUpMenuWindowLevel];
//bail here
return;
}
//covert and add
else {
//convert to data
expiration = [NSDate dateWithTimeIntervalSinceNow:totalSeconds];
//dbg msg
os_log_debug(logHandle, "rule expiration: %{public}@", expiration);
//add
alertResponse[KEY_DURATION_EXPIRATION] = expiration;
}
}
//set endpoint addr
alertResponse[KEY_ENDPOINT_ADDR] = self.endpoint;
//close popups
[self closePopups];
//close window
[self.window close];
//dbg msg
os_log_debug(logHandle, "replying to alert %{public}@", alertResponse);
//reply
self.reply(alertResponse);
//save preferences
// includes options shown/last action scope, etc.
[xpcDaemonClient updatePreferences:@{PREF_ALERT_SHOW_OPTIONS: @(showOptionsState),
PREF_ALERT_LAST_RULE_SCOPE: @(ruleScopeIndex),
PREF_ALERT_LAST_RULE_DURATION: @(ruleDurationTag)}];
//set app's background/foreground state
[((AppDelegate*)[[NSApplication sharedApplication] delegate]) setActivationPolicy];
return;
}
//init/show touch bar
-(void)initTouchBar
{
//touch bar items
NSArray *touchBarItems = nil;
//alloc/init
self.touchBar = [[NSTouchBar alloc] init];
if(nil == self.touchBar)
{
//no touch bar?
goto bail;
}
//set delegate
self.touchBar.delegate = self;
//set id
self.touchBar.customizationIdentifier = @BUNDLE_ID;
//init items
touchBarItems = @[@".icon", @".label", @".block", @".allow"];
//set items
self.touchBar.defaultItemIdentifiers = touchBarItems;
//set customization items
self.touchBar.customizationAllowedItemIdentifiers = touchBarItems;
bail:
return;
}
//delegate method
// init item for touch bar
-(NSTouchBarItem *)touchBar:(NSTouchBar *)touchBar makeItemForIdentifier:(NSTouchBarItemIdentifier)identifier
{
//icon view
NSImageView *iconView = nil;
//icon
NSImage* icon = nil;
//item
NSCustomTouchBarItem *touchBarItem = nil;
//init item
touchBarItem = [[NSCustomTouchBarItem alloc] initWithIdentifier:identifier];
//icon
if(YES == [identifier isEqualToString: @".icon" ])
{
//init icon view
iconView = [[NSImageView alloc] initWithFrame:NSMakeRect(0, 0, 30.0, 30.0)];
//enable layer
[iconView setWantsLayer:YES];
//set color
[iconView.layer setBackgroundColor:[[NSColor windowBackgroundColor] CGColor]];
//mask
iconView.layer.masksToBounds = YES;
//round corners
iconView.layer.cornerRadius = 3.0;
//load icon image
icon = [NSImage imageNamed:@"Icon"];
//set size
icon.size = CGSizeMake(30, 30);
//add image
iconView.image = icon;
//set view
touchBarItem.view = iconView;
}
//label
else if(YES == [identifier isEqualToString:@".label"])
{
//item label
touchBarItem.view = [NSTextField labelWithString:[NSString stringWithFormat:@"%@ %@", self.processName.stringValue,self.alertMessage.string]];
}
//block button
else if(YES == [identifier isEqualToString:@".block"])
{
//init button
touchBarItem.view = [NSButton buttonWithTitle: @"Block" target:self action: @selector(handleUserResponse:)];
//set tag
// 0: block
((NSButton*)touchBarItem.view).tag = 0;
}
//allow button
else if(YES == [identifier isEqualToString:@".allow"])
{
//init button
touchBarItem.view = [NSButton buttonWithTitle: @"Allow" target:self action: @selector(handleUserResponse:)];
//set tag
// 1: allow
((NSButton*)touchBarItem.view).tag = 1;
}
return touchBarItem;
}
//groups radio buttons
-(IBAction)ruleDurationHandler:(id)sender {
//need this method so radio buttons are mutually exclusive
}
//show / hide option view
-(IBAction)toggleOptionsView:(id)sender {
//frame
NSRect origin = {0};
//dbg msg
os_log_debug(logHandle, "toggling option's view, state: %ld", (long)self.showOptions.state);
//frame
NSRect windowFrame = self.window.frame;
//on
if(NSControlStateValueOn == self.showOptions.state)
{
origin = self.window.contentView.frame;
origin.origin.y = self.window.contentView.frame.size.height;
windowFrame.size.height += NSHeight(self.options.frame); //NSHeight(self.options.frame);
windowFrame.origin.y -= NSHeight(self.options.frame);
[self.window setContentMinSize:NSMakeSize(self.window.frame.size.width, DEFAULT_WINDOW_HEIGHT_EXPANDED)];
[self.window setContentMaxSize:NSMakeSize(self.window.frame.size.width, DEFAULT_WINDOW_HEIGHT_EXPANDED)];
[self.options setHidden:NO];
[self.window layoutIfNeeded];
[self.window displayIfNeeded];
//dbg msg
os_log_debug(logHandle, "added option view to window");
}
//off
else
{
//[self.options removeFromSuperview];
[self.options setHidden:YES];
//dbg msg
os_log_debug(logHandle, "removed option view from window");
windowFrame.size.height -= NSHeight(self.options.frame);
windowFrame.origin.y += NSHeight(self.options.frame);
[self.window setContentMinSize:NSMakeSize(self.window.frame.size.width, DEFAULT_WINDOW_HEIGHT)];
[self.window setContentMaxSize:NSMakeSize(self.window.frame.size.width, DEFAULT_WINDOW_HEIGHT)];
}
//resize
[self.window setFrame:windowFrame display:YES animate:YES];
return;
}
//set wrapping
-(void)setWrapping:(NSTextView*)textView {
NSRange fullRange = {0,0};
NSMutableAttributedString* mutableAttrString = nil;
mutableAttrString = [textView.textStorage mutableCopy];
fullRange = NSMakeRange(0, mutableAttrString.length);
[mutableAttrString enumerateAttributesInRange:fullRange
options:0
usingBlock:^(NSDictionary* attrs, NSRange range, BOOL *stop) {
NSMutableParagraphStyle* mutableParagraphStyle = nil;
NSParagraphStyle* existingStyle = attrs[NSParagraphStyleAttributeName];
if(nil != existingStyle)
{
mutableParagraphStyle = [existingStyle mutableCopy];
}
else
{
mutableParagraphStyle = [[NSMutableParagraphStyle alloc] init];
}
mutableParagraphStyle.lineBreakMode = NSLineBreakByCharWrapping;
NSMutableDictionary* newAttrs = [attrs mutableCopy];
newAttrs[NSParagraphStyleAttributeName] = mutableParagraphStyle;
[mutableAttrString setAttributes:newAttrs range:range];
}];
[textView.textStorage setAttributedString:mutableAttrString];
return;
}
@end
================================================
FILE: LuLu/App/App.entitlements
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.networking.networkextension</key>
<array>
<string>content-filter-provider-systemextension</string>
</array>
<key>com.apple.developer.system-extension.install</key>
<true/>
<key>com.apple.security.application-groups</key>
<array>
<string>$(TeamIdentifierPrefix)com.objective-see.lulu</string>
</array>
</dict>
</plist>
================================================
FILE: LuLu/App/AppDelegate.h
================================================
//
// AppDelegate.h
// LuLu
//
// Created by Patrick Wardle on 8/1/20.
// Copyright (c) 2020 Objective-See. All rights reserved.
//
@import Cocoa;
@import OSLog;
@import NetworkExtension;
@import SystemExtensions;
#import "StatusBarItem.h"
#import "XPCDaemonClient.h"
#import "AboutWindowController.h"
#import "PrefsWindowController.h"
#import "RulesWindowController.h"
#import "UpdateWindowController.h"
#import "StartupWindowController.h"
#import "WelcomeWindowController.h"
@interface AppDelegate : NSObject <NSApplicationDelegate>
/* PROPERTIES */
//configure window controller
@property(nonatomic, retain)StartupWindowController* startupWindowController;
//uninstall (deactivation) request
@property(nonatomic, retain)OSSystemExtensionRequest *uninstallRequest;
//welcome view controller
@property(nonatomic, retain)WelcomeWindowController* welcomeWindowController;
//status bar menu/sub-menus
@property(strong) IBOutlet NSMenu* statusMenu;
//profile menu item
@property(strong) IBOutlet NSMenuItem *profilesMenuItem;
//switch profile menu item
@property (weak) IBOutlet NSMenuItem *profileSwitchMenuItem;
//list of profiles mene
@property (weak) IBOutlet NSMenu *profilesMenu;
//status bar menu controller
@property(nonatomic, retain)StatusBarItem* statusBarItemController;
//about window controller
@property(nonatomic, retain)AboutWindowController* aboutWindowController;
//preferences window controller
@property(nonatomic, retain)PrefsWindowController* prefsWindowController;
//rules window controller
@property(nonatomic, retain)RulesWindowController* rulesWindowController;
//update window controller
@property(nonatomic, retain)UpdateWindowController* updateWindowController;
/* METHODS */
//first launch?
// check for install time(stamp)
-(BOOL)isFirstTime;
//finish up initializations
-(void)completeInitialization:(NSDictionary*)initialPreferenes;
//set app foreground/background
// determined by the app's window count
-(void)setActivationPolicy;
//'rules' menu item handler
// alloc and show rules window
-(IBAction)showRules:(id)sender;
//'preferences' menu item handler
// alloc and show preferences window
-(void)showPreferences:(NSString*)itemID;
//preferences changed
// for now, just check status bar icon setting
-(void)preferencesChanged:(NSDictionary*)preferences;
//profiles changed
-(void)profilesChanged;
//toggle (status) bar icon
-(void)toggleIcon:(NSDictionary*)preferences;
//quit
-(IBAction)quit:(id)sender;
//uninstall
-(IBAction)uninstall:(id)sender;
@end
================================================
FILE: LuLu/App/AppDelegate.m
================================================
//
// AppDelegate.m
// LuLu
//
// Created by Patrick Wardle on 8/1/20.
// Copyright (c) 2020 Objective-See. All rights reserved.
//
#import "consts.h"
#import "utilities.h"
#import "Update.h"
#import "Configure.h"
#import "Extension.h"
#import "AppDelegate.h"
/* GLOBALS */
//log handle
extern os_log_t logHandle;
//alert windows
NSMutableDictionary* alerts = nil;
//xpc for daemon comms
XPCDaemonClient* xpcDaemonClient = nil;
@interface AppDelegate ()
@property (weak) IBOutlet NSWindow *window;
@end
@implementation AppDelegate
@synthesize aboutWindowController;
@synthesize prefsWindowController;
@synthesize rulesWindowController;
@synthesize updateWindowController;
@synthesize startupWindowController;
@synthesize statusBarItemController;
@synthesize welcomeWindowController;
//main app interface
-(void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
//delay
NSInteger delay = 1;
//current version
NSOperatingSystemVersion version = {0};
//alert response
NSModalResponse response = 0;
//dbg msg
os_log_debug(logHandle, "%s", __PRETTY_FUNCTION__);
//don't relaunch
[NSApp disableRelaunchOnLogin];
//v1.0 version installed?
// prompt / provide link to uninstall instructions / exit
if(YES == [NSFileManager.defaultManager fileExistsAtPath:[INSTALL_DIRECTORY stringByAppendingPathComponent:@"LuLu.bundle"]])
{
//show alert
response = showAlert(NSAlertStyleWarning, NSLocalizedString(@"Old Version of LuLu Installed", @"Old Version of LuLu Installed"), NSLocalizedString(@"This must be uninstalled before continuing. Click 'More Info' to learn how to uninstall it", @"This must be uninstalled before continuing\r\n.Click 'More Info' to learn how to uninstall it."), @[NSLocalizedString(@"More Info", @"More Info"), NSLocalizedString(@"Cancel", @"Cancel")]);
//open link to uninstall instructions
if(NSAlertSecondButtonReturn == response)
{
//open
[NSWorkspace.sharedWorkspace openURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@#uninstall_v1", PRODUCT_URL]]];
}
//(always) exit
[NSApplication.sharedApplication terminate:self];
}
//Apple: item's w/ System Extensions must be run from /Applications 🤷🏻♂️
if(![NSBundle.mainBundle.bundlePath hasPrefix:@"/Applications/"])
{
//dbg msg
os_log_debug(logHandle, "LuLu running from %{public}@, not from within /Applications", NSBundle.mainBundle.bundlePath);
//show alert
showAlert(NSAlertStyleInformational, NSLocalizedString(@"LuLu must run from within /Applications\r\n", @"LuLu must run from within /Applications\r\n"), NSLocalizedString(@"...please copy it into /Applications and re-launch.", @"...please copy it into /Applications and re-launch."), @[NSLocalizedString(@"OK",@"OK")]);
//exit
[NSApplication.sharedApplication terminate:self];
}
//first time?
// show/walk thru welcome screen(s)
// ...will call back here to complete initializations
if(YES == [self isFirstTime])
{
//dbg msg
os_log_debug(logHandle, "first launch, will kick off welcome window(s)");
//alloc window controller
welcomeWindowController = [[WelcomeWindowController alloc] initWithWindowNibName:@"Welcome"];
//set activation policy
[self setActivationPolicy];
//show window
[self.welcomeWindowController showWindow:self];
//make front
[[NSRunningApplication currentApplication] activateWithOptions:(NSApplicationActivateAllWindows | NSApplicationActivateIgnoringOtherApps)];
//make window front
[self.startupWindowController.window makeKeyAndOrderFront:nil];
//install (self as) login item
if(YES != toggleLoginItem(NSBundle.mainBundle.bundleURL, ACTION_INSTALL_FLAG))
{
//err msg
os_log_error(logHandle, "ERROR: failed to install self as login item");
}
//dbg msg
else
{
os_log_debug(logHandle, "installed self as login item");
}
}
//subsequent launches...
// launch extension & complete initializations
else
{
//dbg
os_log_debug(logHandle, "subsequent launch...");
//started by user?
// show startup msg....
if(YES == launchedByUser())
{
//dbg msg
os_log_debug(logHandle, "showing startup window...");
//alloc/init
startupWindowController = [[StartupWindowController alloc] initWithWindowNibName:@"StartupWindowController"];
//activate
if(@available(macOS 14.0, *)) {
[NSApp activate];
}
else
{
[NSApp activateIgnoringOtherApps:YES];
}
//make window front
[self.startupWindowController.window makeKeyAndOrderFront:nil];
//make it modal(ish)
[self.startupWindowController.window setLevel:NSPopUpMenuWindowLevel];
//show window
[self.startupWindowController showWindow:nil];
}
//grab OS version
version = NSProcessInfo.processInfo.operatingSystemVersion;
//macOS 15
// but less than 15.3? ...increase delay so users can see warning
if(version.majorVersion == 15 && version.minorVersion < 3) {
//3 seconds
delay = 3;
}
//wait a few seconds, so that startup window can show... then fade out
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, delay * NSEC_PER_SEC), dispatch_get_main_queue(),
^{
//fade out
fadeOut(self.startupWindowController.window, 1.0f);
//(re)activate extension
// this will call back to complete inits when done
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0),
^{
//extension
Extension* extension = nil;
//wait semaphore
dispatch_semaphore_t semaphore = 0;
//init extension object
extension = [[Extension alloc] init];
//init wait semaphore
semaphore = dispatch_semaphore_create(0);
//kick off extension activation request
[extension toggleExtension:ACTION_ACTIVATE reply:^(NSError* error)
{
//dbg msg
os_log_debug(logHandle, "extension 'activate' returned");
//error
if(error)
{
//err msg
os_log_error(logHandle, "ERROR: failed to activate extension");
//show error on main thread
dispatch_async(dispatch_get_main_queue(), ^{
//show alert
showAlert(NSAlertStyleCritical, NSLocalizedString(@"ERROR: activation failed", @"ERROR: activation failed"), NSLocalizedString(@"failed to activate system/network extension", @"failed to activate system/network extension"), @[NSLocalizedString(@"OK", @"OK")]);
//exit
[NSApplication.sharedApplication terminate:self];
});
return;
}
//dbg msg
os_log_debug(logHandle, "activated system extension, will now activate network filter...");
//(always) activate network filter
// side affect is that it launches system extension
if(YES != [[[Extension alloc] init] toggleNetworkExtension:ACTION_ACTIVATE])
{
//err msg
os_log_error(logHandle, "ERROR: failed to activate network filter");
//show alert/exit on main thread
dispatch_async(dispatch_get_main_queue(),
^{
//show alert
showAlert(NSAlertStyleCritical, NSLocalizedString(@"ERROR: activation failed", @"ERROR: activation failed"), NSLocalizedString(@"failed to activate network filter",@"failed to activate network filter"), @[NSLocalizedString(@"OK", @"OK")]);
//bye
[NSApplication.sharedApplication terminate:self];
});
}
//dbg msg
os_log_debug(logHandle, "network filter activated/enabled");
//wait to ensure extension is up an running
do
{
//dbg msg
os_log_debug(logHandle, "waiting for %{public}@", EXT_BUNDLE_ID);
//nap
[NSThread sleepForTimeInterval:0.25f];
} while(YES != [extension isExtensionRunning]);
//dbg msg
os_log_debug(logHandle, "%{public}@ is off and running", EXT_BUNDLE_ID);
//complete initialization on main thread
dispatch_async(dispatch_get_main_queue(), ^{
//complete initializations
[self completeInitialization:nil];
});
//signal semaphore
dispatch_semaphore_signal(semaphore);
}];
//dbg msg
os_log_debug(logHandle, "waiting system extension & network filter activation...");
//wait for extension semaphore
dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER);
});
});
}
bail:
return;
}
//first launch?
// check for install time(stamp)
-(BOOL)isFirstTime
{
return (nil == [[NSMutableDictionary dictionaryWithContentsOfFile:[INSTALL_DIRECTORY stringByAppendingPathComponent:PREFS_FILE]] objectForKey:PREF_INSTALL_TIMESTAMP]);
}
//handle user double-clicks
// app is (likely) already running as login item, so show (or) activate window
-(BOOL)applicationShouldHandleReopen:(NSApplication *)sender hasVisibleWindows:(BOOL)hasVisibleWindows
{
//extension
Extension* extension = nil;
//init extension object
extension = [[Extension alloc] init];
//dbg msg
os_log_debug(logHandle, "method '%s' invoked (hasVisibleWindows: %d)", __PRETTY_FUNCTION__, hasVisibleWindows);
//extention isn't running?
// show alert, otherwise things get confusing
if(YES != [extension isExtensionRunning])
{
//show alert
showAlert(NSAlertStyleInformational, NSLocalizedString(@"LuLu's Network Extension Is Not Running", @"LuLu's Network Extension Is Not Running"), NSLocalizedString(@"Extensions must be manually approved via System Settings (General > Login Items & Extensions > Network Extensions).",@"Extensions must be manually approved via System Settings (General > Login Items & Extensions > Network Extensions)."), @[NSLocalizedString(@"OK", @"OK")]);
//bail
goto bail;
}
//no visible window(s)
// default to show preferences
if(YES != hasVisibleWindows)
{
//show prefs
[self showPreferences:nil];
}
bail:
return NO;
}
//'rules' menu item handler
// alloc and show rules window
-(IBAction)showRules:(id)sender
{
//dbg msg
os_log_debug(logHandle, "method '%s' invoked", __PRETTY_FUNCTION__);
//alloc rules window controller
if(nil == self.rulesWindowController)
{
//alloc
rulesWindowController = [[RulesWindowController alloc] initWithWindowNibName:@"Rules"];
}
//configure (UI)
[self.rulesWindowController configure];
//make active
[self makeActive:self.rulesWindowController];
return;
}
//'preferences' menu item handler
// alloc and show preferences window
-(void)showPreferences:(NSString*)itemID
{
//dbg msg
os_log_debug(logHandle, "method '%s' invoked with %@", __PRETTY_FUNCTION__, itemID);
//alloc prefs window controller
if(nil == self.prefsWindowController)
{
//alloc
prefsWindowController = [[PrefsWindowController alloc] initWithWindowNibName:@"Preferences"];
}
//make active
[self makeActive:self.prefsWindowController];
//select tab
[self.prefsWindowController switchTo:itemID];
return;
}
//'about' menu item handler
// alloc/show the about window
-(IBAction)showAbout:(id)sender
{
//dbg msg
os_log_debug(logHandle, "method '%s' invoked", __PRETTY_FUNCTION__);
//alloc/init settings window
if(nil == self.aboutWindowController)
{
//alloc/init
aboutWindowController = [[AboutWindowController alloc] initWithWindowNibName:@"AboutWindow"];
}
//center window
[self.aboutWindowController.window center];
//show window
[self.aboutWindowController showWindow:self];
return;
}
//preferences changed
// for now, just check status bar icon setting
-(void)preferencesChanged:(NSDictionary*)preferences
{
//dbg msg
os_log_debug(logHandle, "method '%s' invoked", __PRETTY_FUNCTION__);
//trigger rules reload, because some prefs influence how rules are displayed
[[NSNotificationCenter defaultCenter] postNotificationName:RULES_CHANGED object:nil userInfo:nil];
//update status bar
[self toggleIcon:preferences];
return;
}
//profiles changed
// update preferences window and status bar menu
-(void)profilesChanged
{
//dbg msg
os_log_debug(logHandle, "method '%s' invoked", __PRETTY_FUNCTION__);
//tell preferences window
[self.prefsWindowController reload];
//tell status menu
[self.statusBarItemController setProfile];
return;
}
//close window handler
// close rules || pref window
-(IBAction)closeWindow:(id)sender
{
//dbg msg
os_log_debug(logHandle, "method '%s' invoked", __PRETTY_FUNCTION__);
//key window
NSWindow *keyWindow = nil;
//get key window
keyWindow = [[NSApplication sharedApplication] keyWindow];
//close
// but only for rules/pref/about window
if( (keyWindow != self.aboutWindowController.window) &&
(keyWindow != self.prefsWindowController.window) &&
(keyWindow != self.rulesWindowController.window) )
{
//dbg msg
os_log_debug(logHandle, "key window is not rules or pref window, so ignoring...");
//ignore
goto bail;
}
//close
[keyWindow close];
//set activation policy
[self setActivationPolicy];
bail:
return;
}
//make a window control/window front/active
-(void)makeActive:(NSWindowController*)windowController
{
//make foreground
[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
//center
[windowController.window center];
//make it key window
[windowController.window makeKeyAndOrderFront:self];
//front
[windowController.window orderFrontRegardless];
//show it
[windowController showWindow:self];
//activate
if(@available(macOS 14.0, *)) {
[NSApp activate];
}
else
{
[NSApp activateIgnoringOtherApps:YES];
}
//activate ...more!
[[NSRunningApplication currentApplication] activateWithOptions:(NSApplicationActivateAllWindows | NSApplicationActivateIgnoringOtherApps)];
return;
}
//toggle (status) bar icon
-(void)toggleIcon:(NSDictionary*)preferences
{
//dbg msg
os_log_debug(logHandle, "method '%s' invoked", __PRETTY_FUNCTION__);
//should run with icon?
// init and show status bar item
if(YES != [preferences[PREF_NO_ICON_MODE] boolValue])
{
//already showing?
if(nil != self.statusBarItemController)
{
//bail
goto bail;
}
//dbg msg
os_log_debug(logHandle, "initializing status bar item/menu");
//alloc/load status bar icon/menu
statusBarItemController = [[StatusBarItem alloc] init:self.statusMenu preferences:(NSDictionary*)preferences];
}
//run without icon
// remove status bar item
else
{
//dbg msg
os_log_debug(logHandle, "removing status bar item/menu");
//already removed?
if(nil == self.statusBarItemController)
{
//bail
goto bail;
}
//remove status item
[self.statusBarItemController removeStatusItem];
//unset
self.statusBarItemController = nil;
}
bail:
return;
}
//set app foreground/background
-(void)setActivationPolicy
{
//visible window
BOOL visibleWindow = NO;
//dbg msg
os_log_debug(logHandle, "method '%s' invoked", __PRETTY_FUNCTION__);
//find any visible windows
for(NSWindow* window in NSApp.windows)
{
//visible window?
// that's not status bar?
if( (YES == window.isVisible) &&
(YES != [window.className isEqualToString:@"_NSPopoverWindow"]) &&
(YES != [window.className isEqualToString:@"NSStatusBarWindow"]) )
{
//set flag
visibleWindow = YES;
//done
break;
}
}
//any windows?
// bring app to foreground
if(YES == visibleWindow)
{
//dbg msg
os_log_debug(logHandle, "window(s) visible, setting policy: NSApplicationActivationPolicyRegular");
//foreground
[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
}
//no more windows
// send app to background
else
{
//dbg msg
os_log_debug(logHandle, "window(s) not visible, setting policy: NSApplicationActivationPolicyAccessory");
//background
[NSApp setActivationPolicy:NSApplicationActivationPolicyAccessory];
}
return;
}
//finish up initializations
// includes enabling network ext if user hasn't disabled
-(void)completeInitialization:(NSDictionary*)initialPreferences
{
//preferences
NSDictionary* preferences = nil;
//dbg msg
os_log_debug(logHandle, "method '%s' invoked", __PRETTY_FUNCTION__);
//alloc array for alert (windows)
alerts = [NSMutableDictionary dictionary];
//init extension comms
// establishes connection to extension
xpcDaemonClient = [[XPCDaemonClient alloc] init];
//initial prefs?
// send to extension
if(nil != initialPreferences)
{
//set prefs
[xpcDaemonClient updatePreferences:initialPreferences];
}
//always (reset) disabled
// always want enabled on (restart)
preferences = [xpcDaemonClient updatePreferences:@{PREF_IS_DISABLED:@NO}];
//dbg msg
os_log_debug(logHandle, "loaded preferences %{public}@", preferences);
//run with status bar icon?
if(YES != [preferences[PREF_NO_ICON_MODE] boolValue])
{
//alloc/load nib
statusBarItemController = [[StatusBarItem alloc] init:self.statusMenu preferences:(NSDictionary*)preferences];
//dbg msg
os_log_debug(logHandle, "initialized/loaded status bar (icon/menu)");
}
else
{
//dbg msg
os_log_debug(logHandle, "running in 'no icon' mode (so no need for status bar)");
}
//cleanup any expired/temp rules
[xpcDaemonClient cleanupRules:NO];
//automatically check for updates?
// skipped if launched by user (e.g. first time run)
if( (YES != launchedByUser()) &&
(YES != [preferences[PREF_NO_UPDATE_MODE] boolValue]) )
{
//after a 30 seconds
// check for updates in background
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 30 * NSEC_PER_SEC), dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^
{
//dbg msg
os_log_debug(logHandle, "checking for update...");
//check
[self check4Update];
});
}
return;
}
//check for update
-(void)check4Update
{
//update obj
Update* update = nil;
//init update obj
update = [[Update alloc] init];
//check for update
// 'updateResponse newVersion:' method will be called when check is done
[update checkForUpdate:^(NSUInteger result, NSString* newVersion) {
//handle response
// new version, show popup
switch(result)
{
//error
case Update_Error:
os_log_error(logHandle, "ERROR: update check failed");
break;
//no updates
case Update_None:
os_log_debug(logHandle, "no updates available");
break;
//this version of macOS, not supported
case Update_NotSupported:
//dbg msg
os_log_debug(logHandle, "update available, but not for this version of macOS");
break;
//new version
// show update window
case Update_Available:
//dbg msg
os_log_debug(logHandle, "a new version (%@) is available", newVersion);
//alloc update window
self.updateWindowController = [[UpdateWindowController alloc] initWithWindowNibName:@"UpdateWindow"];
//configure
[self.updateWindowController configure:[NSString stringWithFormat:NSLocalizedString(@"a new version (%@) is available!",@"a new version (%@) is available!"), newVersion]];
//center window
[self.updateWindowController.window center];
//show it
[self.updateWindowController showWindow:self];
//invoke function in background that will make window modal
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
//make modal
makeModal(self.updateWindowController);
});
break;
}
}];
return;
}
//quit button handler
// do any cleanup, then exit
-(IBAction)quit:(id)sender
{
//response
NSModalResponse response = 0;
//dbg msg
os_log_debug(logHandle, "function '%s' invoked", __PRETTY_FUNCTION__);
//show alert
response = showAlert(NSAlertStyleInformational, NSLocalizedString(@"Quit LuLu?", @"Quit LuLu?"), NSLocalizedString(@"...this will terminate LuLu, until the next time you log in.", @"...this will terminate LuLu, until the next time you log in."), @[NSLocalizedString(@"Quit", @"Quit"), NSLocalizedString(@"Cancel", @"Cancel")]);
//show alert
// cancel? ignore
if(NSAlertSecondButtonReturn == response)
{
//dbg msg
os_log_debug(logHandle, "user canceled quitting");
//(re)background
[self setActivationPolicy];
}
//ok
// user wants to quit!
else
{
//dbg msg
os_log_debug(logHandle, "user confirmed quit");
//slight delay to let alert dismiss
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
//config obj
Configure* configure = [[Configure alloc] init];
//quit
[configure quit];
//and terminate
[NSApplication.sharedApplication terminate:self];
});
}
return;
}
//uninstall menu handler
// cleanup all the thingz!
-(IBAction)uninstall:(id)sender
{
//response
NSModalResponse response = 0;
//config obj
Configure* configure = nil;
//show alert
response = showAlert(NSAlertStyleInformational, NSLocalizedString(@"Uninstall LuLu?", @"Uninstall LuLu?"), NSLocalizedString(@"...this will fully remove LuLu from your Mac", @"...this will fully remove LuLu from your Mac"), @[NSLocalizedString(@"Uninstall", @"Uninstall"), NSLocalizedString(@"Cancel", @"Cancel")]);
//cancel? ignore
if(NSAlertSecondButtonReturn == response)
{
//dbg msg
os_log_debug(logHandle, "user canceled uninstalling");
//(re)background
[self setActivationPolicy];
}
//ok
// user wants to uninstall!
else
{
//dbg msg
os_log_debug(logHandle, "user confirmed uninstall");
//init
configure = [[Configure alloc] init];
//quit
if(YES != [configure uninstall])
{
//err msg
os_log_error(logHandle, "ERROR: uninstall failed");
}
//and terminate
[NSApplication.sharedApplication terminate:self];
}
bail:
return;
}
@end
================================================
FILE: LuLu/App/Assets.xcassets/Ancestry.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "parents any.pdf"
},
{
"idiom" : "mac",
"filename" : "parents light.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "parents dark.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"template-rendering-intent" : "template",
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/AppIcon.appiconset/Contents.json
================================================
{
"images" : [
{
"filename" : "icon_16x16.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "16x16"
},
{
"filename" : "icon_16x16@2x.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "16x16"
},
{
"filename" : "icon_32x32.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "32x32"
},
{
"filename" : "icon_32x32@2x.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "32x32"
},
{
"filename" : "icon_128x128.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "128x128"
},
{
"filename" : "icon_128x128@2x.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "128x128"
},
{
"filename" : "icon_256x256.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "256x256"
},
{
"filename" : "icon_256x256@2x.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "256x256"
},
{
"filename" : "icon_512x512.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "512x512"
},
{
"filename" : "icon_512x512@2x.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "512x512"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
================================================
FILE: LuLu/App/Assets.xcassets/Contents.json
================================================
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
================================================
FILE: LuLu/App/Assets.xcassets/FriendsFleet.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "darkMode.png"
},
{
"idiom" : "mac",
"filename" : "lightMode.png",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "darkMode.png",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/FriendsHuntress.imageset/Contents.json
================================================
{
"images" : [
{
"filename" : "darkMode.png",
"idiom" : "mac"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
],
"filename" : "lightMode.png",
"idiom" : "mac"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "darkMode.png",
"idiom" : "mac"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/FriendsJamf.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "darkMode.png"
},
{
"idiom" : "mac",
"filename" : "lightMode.png",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "darkMode.png",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/FriendsKandji.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "darkMode.png"
},
{
"idiom" : "mac",
"filename" : "lightMode.png",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "darkMode.png",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/FriendsMacPaw.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "darkMode.png"
},
{
"idiom" : "mac",
"filename" : "lightMode.png",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "darkMode.png",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/FriendsMalwarebytes.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "logo.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/FriendsPANW.imageset/Contents.json
================================================
{
"images" : [
{
"filename" : "darkMode.png",
"idiom" : "mac"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
],
"filename" : "lightMode.png",
"idiom" : "mac"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "darkMode.png",
"idiom" : "mac"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/FriendsSophos.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "sophos.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/FriendsiVerify.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "iVerify.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/Heart.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "heart_light-1.pdf"
},
{
"idiom" : "mac",
"filename" : "heart_light.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "heart_dark.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/Icon.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "LoginItem Any.pdf"
},
{
"idiom" : "mac",
"filename" : "LoginItem Light.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "LoginItem Dark.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/InstallAllow.imageset/Contents.json
================================================
{
"images" : [
{
"filename" : "allow.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
},
{
"filename" : "allow_es.png",
"idiom" : "universal",
"locale" : "es",
"scale" : "1x"
},
{
"idiom" : "universal",
"locale" : "es",
"scale" : "2x"
},
{
"idiom" : "universal",
"locale" : "es",
"scale" : "3x"
},
{
"filename" : "allow_ko.png",
"idiom" : "universal",
"locale" : "ko",
"scale" : "1x"
},
{
"idiom" : "universal",
"locale" : "ko",
"scale" : "2x"
},
{
"idiom" : "universal",
"locale" : "ko",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"localizable" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/InstallApprove.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "universal",
"filename" : "approve.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
},
{
"locale" : "es",
"idiom" : "universal",
"filename" : "approve_es.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"locale" : "es",
"scale" : "2x"
},
{
"idiom" : "universal",
"locale" : "es",
"scale" : "3x"
},
{
"filename" : "approve_ko.png",
"idiom" : "universal",
"locale" : "ko",
"scale" : "1x"
},
{
"idiom" : "universal",
"locale" : "ko",
"scale" : "2x"
},
{
"idiom" : "universal",
"locale" : "ko",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"localizable" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/InstallApprove_OLD.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "universal",
"filename" : "approve.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
},
{
"locale" : "es",
"idiom" : "universal",
"filename" : "approve_es.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"locale" : "es",
"scale" : "2x"
},
{
"idiom" : "universal",
"locale" : "es",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"localizable" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/InstallAuth.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "universal",
"filename" : "auth.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
},
{
"locale" : "es",
"idiom" : "universal",
"filename" : "auth_es.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"locale" : "es",
"scale" : "2x"
},
{
"idiom" : "universal",
"locale" : "es",
"scale" : "3x"
},
{
"filename" : "auth_ko.png",
"idiom" : "universal",
"locale" : "ko",
"scale" : "1x"
},
{
"idiom" : "universal",
"locale" : "ko",
"scale" : "2x"
},
{
"idiom" : "universal",
"locale" : "ko",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"localizable" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/InstallBlocked.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "universal",
"filename" : "blocked.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
},
{
"locale" : "es",
"idiom" : "universal",
"filename" : "blocked_es.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"locale" : "es",
"scale" : "2x"
},
{
"idiom" : "universal",
"locale" : "es",
"scale" : "3x"
},
{
"filename" : "blocked_ko.png",
"idiom" : "universal",
"locale" : "ko",
"scale" : "1x"
},
{
"idiom" : "universal",
"locale" : "ko",
"scale" : "2x"
},
{
"idiom" : "universal",
"locale" : "ko",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"localizable" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/LuLuText.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "lulu_text.pdf"
},
{
"idiom" : "mac",
"filename" : "lulu_text-1.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "lulu_text-2.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/PrefsList.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "icon.png"
},
{
"idiom" : "mac",
"filename" : "icon.png",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "icon.png",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/PrefsMode.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "prefsMode Any.pdf"
},
{
"idiom" : "mac",
"filename" : "prefsMode Light.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "prefsMode Dark.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/PrefsProfiles.imageset/Contents.json
================================================
{
"images" : [
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
],
"filename" : "profiles.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "profilesDark.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
],
"filename" : "profiles@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "profilesDark@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
],
"idiom" : "universal",
"scale" : "3x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
================================================
FILE: LuLu/App/Assets.xcassets/PrefsRules.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "prefsRules Any.pdf"
},
{
"idiom" : "mac",
"filename" : "prefsRules Light.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "prefsRules Dark.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/PrefsUpdate.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "prefsUpdate Any.pdf"
},
{
"idiom" : "mac",
"filename" : "prefsUpdate Light.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "prefsUpdate Dark.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/RulesAllow.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "rulesAllow Any.pdf"
},
{
"idiom" : "mac",
"filename" : "rulesAllow Light.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "rulesAllow Dark.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/RulesBlock.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "block Any.pdf"
},
{
"idiom" : "mac",
"filename" : "block Light.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "block Dark.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/RulesSystem.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "rulesSystem light.pdf"
},
{
"idiom" : "mac",
"filename" : "rulesSystem light-1.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "rulesSystem dark.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/Signed.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "signed Any.pdf"
},
{
"idiom" : "mac",
"filename" : "signed Light.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "signed Dark.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"template-rendering-intent" : "template",
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/SignedApple.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "signedApple Any.pdf"
},
{
"idiom" : "mac",
"filename" : "signedApple Light.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "signedApple Dark.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"template-rendering-intent" : "template",
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/SignedUnknown.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "Unknown any.pdf"
},
{
"idiom" : "mac",
"filename" : "Unknown light.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "Unknown dark.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"template-rendering-intent" : "template",
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/StatusActive.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "LoginItem StatusBar Active.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"template-rendering-intent" : "template",
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/StatusInactive.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "LoginItem StatusBar Inactive.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"template-rendering-intent" : "template",
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/Unsigned.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "unsigned Any.pdf"
},
{
"idiom" : "mac",
"filename" : "unsigned Light.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "unsigned Dark.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"template-rendering-intent" : "template",
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/VTIcon.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "VT Light.pdf"
},
{
"idiom" : "mac",
"filename" : "VT Any-1.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "VT Dark.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"template-rendering-intent" : "template",
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/allow.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "rulesAllow Any.pdf"
},
{
"idiom" : "mac",
"filename" : "rulesAllow Light.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "rulesAllow Dark.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/block.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "block Any.pdf"
},
{
"idiom" : "mac",
"filename" : "block Light.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "block Dark.pdf",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/refresh.imageset/Contents.json
================================================
{
"images" : [
{
"filename" : "refresh.png",
"idiom" : "mac"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
],
"filename" : "refresh.png",
"idiom" : "mac"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "refresh.png",
"idiom" : "mac"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/rulesRecent.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "rulesRecent.png"
},
{
"idiom" : "mac",
"filename" : "rulesRecent.png",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "rulesRecent.png",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Assets.xcassets/rulesUnknown.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "mac",
"filename" : "rulesUnknown.png"
},
{
"idiom" : "mac",
"filename" : "rulesUnknown.png",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
]
},
{
"idiom" : "mac",
"filename" : "rulesUnknown.png",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"preserves-vector-representation" : true
}
}
================================================
FILE: LuLu/App/Base.lproj/AboutWindow.xib
================================================
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="23727" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="23727"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="AboutWindowController">
<connections>
<outlet property="patrons" destination="j2X-Ub-niY" id="gfG-o9-RbL"/>
<outlet property="versionLabel" destination="OSm-xS-Dmd" id="luW-4O-fYe"/>
<outlet property="window" destination="F0z-JX-Cv5" id="gIp-Ho-8D9"/>
</connections>
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<window allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" id="F0z-JX-Cv5">
<windowStyleMask key="styleMask" titled="YES" closable="YES" texturedBackground="YES"/>
<rect key="contentRect" x="196" y="240" width="486" height="301"/>
<rect key="screenRect" x="0.0" y="0.0" width="3440" height="1415"/>
<view key="contentView" id="se5-gp-TjO">
<rect key="frame" x="0.0" y="0.0" width="486" height="301"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="lEv-Wj-6S5">
<rect key="frame" x="10" y="190" width="110" height="106"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="Icon" id="xKf-GK-m0k"/>
</imageView>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Eaf-yA-bbe">
<rect key="frame" x="158" y="231" width="116" height="50"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="LuLuText" id="Ws8-bD-j2R"/>
</imageView>
<button tag="101" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="HZZ-Es-mpy">
<rect key="frame" x="13" y="13" width="165" height="32"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="push" title="More Information" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="J9x-sM-h9S">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" size="13" name="Menlo-Regular"/>
</buttonCell>
<connections>
<action selector="buttonHandler:" target="-2" id="Cgx-f4-Thr"/>
</connections>
</button>
<scrollView fixedFrame="YES" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5if-J7-OZf">
<rect key="frame" x="20" y="68" width="446" height="97"/>
<autoresizingMask key="autoresizingMask"/>
<clipView key="contentView" drawsBackground="NO" id="WiG-CC-JV3">
<rect key="frame" x="1" y="1" width="444" height="95"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textView editable="NO" importsGraphics="NO" verticallyResizable="YES" usesFontPanel="YES" findStyle="panel" continuousSpellChecking="YES" allowsUndo="YES" usesRuler="YES" allowsNonContiguousLayout="YES" quoteSubstitution="YES" dashSubstitution="YES" spellingCorrection="YES" smartInsertDelete="YES" id="j2X-Ub-niY">
<rect key="frame" x="0.0" y="0.0" width="444" height="95"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
<size key="minSize" width="444" height="95"/>
<size key="maxSize" width="463" height="10000000"/>
<attributedString key="textStorage">
<fragment content="list here...">
<attributes>
<color key="NSColor" name="textColor" catalog="System" colorSpace="catalog"/>
<font key="NSFont" size="13" name="Menlo-Regular"/>
<paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
</attributedString>
<color key="insertionPointColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
</textView>
</subviews>
</clipView>
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="YES" id="iNL-vM-cLm">
<rect key="frame" x="-100" y="-100" width="87" height="18"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
<scroller key="verticalScroller" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="6bw-3O-hPc">
<rect key="frame" x="429" y="1" width="16" height="95"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
</scrollView>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="fZJ-sG-ZuJ">
<rect key="frame" x="20" y="166" width="447" height="19"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Patrons & Friends" id="fJg-qw-wDf">
<font key="font" size="13" name="Menlo-Regular"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="OSm-xS-Dmd">
<rect key="frame" x="158" y="217" width="182" height="19"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Version:" id="bBK-v0-ypq">
<font key="font" size="13" name="Menlo-Regular"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<button tag="100" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="xnd-Gw-0o8">
<rect key="frame" x="308" y="13" width="165" height="32"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="push" title="Support Us!" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="6g3-Pg-x3P">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" size="13" name="Menlo-Regular"/>
</buttonCell>
<connections>
<action selector="buttonHandler:" target="-2" id="gP0-s7-o6h"/>
</connections>
</button>
</subviews>
</view>
<connections>
<outlet property="delegate" destination="-2" id="0bl-1N-AYu"/>
</connections>
<point key="canvasLocation" x="350" y="335.5"/>
</window>
</objects>
<resources>
<image name="Icon" width="144" height="144"/>
<image name="LuLuText" width="1268" height="385"/>
</resources>
</document>
================================================
FILE: LuLu/App/Base.lproj/AddRule.xib
================================================
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="24128" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24128"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="AddRuleWindowController">
<connections>
<outlet property="addButton" destination="XX0-l9-AZe" id="I68-1X-bav"/>
<outlet property="allowButton" destination="LyI-TV-Syi" id="oVm-9P-98o"/>
<outlet property="blockButton" destination="FGP-wa-tQy" id="kO9-Qb-tef"/>
<outlet property="endpointAddr" destination="6aQ-uZ-MQT" id="ksf-G1-hEj"/>
<outlet property="endpointPort" destination="SsU-Va-Vcn" id="0pF-sT-O1X"/>
<outlet property="icon" destination="Z5k-JM-ou9" id="Tt0-DT-cDR"/>
<outlet property="isEndpointAddrRegex" destination="AdX-rG-UUh" id="JJu-54-veK"/>
<outlet property="path" destination="TMj-aG-iTU" id="tz6-F4-QBt"/>
<outlet property="window" destination="F0z-JX-Cv5" id="gIp-Ho-8D9"/>
</connections>
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<window title="Add Rule (for outgoing connections)" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="F0z-JX-Cv5">
<windowStyleMask key="styleMask" titled="YES" closable="YES" resizable="YES"/>
<rect key="contentRect" x="196" y="240" width="508" height="325"/>
<rect key="screenRect" x="0.0" y="0.0" width="3440" height="1410"/>
<value key="minSize" type="size" width="508" height="325"/>
<value key="maxSize" type="size" width="800" height="325"/>
<view key="contentView" id="se5-gp-TjO">
<rect key="frame" x="0.0" y="0.0" width="508" height="325"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<button ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="FGP-wa-tQy">
<rect key="frame" x="103" y="52" width="69" height="16"/>
<buttonCell key="cell" type="radio" title=" Block" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="JJl-Lz-apr">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" size="13" name="Menlo-Regular"/>
</buttonCell>
<connections>
<action selector="radioButtonsHandler:" target="-2" id="liR-62-kN9"/>
</connections>
</button>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ZX5-FR-Ua8">
<rect key="frame" x="402" y="219" width="86" height="21"/>
<buttonCell key="cell" type="push" title="Browse" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="OoX-aE-Hgf">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" size="13" name="Menlo-Regular"/>
</buttonCell>
<constraints>
<constraint firstAttribute="height" constant="21" id="2tj-XI-LkF"/>
<constraint firstAttribute="width" constant="86" id="kBa-5d-iLO"/>
</constraints>
<connections>
<action selector="browseButtonHandler:" target="-2" id="PT1-Ty-Np7"/>
</connections>
</button>
<textField focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="TMj-aG-iTU">
<rect key="frame" x="103" y="248" width="385" height="24"/>
<constraints>
<constraint firstAttribute="height" constant="24" id="mOR-Su-gK2"/>
</constraints>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="Bon-iR-8FO">
<font key="font" size="13" name="Menlo-Regular"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="lP5-by-JA2">
<rect key="frame" x="101" y="272" width="389" height="17"/>
<constraints>
<constraint firstAttribute="height" constant="17" id="FPl-4Y-c6j"/>
<constraint firstAttribute="width" constant="385" id="XgJ-Ba-s1A"/>
</constraints>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Program path" id="tc1-pS-Wns">
<font key="font" size="13" name="Menlo-Regular"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="6aQ-uZ-MQT">
<rect key="frame" x="103" y="138" width="385" height="24"/>
<constraints>
<constraint firstAttribute="height" constant="24" id="azV-rq-4Id"/>
</constraints>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" placeholderString="*" drawsBackground="YES" id="QWe-2U-lfn">
<font key="font" size="13" name="Menlo-Regular"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" horizontalCompressionResistancePriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="wLJ-6S-WeA">
<rect key="frame" x="101" y="167" width="169" height="15"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Remote address/domain" id="7yf-wW-FZC">
<font key="font" size="13" name="Menlo-Regular"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="SsU-Va-Vcn">
<rect key="frame" x="103" y="84" width="385" height="24"/>
<constraints>
<constraint firstAttribute="height" constant="24" id="rzM-Fb-Vh0"/>
</constraints>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" placeholderString="*" drawsBackground="YES" id="kXW-Xv-Fc4">
<font key="font" size="13" name="Menlo-Regular"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="3qP-ad-9Fq">
<rect key="frame" x="101" y="108" width="389" height="17"/>
<constraints>
<constraint firstAttribute="width" constant="385" id="jwv-kR-E8V"/>
<constraint firstAttribute="height" constant="17" id="o6F-EB-EIp"/>
</constraints>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Remote port" id="5ic-Om-d8g">
<font key="font" size="13" name="Menlo-Regular"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Z5k-JM-ou9">
<rect key="frame" x="20" y="228" width="66" height="64"/>
<constraints>
<constraint firstAttribute="height" constant="64" id="4sh-vk-SxP"/>
<constraint firstAttribute="width" constant="66" id="Swd-b7-aKa"/>
</constraints>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyUpOrDown" id="h8l-JG-MHD"/>
</imageView>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Rer-xE-vmi">
<rect key="frame" x="294" y="20" width="86" height="21"/>
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="fX0-Jq-Okq">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" size="13" name="Menlo-Regular"/>
<string key="keyEquivalent" base64-UTF8="YES">
Gw
</string>
</buttonCell>
<constraints>
<constraint firstAttribute="width" constant="86" id="4xU-ew-nvK"/>
<constraint firstAttribute="height" constant="21" id="ret-kW-s6x"/>
</constraints>
<connections>
<action selector="cancelButtonHandler:" target="-2" id="Fws-JZ-RMQ"/>
</connections>
</button>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="XX0-l9-AZe">
<rect key="frame" x="402" y="20" width="86" height="21"/>
<buttonCell key="cell" type="push" title="Add" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="V5P-DF-wCP">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" size="13" name="Menlo-Bold"/>
<string key="keyEquivalent" base64-UTF8="YES">
Gw
</string>
</buttonCell>
<constraints>
<constraint firstAttribute="width" constant="86" id="L0j-xG-Jk9"/>
<constraint firstAttribute="height" constant="21" id="Pno-Yh-Pt3"/>
</constraints>
<connections>
<action selector="addButtonHandler:" target="-2" id="aca-Io-ckN"/>
</connections>
</button>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="AdX-rG-UUh">
<rect key="frame" x="281" y="167" width="65" height="15"/>
<buttonCell key="cell" type="check" title="regex?" bezelStyle="regularSquare" imagePosition="left" controlSize="small" scrollable="YES" lineBreakMode="clipping" inset="2" id="FCA-Cv-yT3">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" size="13" name="Menlo-Regular"/>
</buttonCell>
</button>
<button tag="1" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="LyI-TV-Syi">
<rect key="frame" x="188" y="52" width="69" height="16"/>
<buttonCell key="cell" type="radio" title=" Allow" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="oCK-aR-Ek4">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" size="13" name="Menlo-Regular"/>
</buttonCell>
<connections>
<action selector="radioButtonsHandler:" target="-2" id="Si1-r7-F3A"/>
</connections>
</button>
</subviews>
<constraints>
<constraint firstItem="6aQ-uZ-MQT" firstAttribute="leading" secondItem="se5-gp-TjO" secondAttribute="leading" constant="103" id="1jf-Ef-7vq"/>
<constraint firstItem="FGP-wa-tQy" firstAttribute="leading" secondItem="se5-gp-TjO" secondAttribute="leading" constant="103" id="2mc-m2-eFc"/>
<constraint firstItem="3qP-ad-9Fq" firstAttribute="top" secondItem="se5-gp-TjO" secondAttribute="top" constant="200" id="3nW-ko-4GU"/>
<constraint firstItem="AdX-rG-UUh" firstAttribute="top" secondItem="se5-gp-TjO" secondAttribute="top" constant="143" id="8r9-wl-qej"/>
<constraint firstItem="6aQ-uZ-MQT" firstAttribute="top" secondItem="se5-gp-TjO" secondAttribute="top" constant="163" id="9lb-LS-1f3"/>
<constraint firstItem="Z5k-JM-ou9" firstAttribute="leading" secondItem="se5-gp-TjO" secondAttribute="leading" constant="20" id="Bsm-eQ-WBT"/>
<constraint firstItem="Z5k-JM-ou9" firstAttribute="top" secondItem="se5-gp-TjO" secondAttribute="top" constant="33" id="DDj-SN-vYJ"/>
<constraint firstItem="wLJ-6S-WeA" firstAttribute="leading" secondItem="se5-gp-TjO" secondAttribute="leading" constant="103" id="EVc-Xa-4Xc"/>
<constraint firstItem="ZX5-FR-Ua8" firstAttribute="top" secondItem="TMj-aG-iTU" secondAttribute="bottom" constant="8" id="G0s-dZ-cD4"/>
<constraint firstAttribute="trailing" secondItem="TMj-aG-iTU" secondAttribute="trailing" constant="20" id="GRZ-S9-nJ5"/>
<constraint firstAttribute="trailing" secondItem="6aQ-uZ-MQT" secondAttribute="trailing" constant="20" id="J7N-Ca-drt"/>
<constraint firstAttribute="trailing" secondItem="SsU-Va-Vcn" secondAttribute="trailing" constant="20" id="Okk-id-3l5"/>
<constraint firstItem="LyI-TV-Syi" firstAttribute="leading" secondItem="FGP-wa-tQy" secondAttribute="trailing" constant="16" id="Oz3-4w-4NS"/>
<constraint firstItem="wLJ-6S-WeA" firstAttribute="top" secondItem="se5-gp-TjO" secondAttribute="top" constant="143" id="VvY-5T-5g7"/>
<constraint firstItem="SsU-Va-Vcn" firstAttribute="leading" secondItem="se5-gp-TjO" secondAttribute="leading" constant="103" id="YjJ-dJ-sL6"/>
<constraint firstItem="TMj-aG-iTU" firstAttribute="leading" secondItem="Z5k-JM-ou9" secondAttribute="trailing" constant="17" id="cFA-dk-4v5"/>
<constraint firstItem="3qP-ad-9Fq" firstAttribute="leading" secondItem="se5-gp-TjO" secondAttribute="leading" constant="103" id="dhM-Ur-ySU"/>
<constraint firstItem="lP5-by-JA2" firstAttribute="leading" secondItem="Z5k-JM-ou9" secondAttribute="trailing" constant="17" id="e9P-Va-2jR"/>
<constraint firstItem="TMj-aG-iTU" firstAttribute="top" secondItem="lP5-by-JA2" secondAttribute="bottom" id="hS0-ei-rsR"/>
<constraint firstAttribute="bottom" secondItem="Rer-xE-vmi" secondAttribute="bottom" constant="20" id="jnx-vr-7F5"/>
<constraint firstAttribute="bottom" secondItem="XX0-l9-AZe" secondAttribute="bottom" constant="20" id="laB-iV-gzu"/>
<constraint firstAttribute="trailing" secondItem="ZX5-FR-Ua8" secondAttribute="trailing" constant="20" id="o1Z-5c-UnM"/>
<constraint firstItem="SsU-Va-Vcn" firstAttribute="top" secondItem="3qP-ad-9Fq" secondAttribute="bottom" id="qNc-5S-RhQ"/>
<constraint firstItem="lP5-by-JA2" firstAttribute="top" secondItem="se5-gp-TjO" secondAttribute="top" constant="36" id="qv3-Nt-0qN"/>
<constraint firstAttribute="trailing" secondItem="XX0-l9-AZe" secondAttribute="trailing" constant="20" id="qzI-8A-AIe"/>
<constraint firstItem="AdX-rG-UUh" firstAttribute="leading" secondItem="wLJ-6S-WeA" secondAttribute="trailing" constant="13" id="uTM-gY-m6s"/>
<constraint firstItem="XX0-l9-AZe" firstAttribute="leading" secondItem="Rer-xE-vmi" secondAttribute="trailing" constant="22" id="xjF-Lb-cnT"/>
</constraints>
</view>
<connections>
<outlet property="delegate" destination="-2" id="0bl-1N-AYu"/>
</connections>
<point key="canvasLocation" x="154" y="188.5"/>
</window>
</objects>
</document>
================================================
FILE: LuLu/App/Base.lproj/AlertWindow.xib
================================================
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="24128" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24128"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="AlertWindowController">
<connections>
<outlet property="actionScope" destination="TSg-6a-DVi" id="ScH-Wk-QmL"/>
<outlet property="alertMessage" destination="HWR-Ex-H2f" id="1p4-Ju-Y8P"/>
<outlet property="allowButton" destination="yg5-Dg-d1n" id="cc0-x6-Fb4"/>
<outlet property="ancestryButton" destination="32G-48-5jq" id="7ng-Oo-qJS"/>
<outlet property="ancestryOutline" destination="1Kj-Rh-cPo" id="aWT-E0-V77"/>
<outlet property="ancestryPopover" destination="25r-fL-QMB" id="7Fk-dG-0ME"/>
<outlet property="ancestryTextCell" destination="9sX-aC-eeQ" id="YUy-If-CGd"/>
<outlet property="ancestryView" destination="Kwa-G9-AmS" id="t8F-9N-ZWL"/>
<outlet property="ancestryViewController" destination="7sP-aX-0Jo" id="Ivg-e4-CP3"/>
<outlet property="ipAddress" destination="0yy-0X-fb5" id="3oB-wP-kb8"/>
<outlet property="options" destination="xge-2z-T9l" id="o5W-uL-UdB"/>
<outlet property="portProto" destination="5Lz-xv-ErN" id="9GP-2B-1ki"/>
<outlet property="processArgs" destination="ndx-hj-9e4" id="LMk-Ad-2I4"/>
<outlet property="processID" destination="Nf4-ZN-jcK" id="rWg-or-ZRT"/>
<outlet property="processIcon" destination="fJv-Iu-3gy" id="T6F-QS-Nvk"/>
<outlet property="processName" destination="i1i-s4-Q02" id="6qK-Sy-fuG"/>
<outlet property="processPath" destination="Jci-ZZ-1Ro" id="BPX-tC-0fb"/>
<outlet property="reverseDNS" destination="BQn-nb-yUE" id="4hZ-5J-YhR"/>
<outlet property="ruleDurationAlways" destination="n0b-XP-ZUr" id="jmT-9a-gCW"/>
<outlet property="ruleDurationCustom" destination="Xf4-RL-C1a" id="jZh-xe-ARc"/>
<outlet property="ruleDurationHours" destination="hbn-rf-Xhf" id="WDD-zX-0W5"/>
<outlet property="ruleDurationMinutes" destination="yCo-33-DDd" id="BYS-XV-Vt6"/>
<outlet property="ruleDurationProcess" destination="FV9-wU-TBa" id="yUN-2u-Qlm"/>
<outlet property="showOptions" destination="QJt-zQ-EMG" id="e6f-Ko-bu3"/>
<outlet property="signingInfoButton" destination="FqM-TW-r0o" id="rKm-F3-llh"/>
<outlet property="signingInfoPopover" destination="Vmt-MD-3aB" id="j62-vV-hvI"/>
<outlet property="timeStamp" destination="qWw-SE-uh0" id="9XD-1e-EJI"/>
<outlet property="virusTotalButton" destination="PJQ-Iq-93l" id="S5x-rJ-XJD"/>
<outlet property="virusTotalPopover" destination="jsE-Vn-PhK" id="uMq-2j-5rE"/>
<outlet property="window" destination="F0z-JX-Cv5" id="gIp-Ho-8D9"/>
</connections>
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<window identifier="Alert" title="LuLu Alert" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="F0z-JX-Cv5">
<windowStyleMask key="styleMask" titled="YES" resizable="YES"/>
<rect key="contentRect" x="949" y="509" width="667" height="452"/>
<rect key="screenRect" x="0.0" y="0.0" width="1280" height="770"/>
<value key="minSize" type="size" width="745" height="244"/>
<value key="maxSize" type="size" width="1337" height="582"/>
<view key="contentView" wantsLayer="YES" id="se5-gp-TjO">
<rect key="frame" x="0.0" y="0.0" width="667" height="452"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="FqM-TW-r0o" userLabel="Signing Info">
<rect key="frame" x="26" y="252" width="37" height="43"/>
<buttonCell key="cell" type="bevel" bezelStyle="rounded" image="Signed" imagePosition="only" alignment="center" imageScaling="proportionallyUpOrDown" inset="2" id="jqN-df-6uA">
<behavior key="behavior" pushIn="YES" changeContents="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<constraints>
<constraint firstAttribute="width" constant="37" id="cxX-UP-eNr"/>
<constraint firstAttribute="height" constant="43" id="t2h-ly-aa9"/>
</constraints>
<connections>
<action selector="signingInfoButtonHandler:" target="-2" id="wdK-FI-wn5"/>
</connections>
</button>
<button horizontalHuggingPriority="750" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="QJt-zQ-EMG">
<rect key="frame" x="29" y="222" width="13" height="13"/>
<buttonCell key="cell" type="disclosureTriangle" bezelStyle="disclosure" imagePosition="only" alignment="left" controlSize="large" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="eTb-0U-yh9">
<behavior key="behavior" pushIn="YES" changeBackground="YES" changeGray="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<connections>
<action selector="toggleOptionsView:" target="-2" id="zZi-4N-YkL"/>
</connections>
</button>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="tWx-6z-uXa">
<rect key="frame" x="43" y="221" width="296" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="JbN-x8-MlU"/>
<constraint firstAttribute="width" constant="292" id="NrD-pm-grO"/>
</constraints>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Details & Options" id="FYF-6N-pro">
<font key="font" size="13" name="Menlo-Regular"/>
<color key="textColor" name="secondaryLabelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<button tag="102" translatesAutoresizingMaskIntoConstraints="NO" id="32G-48-5jq" userLabel="ancestryButton">
<rect key="frame" x="79" y="252" width="37" height="37"/>
<buttonCell key="cell" type="bevel" bezelStyle="regularSquare" image="Ancestry" imagePosition="only" alignment="center" imageScaling="axesIndependently" inset="2" id="WFc-i8-hne">
<behavior key="behavior" pushIn="YES" changeContents="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<constraints>
<constraint firstAttribute="height" constant="37" id="DUe-bV-VqQ"/>
<constraint firstAttribute="width" constant="37" id="ZVl-sm-7bC"/>
</constraints>
<connections>
<action selector="ancestryButtonHandler:" target="-2" id="swJ-GY-xR7"/>
</connections>
</button>
<button tag="101" translatesAutoresizingMaskIntoConstraints="NO" id="PJQ-Iq-93l" userLabel="virusTotalButton">
<rect key="frame" x="134" y="258" width="31" height="28"/>
<buttonCell key="cell" type="bevel" bezelStyle="regularSquare" image="VTIcon" imagePosition="only" alignment="center" imageScaling="axesIndependently" inset="2" id="8lj-Ke-Kyw">
<behavior key="behavior" pushIn="YES" changeContents="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<constraints>
<constraint firstAttribute="height" constant="28" id="blO-ys-XS5"/>
<constraint firstAttribute="width" constant="31" id="m1o-zM-X6Y"/>
</constraints>
<connections>
<action selector="vtButtonHandler:" target="-2" id="Skx-8d-U7n"/>
</connections>
</button>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="i1i-s4-Q02">
<rect key="frame" x="174" y="387" width="475" height="26"/>
<constraints>
<constraint firstAttribute="height" constant="26" id="TlQ-zK-g5h"/>
</constraints>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" truncatesLastVisibleLine="YES" selectable="YES" allowsUndo="NO" sendsActionOnEndEditing="YES" title="Process Name" id="JEi-1U-vkU">
<font key="font" size="23" name="Menlo-Bold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Aix-a5-CPT">
<rect key="frame" x="340" y="253" width="135" height="32"/>
<buttonCell key="cell" type="push" title="Block" bezelStyle="rounded" alignment="center" controlSize="large" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="W18-Ba-X7J">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" size="15" name="Menlo-Bold"/>
</buttonCell>
<constraints>
<constraint firstAttribute="height" constant="32" id="ExL-7P-xXi"/>
<constraint firstAttribute="width" constant="135" id="PSu-sb-mSm"/>
</constraints>
<connections>
<action selector="handleUserResponse:" target="-2" id="M1m-yw-PMX"/>
</connections>
</button>
<customView id="xge-2z-T9l" userLabel="Options View">
<rect key="frame" x="0.0" y="0.0" width="667" height="214"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" ambiguous="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="3UE-gu-DMS">
<rect key="frame" x="26" y="172" width="61" height="13"/>
<constraints>
<constraint firstAttribute="height" constant="13" id="3d2-xL-uK6"/>
<constraint firstAttribute="width" constant="116" id="EQY-yh-HwX"/>
</constraints>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="pid:" id="HZu-Op-XHi">
<font key="font" size="10" name="Menlo-Regular"/>
<color key="textColor" name="secondaryLabelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" ambiguous="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="0KC-Qa-4MU">
<rect key="frame" x="26" y="155" width="61" height="13"/>
<constraints>
<constraint firstAttribute="height" constant="13" id="2uJ-qs-d2A"/>
<constraint firstAttribute="width" constant="116" id="725-wI-vXi"/>
</constraints>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="args:" id="T20-eE-vRR">
<font key="font" size="10" name="Menlo-Regular"/>
<color key="textColor" name="secondaryLabelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" ambiguous="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="B2m-tX-bhM">
<rect key="frame" x="26" y="137" width="61" height="13"/>
<constraints>
<constraint firstAttribute="height" constant="13" id="5wZ-x4-EKn"/>
<constraint firstAttribute="width" constant="116" id="TdO-UU-WIl"/>
</constraints>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="path:" id="Gqr-cR-TAF">
<font key="font" size="10" name="Menlo-Regular"/>
<color key="textColor" name="secondaryLabelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" horizontalCompressionResistancePriority="499" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Nf4-ZN-jcK" userLabel="processID">
<rect key="frame" x="95" y="172" width="228" height="13"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" lineBreakMode="truncatingMiddle" truncatesLastVisibleLine="YES" selectable="YES" allowsUndo="NO" sendsActionOnEndEditing="YES" id="ezD-RZ-q5S">
<font key="font" size="11" name="Menlo-Regular"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" ambiguous="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="CvP-W3-IE1">
<rect key="frame" x="338" y="155" width="120" height="13"/>
<constraints>
<constraint firstAttribute="width" constant="116" id="TkJ-p4-gfN"/>
<constraint firstAttribute="height" constant="1
gitextract_0dvkl5nv/
├── .github/
│ └── FUNDING.yml
├── .gitignore
├── DMG/
│ ├── LuLu.icns
│ └── createDMG.sh
├── LICENSE.md
├── LuLu/
│ ├── App/
│ │ ├── 3rd-party/
│ │ │ ├── OrderedDictionary.h
│ │ │ └── OrderedDictionary.m
│ │ ├── AboutWindowController.h
│ │ ├── AboutWindowController.m
│ │ ├── AddRuleWindowController.h
│ │ ├── AddRuleWindowController.m
│ │ ├── AlertWindowController.h
│ │ ├── AlertWindowController.m
│ │ ├── App.entitlements
│ │ ├── AppDelegate.h
│ │ ├── AppDelegate.m
│ │ ├── Assets.xcassets/
│ │ │ ├── Ancestry.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── AppIcon.appiconset/
│ │ │ │ └── Contents.json
│ │ │ ├── Contents.json
│ │ │ ├── FriendsFleet.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── FriendsHuntress.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── FriendsJamf.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── FriendsKandji.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── FriendsMacPaw.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── FriendsMalwarebytes.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── FriendsPANW.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── FriendsSophos.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── FriendsiVerify.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── Heart.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── Icon.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── InstallAllow.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── InstallApprove.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── InstallApprove_OLD.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── InstallAuth.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── InstallBlocked.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── LuLuText.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── PrefsList.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── PrefsMode.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── PrefsProfiles.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── PrefsRules.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── PrefsUpdate.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── RulesAllow.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── RulesBlock.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── RulesSystem.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── Signed.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── SignedApple.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── SignedUnknown.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── StatusActive.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── StatusInactive.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── Unsigned.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── VTIcon.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── allow.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── block.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── refresh.imageset/
│ │ │ │ └── Contents.json
│ │ │ ├── rulesRecent.imageset/
│ │ │ │ └── Contents.json
│ │ │ └── rulesUnknown.imageset/
│ │ │ └── Contents.json
│ │ ├── Base.lproj/
│ │ │ ├── AboutWindow.xib
│ │ │ ├── AddRule.xib
│ │ │ ├── AlertWindow.xib
│ │ │ ├── ItemPaths.xib
│ │ │ ├── MainMenu.xib
│ │ │ ├── Preferences.xib
│ │ │ ├── Rules.xib
│ │ │ ├── StartupWindowController.xib
│ │ │ ├── StatusBarPopover.xib
│ │ │ ├── UpdateWindow.xib
│ │ │ └── Welcome.xib
│ │ ├── Configure.h
│ │ ├── Configure.m
│ │ ├── Extension.h
│ │ ├── Extension.m
│ │ ├── Info.plist
│ │ ├── InfoPlist.xcstrings
│ │ ├── ItemPathsWindowController.h
│ │ ├── ItemPathsWindowController.m
│ │ ├── NSApplicationKeyEvents.h
│ │ ├── NSApplicationKeyEvents.m
│ │ ├── ParentsWindowController.h
│ │ ├── ParentsWindowController.m
│ │ ├── PrefsWindowController.h
│ │ ├── PrefsWindowController.m
│ │ ├── RuleRow.h
│ │ ├── RuleRow.m
│ │ ├── RulesMenuController.h
│ │ ├── RulesMenuController.m
│ │ ├── RulesWindowController.h
│ │ ├── RulesWindowController.m
│ │ ├── SigningInfoViewController.h
│ │ ├── SigningInfoViewController.m
│ │ ├── StartupWindowController.h
│ │ ├── StartupWindowController.m
│ │ ├── StatusBarItem.h
│ │ ├── StatusBarItem.m
│ │ ├── StatusBarPopoverController.h
│ │ ├── StatusBarPopoverController.m
│ │ ├── Update.h
│ │ ├── Update.m
│ │ ├── UpdateWindowController.h
│ │ ├── UpdateWindowController.m
│ │ ├── WelcomeWindowController.h
│ │ ├── WelcomeWindowController.m
│ │ ├── XPCDaemonClient.h
│ │ ├── XPCDaemonClient.m
│ │ ├── XPCUser.h
│ │ ├── XPCUser.m
│ │ ├── instructions.psd
│ │ ├── main.m
│ │ ├── mul.lproj/
│ │ │ ├── AboutWindow.xcstrings
│ │ │ ├── AddRule.xcstrings
│ │ │ ├── AlertWindow.xcstrings
│ │ │ ├── ItemPaths.xcstrings
│ │ │ ├── MainMenu.xcstrings
│ │ │ ├── Preferences.xcstrings
│ │ │ ├── Rules.xcstrings
│ │ │ ├── StartupWindowController.xcstrings
│ │ │ ├── StatusBarPopover.xcstrings
│ │ │ ├── UpdateWindow.xcstrings
│ │ │ └── Welcome.xcstrings
│ │ └── patrons.txt
│ ├── Extension/
│ │ ├── Alerts.h
│ │ ├── Alerts.m
│ │ ├── Binary.h
│ │ ├── Binary.m
│ │ ├── BlockOrAllowList.h
│ │ ├── BlockOrAllowList.m
│ │ ├── Extension.entitlements
│ │ ├── FilterDataProvider.h
│ │ ├── FilterDataProvider.m
│ │ ├── GrayList.h
│ │ ├── GrayList.m
│ │ ├── Info.plist
│ │ ├── Preferences.h
│ │ ├── Preferences.m
│ │ ├── Process.h
│ │ ├── Process.m
│ │ ├── Profiles.h
│ │ ├── Profiles.m
│ │ ├── Rules.h
│ │ ├── Rules.m
│ │ ├── XPCDaemon.h
│ │ ├── XPCDaemon.m
│ │ ├── XPCListener.h
│ │ ├── XPCListener.m
│ │ ├── XPCUserClient.h
│ │ ├── XPCUserClient.m
│ │ ├── main.h
│ │ ├── main.m
│ │ └── procInfo.h
│ ├── LuLu.xcodeproj/
│ │ ├── project.pbxproj
│ │ ├── project.xcworkspace/
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata/
│ │ │ └── IDEWorkspaceChecks.plist
│ │ └── xcshareddata/
│ │ └── xcschemes/
│ │ ├── Extension.xcscheme
│ │ └── LuLu.xcscheme
│ ├── Shared/
│ │ ├── Localizable.xcstrings
│ │ ├── Rule.h
│ │ ├── Rule.m
│ │ ├── XPCDaemonProto.h
│ │ ├── XPCUserProto.h
│ │ ├── consts.h
│ │ ├── signing.h
│ │ ├── signing.m
│ │ ├── utilities.h
│ │ └── utilities.m
│ └── Tests/
│ ├── README.md
│ ├── run_passive_mode_tests.sh
│ └── test_passive_mode_improvements.m
├── README.md
├── README_zh-Hans.md
├── README_zh-Hant.md
└── lulu.xcworkspace/
├── contents.xcworkspacedata
└── xcshareddata/
└── IDEWorkspaceChecks.plist
SYMBOL INDEX (17 symbols across 16 files)
FILE: LuLu/App/3rd-party/OrderedDictionary.h
function interface (line 26) | interface OrderedDictionary : NSMutableDictionary
FILE: LuLu/App/AboutWindowController.h
function interface (line 12) | interface AboutWindowController : NSWindowController <NSWindowDelegate>
FILE: LuLu/App/PrefsWindowController.h
type profileViews (line 117) | enum profileViews
FILE: LuLu/App/SigningInfoViewController.h
function interface (line 17) | interface SigningInfoViewController : NSViewController <NSPopoverDelegate>
FILE: LuLu/App/StartupWindowController.h
function interface (line 11) | interface StartupWindowController : NSWindowController <NSWindowDelegate>
FILE: LuLu/App/UpdateWindowController.h
function interface (line 12) | interface UpdateWindowController : NSWindowController <NSWindowDelegate>
FILE: LuLu/App/XPCDaemonClient.h
function interface (line 14) | interface XPCDaemonClient : NSObject
FILE: LuLu/App/XPCUser.h
function interface (line 15) | interface XPCUser : NSObject <XPCUserProtocol>
FILE: LuLu/Extension/Binary.h
function interface (line 19) | interface Binary : NSObject
FILE: LuLu/Extension/Rules.h
function interface (line 24) | interface Rules : NSObject
FILE: LuLu/Extension/XPCDaemon.h
function interface (line 15) | interface XPCDaemon : NSObject <XPCDaemonProtocol>
FILE: LuLu/Extension/XPCListener.h
function interface (line 19) | interface XPCListener : NSObject <NSXPCListenerDelegate>
FILE: LuLu/Extension/XPCUserClient.h
function interface (line 14) | interface XPCUserClient : NSObject
FILE: LuLu/Extension/procInfo.h
type Signer (line 32) | enum Signer{None, Apple, AppStore, DevID, AdHoc}
FILE: LuLu/Shared/Rule.h
function interface (line 16) | interface Rule : NSObject <NSSecureCoding>
FILE: LuLu/Shared/consts.h
type Signer (line 14) | enum Signer{None, Apple, AppStore, DevID, AdHoc}
type UpdateStatus (line 441) | typedef enum {Update_Error, Update_None, Update_NotSupported, Update_Ava...
Condensed preview — 171 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (1,806K chars).
[
{
"path": ".github/FUNDING.yml",
"chars": 93,
"preview": "# These are supported funding model platforms\n\ngithub: objective-see\npatreon: objective_see\n\n"
},
{
"path": ".gitignore",
"chars": 650,
"preview": "# Xcode\n#\n# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore\n\n"
},
{
"path": "DMG/createDMG.sh",
"chars": 603,
"preview": "VERSION=$(/usr/libexec/PlistBuddy -c \"Print CFBundleVersion\" \"Release/LuLu.app/Contents/Info.plist\")\n\nprintf \"\\nCreating"
},
{
"path": "LICENSE.md",
"chars": 35149,
"preview": " GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
},
{
"path": "LuLu/App/3rd-party/OrderedDictionary.h",
"chars": 1313,
"preview": "//\n// OrderedDictionary.h\n// OrderedDictionary\n//\n// Created by Matt Gallagher on 19/12/08.\n// Copyright 2008 Matt G"
},
{
"path": "LuLu/App/3rd-party/OrderedDictionary.m",
"chars": 3521,
"preview": "//\n// OrderedDictionary.m\n// OrderedDictionary\n//\n// Created by Matt Gallagher on 19/12/08.\n// Copyright 2008 Matt G"
},
{
"path": "LuLu/App/AboutWindowController.h",
"chars": 659,
"preview": "//\n// file: AboutWindowController.h\n// project: lulu (main app)\n// description: 'about' window controller (header)\n//"
},
{
"path": "LuLu/App/AboutWindowController.m",
"chars": 2463,
"preview": "//\n// file: AboutWindowController.m\n// project: lulu (main app)\n// description: 'about' window controller\n//\n// crea"
},
{
"path": "LuLu/App/AddRuleWindowController.h",
"chars": 1509,
"preview": "//\n// file: AddRuleWindowController.h\n// project: lulu\n// description: 'add/edit rule' window controller (header)\n//\n"
},
{
"path": "LuLu/App/AddRuleWindowController.m",
"chars": 10281,
"preview": "//\n// file: AddRuleWindowController.h\n// project: lulu\n// description: 'add/edit rule' window controller\n//\n// creat"
},
{
"path": "LuLu/App/AlertWindowController.h",
"chars": 3114,
"preview": "//\n// file: AlertWindowController.h\n// project: lulu (login item)\n// description: window controller for main firewall"
},
{
"path": "LuLu/App/AlertWindowController.m",
"chars": 29522,
"preview": "//\n// file: AlertWindowController.m\n// project: lulu\n// description: window controller for main firewall alert\n//\n// "
},
{
"path": "LuLu/App/App.entitlements",
"chars": 526,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "LuLu/App/AppDelegate.h",
"chars": 2527,
"preview": "//\n// AppDelegate.h\n// LuLu\n//\n// Created by Patrick Wardle on 8/1/20.\n// Copyright (c) 2020 Objective-See. All righ"
},
{
"path": "LuLu/App/AppDelegate.m",
"chars": 26228,
"preview": "//\n// AppDelegate.m\n// LuLu\n//\n// Created by Patrick Wardle on 8/1/20.\n// Copyright (c) 2020 Objective-See. All righ"
},
{
"path": "LuLu/App/Assets.xcassets/Ancestry.imageset/Contents.json",
"chars": 657,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"parents any.pdf\"\n },\n {\n \"idiom\" : \"mac\",\n "
},
{
"path": "LuLu/App/Assets.xcassets/AppIcon.appiconset/Contents.json",
"chars": 1301,
"preview": "{\n \"images\" : [\n {\n \"filename\" : \"icon_16x16.png\",\n \"idiom\" : \"mac\",\n \"scale\" : \"1x\",\n \"size\" : "
},
{
"path": "LuLu/App/Assets.xcassets/Contents.json",
"chars": 63,
"preview": "{\n \"info\" : {\n \"author\" : \"xcode\",\n \"version\" : 1\n }\n}\n"
},
{
"path": "LuLu/App/Assets.xcassets/FriendsFleet.imageset/Contents.json",
"chars": 601,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"darkMode.png\"\n },\n {\n \"idiom\" : \"mac\",\n "
},
{
"path": "LuLu/App/Assets.xcassets/FriendsHuntress.imageset/Contents.json",
"chars": 601,
"preview": "{\n \"images\" : [\n {\n \"filename\" : \"darkMode.png\",\n \"idiom\" : \"mac\"\n },\n {\n \"appearances\" : [\n "
},
{
"path": "LuLu/App/Assets.xcassets/FriendsJamf.imageset/Contents.json",
"chars": 601,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"darkMode.png\"\n },\n {\n \"idiom\" : \"mac\",\n "
},
{
"path": "LuLu/App/Assets.xcassets/FriendsKandji.imageset/Contents.json",
"chars": 601,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"darkMode.png\"\n },\n {\n \"idiom\" : \"mac\",\n "
},
{
"path": "LuLu/App/Assets.xcassets/FriendsMacPaw.imageset/Contents.json",
"chars": 601,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"darkMode.png\"\n },\n {\n \"idiom\" : \"mac\",\n "
},
{
"path": "LuLu/App/Assets.xcassets/FriendsMalwarebytes.imageset/Contents.json",
"chars": 217,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"logo.png\"\n }\n ],\n \"info\" : {\n \"version\" : 1,\n "
},
{
"path": "LuLu/App/Assets.xcassets/FriendsPANW.imageset/Contents.json",
"chars": 601,
"preview": "{\n \"images\" : [\n {\n \"filename\" : \"darkMode.png\",\n \"idiom\" : \"mac\"\n },\n {\n \"appearances\" : [\n "
},
{
"path": "LuLu/App/Assets.xcassets/FriendsSophos.imageset/Contents.json",
"chars": 219,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"sophos.png\"\n }\n ],\n \"info\" : {\n \"version\" : 1,"
},
{
"path": "LuLu/App/Assets.xcassets/FriendsiVerify.imageset/Contents.json",
"chars": 220,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"iVerify.png\"\n }\n ],\n \"info\" : {\n \"version\" : 1"
},
{
"path": "LuLu/App/Assets.xcassets/Heart.imageset/Contents.json",
"chars": 609,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"heart_light-1.pdf\"\n },\n {\n \"idiom\" : \"mac\","
},
{
"path": "LuLu/App/Assets.xcassets/Icon.imageset/Contents.json",
"chars": 617,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"LoginItem Any.pdf\"\n },\n {\n \"idiom\" : \"mac\","
},
{
"path": "LuLu/App/Assets.xcassets/InstallAllow.imageset/Contents.json",
"chars": 938,
"preview": "{\n \"images\" : [\n {\n \"filename\" : \"allow.png\",\n \"idiom\" : \"universal\",\n \"scale\" : \"1x\"\n },\n {\n "
},
{
"path": "LuLu/App/Assets.xcassets/InstallApprove.imageset/Contents.json",
"chars": 943,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"universal\",\n \"filename\" : \"approve.png\",\n \"scale\" : \"1x\"\n },\n {\n"
},
{
"path": "LuLu/App/Assets.xcassets/InstallApprove_OLD.imageset/Contents.json",
"chars": 648,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"universal\",\n \"filename\" : \"approve.png\",\n \"scale\" : \"1x\"\n },\n {\n"
},
{
"path": "LuLu/App/Assets.xcassets/InstallAuth.imageset/Contents.json",
"chars": 934,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"universal\",\n \"filename\" : \"auth.png\",\n \"scale\" : \"1x\"\n },\n {\n "
},
{
"path": "LuLu/App/Assets.xcassets/InstallBlocked.imageset/Contents.json",
"chars": 943,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"universal\",\n \"filename\" : \"blocked.png\",\n \"scale\" : \"1x\"\n },\n {\n"
},
{
"path": "LuLu/App/Assets.xcassets/LuLuText.imageset/Contents.json",
"chars": 606,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"lulu_text.pdf\"\n },\n {\n \"idiom\" : \"mac\",\n "
},
{
"path": "LuLu/App/Assets.xcassets/PrefsList.imageset/Contents.json",
"chars": 588,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"icon.png\"\n },\n {\n \"idiom\" : \"mac\",\n \"f"
},
{
"path": "LuLu/App/Assets.xcassets/PrefsMode.imageset/Contents.json",
"chars": 617,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"prefsMode Any.pdf\"\n },\n {\n \"idiom\" : \"mac\","
},
{
"path": "LuLu/App/Assets.xcassets/PrefsProfiles.imageset/Contents.json",
"chars": 1331,
"preview": "{\n \"images\" : [\n {\n \"appearances\" : [\n {\n \"appearance\" : \"luminosity\",\n \"value\" : \"lig"
},
{
"path": "LuLu/App/Assets.xcassets/PrefsRules.imageset/Contents.json",
"chars": 620,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"prefsRules Any.pdf\"\n },\n {\n \"idiom\" : \"mac\""
},
{
"path": "LuLu/App/Assets.xcassets/PrefsUpdate.imageset/Contents.json",
"chars": 623,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"prefsUpdate Any.pdf\"\n },\n {\n \"idiom\" : \"mac"
},
{
"path": "LuLu/App/Assets.xcassets/RulesAllow.imageset/Contents.json",
"chars": 620,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"rulesAllow Any.pdf\"\n },\n {\n \"idiom\" : \"mac\""
},
{
"path": "LuLu/App/Assets.xcassets/RulesBlock.imageset/Contents.json",
"chars": 605,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"block Any.pdf\"\n },\n {\n \"idiom\" : \"mac\",\n "
},
{
"path": "LuLu/App/Assets.xcassets/RulesSystem.imageset/Contents.json",
"chars": 627,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"rulesSystem light.pdf\"\n },\n {\n \"idiom\" : \"m"
},
{
"path": "LuLu/App/Assets.xcassets/Signed.imageset/Contents.json",
"chars": 654,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"signed Any.pdf\"\n },\n {\n \"idiom\" : \"mac\",\n "
},
{
"path": "LuLu/App/Assets.xcassets/SignedApple.imageset/Contents.json",
"chars": 669,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"signedApple Any.pdf\"\n },\n {\n \"idiom\" : \"mac"
},
{
"path": "LuLu/App/Assets.xcassets/SignedUnknown.imageset/Contents.json",
"chars": 657,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"Unknown any.pdf\"\n },\n {\n \"idiom\" : \"mac\",\n "
},
{
"path": "LuLu/App/Assets.xcassets/StatusActive.imageset/Contents.json",
"chars": 284,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"LoginItem StatusBar Active.pdf\"\n }\n ],\n \"info\" : "
},
{
"path": "LuLu/App/Assets.xcassets/StatusInactive.imageset/Contents.json",
"chars": 286,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"LoginItem StatusBar Inactive.pdf\"\n }\n ],\n \"info\" "
},
{
"path": "LuLu/App/Assets.xcassets/Unsigned.imageset/Contents.json",
"chars": 660,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"unsigned Any.pdf\"\n },\n {\n \"idiom\" : \"mac\",\n"
},
{
"path": "LuLu/App/Assets.xcassets/VTIcon.imageset/Contents.json",
"chars": 644,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"VT Light.pdf\"\n },\n {\n \"idiom\" : \"mac\",\n "
},
{
"path": "LuLu/App/Assets.xcassets/allow.imageset/Contents.json",
"chars": 620,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"rulesAllow Any.pdf\"\n },\n {\n \"idiom\" : \"mac\""
},
{
"path": "LuLu/App/Assets.xcassets/block.imageset/Contents.json",
"chars": 605,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"block Any.pdf\"\n },\n {\n \"idiom\" : \"mac\",\n "
},
{
"path": "LuLu/App/Assets.xcassets/refresh.imageset/Contents.json",
"chars": 597,
"preview": "{\n \"images\" : [\n {\n \"filename\" : \"refresh.png\",\n \"idiom\" : \"mac\"\n },\n {\n \"appearances\" : [\n "
},
{
"path": "LuLu/App/Assets.xcassets/rulesRecent.imageset/Contents.json",
"chars": 609,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"rulesRecent.png\"\n },\n {\n \"idiom\" : \"mac\",\n "
},
{
"path": "LuLu/App/Assets.xcassets/rulesUnknown.imageset/Contents.json",
"chars": 612,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"mac\",\n \"filename\" : \"rulesUnknown.png\"\n },\n {\n \"idiom\" : \"mac\",\n"
},
{
"path": "LuLu/App/Base.lproj/AboutWindow.xib",
"chars": 10597,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion"
},
{
"path": "LuLu/App/Base.lproj/AddRule.xib",
"chars": 19480,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion"
},
{
"path": "LuLu/App/Base.lproj/AlertWindow.xib",
"chars": 75609,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion"
},
{
"path": "LuLu/App/Base.lproj/ItemPaths.xib",
"chars": 6753,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion"
},
{
"path": "LuLu/App/Base.lproj/MainMenu.xib",
"chars": 7311,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion"
},
{
"path": "LuLu/App/Base.lproj/Preferences.xib",
"chars": 80916,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion"
},
{
"path": "LuLu/App/Base.lproj/Rules.xib",
"chars": 35851,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion"
},
{
"path": "LuLu/App/Base.lproj/StartupWindowController.xib",
"chars": 5848,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion"
},
{
"path": "LuLu/App/Base.lproj/StatusBarPopover.xib",
"chars": 4453,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion"
},
{
"path": "LuLu/App/Base.lproj/UpdateWindow.xib",
"chars": 5133,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion"
},
{
"path": "LuLu/App/Base.lproj/Welcome.xib",
"chars": 44772,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion"
},
{
"path": "LuLu/App/Configure.h",
"chars": 365,
"preview": "//\n// Configure.h\n// LuLu\n//\n// Created by Patrick Wardle on 2/6/24.\n// Copyright © 2024 Objective-See. All rights r"
},
{
"path": "LuLu/App/Configure.m",
"chars": 10162,
"preview": "//\n// Configure.m\n// LuLu\n//\n// Created by Patrick Wardle on 2/6/24.\n// Copyright © 2024 Objective-See. All rights r"
},
{
"path": "LuLu/App/Extension.h",
"chars": 762,
"preview": "//\n// Extension.h\n// LuLu\n//\n// Created by Patrick Wardle on 9/11/20.\n// Copyright (c) 2020 Objective-See. All right"
},
{
"path": "LuLu/App/Extension.m",
"chars": 9242,
"preview": "//\n// Extension.m\n// LuLu\n//\n// Created by Patrick Wardle on 9/11/20.\n// Copyright (c) 2020 Objective-See. All right"
},
{
"path": "LuLu/App/Info.plist",
"chars": 1265,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "LuLu/App/InfoPlist.xcstrings",
"chars": 3204,
"preview": "{\n \"sourceLanguage\" : \"en\",\n \"strings\" : {\n \"CFBundleName\" : {\n \"comment\" : \"Bundle name\",\n \"extractionSt"
},
{
"path": "LuLu/App/ItemPathsWindowController.h",
"chars": 563,
"preview": "//\n// ItemPathsWindowController.h\n// LuLu\n//\n// Created by Patrick Wardle on 9/19/20.\n// Copyright (c) 2020 Objectiv"
},
{
"path": "LuLu/App/ItemPathsWindowController.m",
"chars": 4902,
"preview": "//\n// ItemPathsWindowController.m\n// LuLu\n//\n// Created by Patrick Wardle on 9/19/20.\n// Copyright (c) 2020 Objectiv"
},
{
"path": "LuLu/App/NSApplicationKeyEvents.h",
"chars": 286,
"preview": "//\n// file: NSApplicationKeyEvents.h\n// project: LuLu\n// description: adds support for keyboard shortcuts (header)\n//"
},
{
"path": "LuLu/App/NSApplicationKeyEvents.m",
"chars": 4105,
"preview": "//\n// file: NSApplicationKeyEvents.h\n// project: LuLu\n// description: adds support for keyboard shortcuts (header)\n//"
},
{
"path": "LuLu/App/ParentsWindowController.h",
"chars": 475,
"preview": "//\n// file: ParentsWindowController.h\n// project: lulu (login item)\n// description: window controller for process hei"
},
{
"path": "LuLu/App/ParentsWindowController.m",
"chars": 2474,
"preview": "//\n// file: ParentsWindowController.m\n// project: lulu (login item)\n// description: window controller for process hei"
},
{
"path": "LuLu/App/PrefsWindowController.h",
"chars": 3397,
"preview": "//\n// file: PrefsWindowController.h\n// project: lulu (main app)\n// description: preferences window controller (header"
},
{
"path": "LuLu/App/PrefsWindowController.m",
"chars": 41224,
"preview": "//\n// file: PrefsWindowController.h\n// project: lulu (main app)\n// description: preferences window controller (header"
},
{
"path": "LuLu/App/RuleRow.h",
"chars": 254,
"preview": "//\n// file: RuleRow.h\n// project: lulu (main app)\n// description: row for 'rules' table (header)\n//\n// created by Pa"
},
{
"path": "LuLu/App/RuleRow.m",
"chars": 1251,
"preview": "//\n// file: RuleRow.m\n// project: lulu (main app)\n// description: row for 'rules' table\n//\n// created by Patrick War"
},
{
"path": "LuLu/App/RulesMenuController.h",
"chars": 426,
"preview": "//\n// RulesMenuController.h\n// LuLu\n//\n// Created by Patrick Wardle on 1/30/24.\n// Copyright © 2024 Objective-See. A"
},
{
"path": "LuLu/App/RulesMenuController.m",
"chars": 12958,
"preview": "//\n// RulesMenuController.m\n// LuLu\n//\n// Created by Patrick Wardle on 1/30/24.\n// Copyright © 2024 Objective-See. A"
},
{
"path": "LuLu/App/RulesWindowController.h",
"chars": 2515,
"preview": "//\n// file: RulesWindowController.h\n// project: lulu (main app)\n// description: window controller for 'rules' table ("
},
{
"path": "LuLu/App/RulesWindowController.m",
"chars": 48895,
"preview": "//\n// file: RulesWindowController.m\n// project: lulu (main app)\n// description: window controller for 'rules' table\n/"
},
{
"path": "LuLu/App/SigningInfoViewController.h",
"chars": 685,
"preview": "//\n// file: SigningInfoViewController\n// project: lulu (login item)\n// description: view controller for signing info "
},
{
"path": "LuLu/App/SigningInfoViewController.m",
"chars": 5952,
"preview": "//\n// file: SigningInfoViewController\n// project: lulu (login item)\n// description: view controller for signing info "
},
{
"path": "LuLu/App/StartupWindowController.h",
"chars": 412,
"preview": "//\n// file: StartupWindowController.h\n//\n// created by Patrick Wardle\n// copyright (c) 2024 Objective-See. All rights"
},
{
"path": "LuLu/App/StartupWindowController.m",
"chars": 1753,
"preview": "//\n// file: StartupWindowController.m\n//\n// created by Patrick Wardle\n// copyright (c) 2024 Objective-See. All rights"
},
{
"path": "LuLu/App/StatusBarItem.h",
"chars": 822,
"preview": "//\n// file: StatusBarMenu.h\n// project: lulu (login item)\n// description: menu handler for status bar icon (header)\n/"
},
{
"path": "LuLu/App/StatusBarItem.m",
"chars": 15737,
"preview": "//\n// file: StatusBarMenu.m\n// project: lulu (login item)\n// description: menu handler for status bar icon\n//\n// cre"
},
{
"path": "LuLu/App/StatusBarPopoverController.h",
"chars": 297,
"preview": "//\n// file: StatusBarPopoverController.h\n// project: lulu (login item)\n// description: popover for status bar (header"
},
{
"path": "LuLu/App/StatusBarPopoverController.m",
"chars": 491,
"preview": "//\n// file: StatusBarPopoverController.m\n// project: lulu (login item)\n// description: popover for status bar\n//\n// "
},
{
"path": "LuLu/App/Update.h",
"chars": 521,
"preview": "//\n// file: Update.h\n// project: lulu (shared)\n// description: checks for new versions of LuLu (header)\n//\n// create"
},
{
"path": "LuLu/App/Update.m",
"chars": 5104,
"preview": "//\n// file: Update.m\n// project: lulu (shared)\n// description: checks for new versions of LuLu\n//\n// created by Patr"
},
{
"path": "LuLu/App/UpdateWindowController.h",
"chars": 761,
"preview": "//\n// file: UpdateWindowController.m\n// project: lulu\n// description: window handler for update window/popup (header)"
},
{
"path": "LuLu/App/UpdateWindowController.m",
"chars": 2367,
"preview": "//\n// file: UpdateWindowController.m\n// project: lulu\n// description: window handler for update window/popup\n//\n// c"
},
{
"path": "LuLu/App/WelcomeWindowController.h",
"chars": 1481,
"preview": "//\n// LinkWindowController.h\n// LuLu\n//\n// Created by Patrick Wardle on 1/25/18.\n// Copyright (c) 2018 Objective-See"
},
{
"path": "LuLu/App/WelcomeWindowController.m",
"chars": 12443,
"preview": "//\n// file: WelcomeWindowController.m\n// project: lulu (main app)\n// description: menu handler for status bar icon\n//"
},
{
"path": "LuLu/App/XPCDaemonClient.h",
"chars": 1369,
"preview": "//\n// file: XPCDaemonClient.h\n// project: lulu (shared)\n// description: talk to daemon via XPC (header)\n//\n// create"
},
{
"path": "LuLu/App/XPCDaemonClient.m",
"chars": 12294,
"preview": "//\n// file: XPCDaemonClient.m\n// project: lulu (shared)\n// description: talk to daemon via XPC (header)\n//\n// create"
},
{
"path": "LuLu/App/XPCUser.h",
"chars": 318,
"preview": "//\n// file: XPCUser.h\n// project: lulu (login item)\n// description: user XPC methods (header)\n//\n// created by Patri"
},
{
"path": "LuLu/App/XPCUser.m",
"chars": 6580,
"preview": "//\n// file: XPCUser.m\n// project: lulu (login item)\n// description: user XPC methods\n//\n// created by Patrick Wardle"
},
{
"path": "LuLu/App/main.m",
"chars": 4695,
"preview": "//\n// main.m\n// LuLu\n//\n// Created by Patrick Wardle on 8/1/20.\n// Copyright (c) 2020 Objective-See. All rights rese"
},
{
"path": "LuLu/App/mul.lproj/AboutWindow.xcstrings",
"chars": 8273,
"preview": "{\n \"sourceLanguage\" : \"en\",\n \"strings\" : {\n \"6g3-Pg-x3P.title\" : {\n \"comment\" : \"Class = \\\"NSButtonCell\\\"; tit"
},
{
"path": "LuLu/App/mul.lproj/AddRule.xcstrings",
"chars": 23985,
"preview": "{\n \"sourceLanguage\" : \"en\",\n \"strings\" : {\n \"5ic-Om-d8g.title\" : {\n \"comment\" : \"Class = \\\"NSTextFieldCell\\\"; "
},
{
"path": "LuLu/App/mul.lproj/AlertWindow.xcstrings",
"chars": 57405,
"preview": "{\n \"sourceLanguage\" : \"en\",\n \"strings\" : {\n \"1zg-95-QM7.title\" : {\n \"comment\" : \"Class = \\\"NSTextFieldCell\\\"; "
},
{
"path": "LuLu/App/mul.lproj/ItemPaths.xcstrings",
"chars": 4012,
"preview": "{\n \"sourceLanguage\" : \"en\",\n \"strings\" : {\n \"NhE-Zh-Scd.title\" : {\n \"comment\" : \"Class = \\\"NSTextFieldCell\\\"; "
},
{
"path": "LuLu/App/mul.lproj/MainMenu.xcstrings",
"chars": 49811,
"preview": "{\n \"sourceLanguage\" : \"en\",\n \"strings\" : {\n \"0Y1-Pq-6Fc.title\" : {\n \"comment\" : \"Class = \\\"NSMenuItem\\\"; title"
},
{
"path": "LuLu/App/mul.lproj/Preferences.xcstrings",
"chars": 124734,
"preview": "{\n \"sourceLanguage\" : \"en\",\n \"strings\" : {\n \"2qr-2x-A3U.title\" : {\n \"comment\" : \"Class = \\\"NSButtonCell\\\"; tit"
},
{
"path": "LuLu/App/mul.lproj/Rules.xcstrings",
"chars": 37234,
"preview": "{\n \"sourceLanguage\" : \"en\",\n \"strings\" : {\n \"2yS-Gr-1bI.title\" : {\n \"comment\" : \"Class = \\\"NSTextFieldCell\\\"; "
},
{
"path": "LuLu/App/mul.lproj/StartupWindowController.xcstrings",
"chars": 5415,
"preview": "{\n \"sourceLanguage\" : \"en\",\n \"strings\" : {\n \"tj8-5e-Vlc.title\" : {\n \"comment\" : \"Class = \\\"NSTextFieldCell\\\"; "
},
{
"path": "LuLu/App/mul.lproj/StatusBarPopover.xcstrings",
"chars": 6165,
"preview": "{\n \"sourceLanguage\" : \"en\",\n \"strings\" : {\n \"2jG-uf-4XV.title\" : {\n \"comment\" : \"Class = \\\"NSButtonCell\\\"; tit"
},
{
"path": "LuLu/App/mul.lproj/UpdateWindow.xcstrings",
"chars": 4093,
"preview": "{\n \"sourceLanguage\" : \"en\",\n \"strings\" : {\n \"F0z-JX-Cv5.title\" : {\n \"comment\" : \"Class = \\\"NSWindow\\\"; title ="
},
{
"path": "LuLu/App/mul.lproj/Welcome.xcstrings",
"chars": 59136,
"preview": "{\n \"sourceLanguage\" : \"en\",\n \"strings\" : {\n \"3aO-AI-YtY.title\" : {\n \"comment\" : \"Class = \\\"NSTextFieldCell\\\"; "
},
{
"path": "LuLu/App/patrons.txt",
"chars": 306,
"preview": "Patrons (2^6+):\nJan Koum, Matt Mullenweg, Christian Blümlein, Shain Singh, Andreas Fink, Nuno, Rabi Rob Thomas, Mikhail "
},
{
"path": "LuLu/Extension/Alerts.h",
"chars": 1115,
"preview": "//\n// file: Alerts.h\n// project: lulu (launch daemon)\n// description: alert related logic/tracking (header)\n//\n// cr"
},
{
"path": "LuLu/Extension/Alerts.m",
"chars": 4306,
"preview": "//\n// file: Alerts.m\n// project: lulu (launch daemon)\n// description: alert related logic/tracking\n//\n// created by "
},
{
"path": "LuLu/Extension/Binary.h",
"chars": 1380,
"preview": "//\n// Binary.h\n// LuLu\n//\n// Created by Patrick Wardle on 8/27/20.\n// Copyright (c) 2020 Objective-See. All rights r"
},
{
"path": "LuLu/Extension/Binary.m",
"chars": 5407,
"preview": "//\n// File: Binary.m\n// Project: Lulu\n//\n// Created by: Patrick Wardle\n// Copyright: 2017 Objective-See\n//\n\n#import"
},
{
"path": "LuLu/Extension/BlockOrAllowList.h",
"chars": 774,
"preview": "//\n// BlockOrAllowList.h\n// Extension\n//\n// Created by Patrick Wardle on 11/6/20.\n// Copyright © 2020 Objective-See."
},
{
"path": "LuLu/Extension/BlockOrAllowList.m",
"chars": 7326,
"preview": "//\n// BlockOrAllowList.m\n// Extension\n//\n// Created by Patrick Wardle on 11/6/20.\n// Copyright © 2020 Objective-See."
},
{
"path": "LuLu/Extension/Extension.entitlements",
"chars": 601,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "LuLu/Extension/FilterDataProvider.h",
"chars": 668,
"preview": "//\n// FilterDataProvider.h\n// LuLu\n//\n// Created by Patrick Wardle on 8/1/20.\n// Copyright (c) 2020 Objective-See. A"
},
{
"path": "LuLu/Extension/FilterDataProvider.m",
"chars": 37856,
"preview": "//\n// FilterDataProvider.m\n// LuLu\n//\n// Created by Patrick Wardle on 8/1/20.\n// Copyright (c) 2020 Objective-See. A"
},
{
"path": "LuLu/Extension/GrayList.h",
"chars": 478,
"preview": "//\n// file: GrayList.h\n// project: lulu (launch daemon)\n// description: gray listed binaries (header)\n//\n// created "
},
{
"path": "LuLu/Extension/GrayList.m",
"chars": 2446,
"preview": "//\n// file: GrayList.m\n// project: lulu (launch daemon)\n// description: gray listed binaries\n//\n// created by Patric"
},
{
"path": "LuLu/Extension/Info.plist",
"chars": 1446,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "LuLu/Extension/Preferences.h",
"chars": 768,
"preview": "//\n// Preferences.h\n// launchDaemon\n//\n// Created by Patrick Wardle on 2/22/18.\n// Copyright (c) 2018 Objective-See."
},
{
"path": "LuLu/Extension/Preferences.m",
"chars": 7796,
"preview": "//\n// Preferences.m\n// launchDaemon\n//\n// Created by Patrick Wardle on 2/22/18.\n// Copyright (c) 2018 Objective-See."
},
{
"path": "LuLu/Extension/Process.h",
"chars": 1213,
"preview": "//\n// Process.h\n// LuLu\n//\n// Created by Patrick Wardle on 8/27/20.\n// Copyright (c) 2020 Objective-See. All rights "
},
{
"path": "LuLu/Extension/Process.m",
"chars": 11314,
"preview": "//\n// File: Process.m\n// Project: Lulu\n//\n// Created by: Patrick Wardle\n// Copyright: 2017 Objective-See\n//\n\n#impor"
},
{
"path": "LuLu/Extension/Profiles.h",
"chars": 467,
"preview": "//\n// Profiles.h\n//\n// Created by Patrick Wardle on 06/21/25.\n// Copyright (c) 2025 Objective-See. All rights reserve"
},
{
"path": "LuLu/Extension/Profiles.m",
"chars": 6722,
"preview": "//\n// Profiles.m\n//\n// Created by Patrick Wardle on 06/21/25.\n// Copyright (c) 2025 Objective-See. All rights reserve"
},
{
"path": "LuLu/Extension/Rules.h",
"chars": 1416,
"preview": "//\n// file: Rules.h\n// project: LuLu (launch daemon)\n// description: handles rules & actions such as add/delete (head"
},
{
"path": "LuLu/Extension/Rules.m",
"chars": 46534,
"preview": "//\n// file: Rules.m\n// project: LuLu (launch daemon)\n// description: handles rules & actions such as add/delete\n//\n//"
},
{
"path": "LuLu/Extension/XPCDaemon.h",
"chars": 373,
"preview": "//\n// file: XPCDaemon.h\n// project: lulu (launch daemon)\n// description: interface for XPC methods, invoked by user ("
},
{
"path": "LuLu/Extension/XPCDaemon.m",
"chars": 9812,
"preview": "//\n// file: XPCDaemon.m\n// project: lulu (launch daemon)\n// description: interface for XPC methods, invoked by user\n/"
},
{
"path": "LuLu/Extension/XPCListener.h",
"chars": 626,
"preview": "//\n// file: XPCListener\n// project: lulu (launch daemon)\n// description: XPC listener for connections for user compon"
},
{
"path": "LuLu/Extension/XPCListener.m",
"chars": 7992,
"preview": "//\n// file: XPCListener.m\n// project: lulu (launch daemon)\n// description: XPC listener for connections for user comp"
},
{
"path": "LuLu/Extension/XPCUserClient.h",
"chars": 572,
"preview": "//\n// file: XPCUserClient.h\n// project: lulu (launch daemon)\n// description: talk to the user, via XPC (header)\n//\n//"
},
{
"path": "LuLu/Extension/XPCUserClient.m",
"chars": 2299,
"preview": "//\n// file: XPCUserClient.m\n// project: lulu (launch daemon)\n// description: talk to the user, via XPC (header)\n//\n//"
},
{
"path": "LuLu/Extension/main.h",
"chars": 1113,
"preview": "//\n// file: main.h\n// project: lulu (launch daemon)\n// description: main (header)\n//\n// created by Patrick Wardle\n//"
},
{
"path": "LuLu/Extension/main.m",
"chars": 3640,
"preview": "//\n// main.m\n// Extension\n//\n// Created by Patrick Wardle on 8/1/20.\n// Copyright (c) 2020 Objective-See. All rights"
},
{
"path": "LuLu/Extension/procInfo.h",
"chars": 4075,
"preview": "//\n// File: procInfo.h\n// Project: Proc Info\n//\n// Created by: Patrick Wardle\n// Copyright: 2017 Objective-See\n// "
},
{
"path": "LuLu/LuLu.xcodeproj/project.pbxproj",
"chars": 61778,
"preview": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 60;\n\tobjects = {\n\n/* Begin PBXBuildFile section *"
},
{
"path": "LuLu/LuLu.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
"chars": 301,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n version = \"1.0\">\n <Group\n location = \"container:\"\n name"
},
{
"path": "LuLu/LuLu.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
"chars": 238,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "LuLu/LuLu.xcodeproj/xcshareddata/xcschemes/Extension.xcscheme",
"chars": 2608,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n LastUpgradeVersion = \"1160\"\n version = \"1.3\">\n <BuildAction\n "
},
{
"path": "LuLu/LuLu.xcodeproj/xcshareddata/xcschemes/LuLu.xcscheme",
"chars": 2812,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n LastUpgradeVersion = \"1160\"\n version = \"1.3\">\n <BuildAction\n "
},
{
"path": "LuLu/Shared/Localizable.xcstrings",
"chars": 264249,
"preview": "{\n \"sourceLanguage\" : \"en\",\n \"strings\" : {\n \" has a signing issue\" : {\n \"comment\" : \" has a signing issue\",\n "
},
{
"path": "LuLu/Shared/Rule.h",
"chars": 2133,
"preview": "//\n// file: Rule.h\n// project: LuLu (shared)\n// description: Rule object (header)\n//\n// created by Patrick Wardle\n//"
},
{
"path": "LuLu/Shared/Rule.m",
"chars": 25037,
"preview": "//\n// file: Rule.h\n// project: LuLu (shared)\n// description: Rule object (header)\n//\n// created by Patrick Wardle\n//"
},
{
"path": "LuLu/Shared/XPCDaemonProto.h",
"chars": 1395,
"preview": "//\n// file: XPCDaemonProtocol.h\n// project: LuLu (shared)\n// description: methods exported by the daemon\n//\n// creat"
},
{
"path": "LuLu/Shared/XPCUserProto.h",
"chars": 396,
"preview": "//\n// file: XPCUserProtocol\n// project: LuLu (shared)\n// description: protocol for talking to the user (header)\n//\n//"
},
{
"path": "LuLu/Shared/consts.h",
"chars": 9436,
"preview": "//\n// file: consts.h\n// project: lulu (shared)\n// description: #defines and what not\n//\n// created by Patrick Wardle"
},
{
"path": "LuLu/Shared/signing.h",
"chars": 808,
"preview": "//\n// File: Signing.h\n// Project: Proc Info\n//\n// Created by: Patrick Wardle\n// Copyright: 2017 Objective-See\n//\n\n#"
},
{
"path": "LuLu/Shared/signing.m",
"chars": 11351,
"preview": "//\n// File: Signing.m\n// Project: LuLu\n//\n// Created by: Patrick Wardle\n// Copyright: 2017 Objective-See\n\n#import \""
},
{
"path": "LuLu/Shared/utilities.h",
"chars": 3111,
"preview": "//\n// file: utilities.h\n// project: lulu (shared)\n// description: various helper/utility functions (header)\n//\n// cr"
},
{
"path": "LuLu/Shared/utilities.m",
"chars": 43626,
"preview": "//\n// file: utilities.m\n// project: lulu (shared)\n// description: various helper/utility functions\n//\n// created by "
},
{
"path": "LuLu/Tests/README.md",
"chars": 1296,
"preview": "# LuLu Passive Mode Improvements Tests\n\nThis directory contains tests for the passive mode FQDN rule creation improvemen"
},
{
"path": "LuLu/Tests/run_passive_mode_tests.sh",
"chars": 1377,
"preview": "#!/bin/bash\n\n#\n# run_passive_mode_tests.sh\n# Script to compile and run passive mode improvements tests\n#\n\necho \"🚀 Buildi"
},
{
"path": "LuLu/Tests/test_passive_mode_improvements.m",
"chars": 12282,
"preview": "//\n// test_complete_functionality.m\n// LuLu\n//\n// Complete test suite for hostname prioritization and port display fu"
},
{
"path": "README.md",
"chars": 679,
"preview": "# LuLu\n\n[简体中文](README_zh-Hans.md) | [正體中文](README_zh-Hant.md)\n\nLuLu is the free open-source macOS firewall:\n\n<p align=\"c"
},
{
"path": "README_zh-Hans.md",
"chars": 552,
"preview": "# LuLu\n\n[English](README.md) | [正體中文](README_zh-Hant.md)\n\nLuLu 是免费的开源 macOS 防火墙:\n\n<p align=\"center\"><img src=\"https://ob"
},
{
"path": "README_zh-Hant.md",
"chars": 553,
"preview": "# LuLu\n\n[English](README.md) | [简体中文](README_zh-Hans.md)\n\nLuLu 是免費的開源 macOS 防火牆:\n\n<p align=\"center\"><img src=\"https://ob"
},
{
"path": "lulu.xcworkspace/contents.xcworkspacedata",
"chars": 155,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n version = \"1.0\">\n <FileRef\n location = \"group:LuLu/LuLu.xcod"
},
{
"path": "lulu.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
"chars": 238,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
}
]
// ... and 2 more files (download for full content)
About this extraction
This page contains the full source code of the objective-see/LuLu GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 171 files (1.6 MB), approximately 420.2k tokens, and a symbol index with 17 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.