-
Notifications
You must be signed in to change notification settings - Fork 2
70 Advanced
Tyler Morgan edited this page May 29, 2019
·
4 revisions
LoanShark has a built in debugging mode which will have access to the debugging menu. The debugging menu will enable you to access every component of LoanShark regardless of access.
Create a Configuration Profile or write the key enableDebugging
to true
in /Library/Preferences/com.github.cybertunnel.LoanShark.plist
Example:
<dict>
<key>enableDebugging</key>
<true/>
</dict>
Allows you to do the following:
- Set loaner period to expired
- Extend loaner by set number of days
- Includes negative numbers to decrease loaner time
- Get loaning status
- Loanee details
Note: Extending of a loaning period via. CLI requires a sharedSecret
to be set which is a SHA256 hash of a password or passcode
Command | Example | Example Response |
---|---|---|
Get Loaner Status | LoanShark.app/Contents/MacOS/LoanShark --status |
Warning (<15 Days Remaining) |
Get Loanee Details | LoanShark.app/Contents/MacOS/LoanShark --loanee-details | Person with name of Johnny Appleseed with the phone number of 800-555-5555 and an email address of johnny@appleseed.com. |
Extend Loaner Period | LoanShark.app/Contents/MacOS/LoanShark --extend 10 --passcode SuperMonkey123 | Successfully extended loaner by 10. Total loaning period remaining is now 12 days. |
Set Loaner Period to Expired | LoanShark.app/Contents/MacOS/LoanShark --set-expired | Setting Loan Period to expired! |
Get Managed Preferences | LoanShark.app/Contents/MacOS/LoanShark --prefs | sharedSecret:Not Set |