Documentation Scanner
TweetFollow Us on Twitter

Documentation Scanner

Wednesday April 24

09:16
C++ Application To Write Data Into HKEY_CURRENT_USER

https://github.com/krypted/C-RegistryWriter – This project includes a RegistryKeyManager class that takes care of writing/reading to a registry file. Using a dedicated class makes expanding your registry functionality in the future easier.A DWORD is 4 bytes, so the value for RegistryWriter to send is currently limited to 4 characters (i.e. test1234 is not technically possible with a DWORD).

To use it, simply call the RegistryKeyManager class along with the key to write to and the value to put into the key:

RegistryKeyManager r( "HKEY_CURRENT_USER/Software/x/y", 1234 ); Which would create a key in HKEY_CURRENT_USER/Software/x/y with a DWORD value of 1234.

You could then read the value of and modify the key with calls like:

DWORD currentValue = r.ReadDwordValue(); r.WriteValue(...

| Read more »

Tuesday April 23

05:00
Controlling Multiple launchagents and launchdaemons...

Most of my examples for launchctl have been per-user, per-agent, per-daemon. But you can also control multiple launchctl targets concurrently. One example would be that you can unload everything in the user domain by not specifying a path but providing the userid. In the following example, we’ll just use $userid as a variable, but it’s worth noting that that would be, as an example, 501 for the :

sudo launchctl bootout gui/$userid

There’s another option that can be used to do the opposite from within single user mode, called bootshell. Bootshell is called similarly from single user mode:

sudo launchctl bootshell

The post Controlling Multiple launchagents and launchdaemons concurrently appeared first on krypted.com.

| Read more »

Monday April 22

08:51
Obtain a bearer token using curl

In the following, we set a variable called BearerToken using a simple curl to the contents of a bearer token. We do so by running a curl with data in the header for “userid” although sometimes we see this as just “user” or “username” and then a password. This hits an endpoint called authenticationendpoint although sometimes we see that called “auth” or “authenticate” – in this specific case we’re pulling the bearer token out of “id” and it’s nested in there with a name of “token”:
BearerToken=$(curl -s -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' --data '{"userid”:”{userid}”,”password":"{password}"}' https://www.krypted.com/api/authenticationendpoint | sed -E 's/\},\s*\{/\},\n\{/g' File | grep  ‘”id” : “token”’)
Once we have that token we can then pass it into another API via the Authorization header when connecting. In...

| Read more »

Thursday April 18

09:52
C++ Program To Decode A JWT

Just posted a visual studio 2017 project at https://github.com/krypted/jwttools that includes an .exe file that, when run directly, extracts json out of an encoded jwt (and checks the signature). The encodedString variable in the jwt.cpp is a jwt that is used for extraction:

£include "pch.h" £include £include

£include "jwt/jwt.hpp"

int main() ¨ using namespace jwt::params; std::string encodedString = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImp0aSI6ImY4ZWQ0OTM2LTBlN2ItNDlmYi05YTkxLWM2MDQyZDEzODMzNiIsImlhdCI6MTU1NTUxODk4NSwiZXhwIjoxNTU1NTIyNTg1fQ.rsyE_KzLO99zKXC7TNFD1RkU6HYF2Y7XJuIkFKumt20"; jwt::jwt_object decoded = jwt::decode( encodedString, algorithms(¨ "hs256" ¼), false ); std::cout << decoded.header(); std::cout << decoded.payload(); return 0;

The returned json output is as follows...

| Read more »

Tuesday April 16

08:37
Linear Algebra in Python Scripts

Preparing data for tensorflow is often easiest when done as a two step process. In machine learning, you often get into trying to plot points, calculate tangents, and a lot of basic algebra. Working out equations kinda’ reminds me of being in in-school suspension in high school. Except now we’re writing code to solve the problems rather than solving them ourselves.

I never liked solving for a matrix… But NumPy is a great little framework to import that does a lot of N-dimensional array work. A few basic tasks in the following script includes a number of functions across norms, matrix products, vector products, decompose, and eigenvalues. Remove/comment what you don’t need:

import numpy as np
from numpy import linalg as LA
array = [[-1,4,2],[1,-1,3]]
array2 = [[6,2,1],[7,1,-3]]
array = np.asarray(array)
converted = np.fliplr(array)
#ifsquare >> cholesky = LA.cholesky(array)
#ifsquare >> inv = LA.inv(array)...

| Read more »

Monday April 15

08:09
Managing The Xcode Simulator Programmatically

The iOS Simulator is a great way to test watchOS, tvOS, and iOS apps while you’re writing them. The easiest way to work with the simulator is through Xcode. But you can also use simctl for interacting with it, helpful in automating QA operations when possible. The simctl binary is located at /Applications/Xcode.app/Contents/Developer/usr/bin/simctl and typically accessed as a verb from the /usr/bin/xcrun command. 

First let’s list all the simulators, done using the list command, called by simply running xcrun followed by simctl for the type of operation to be run and then the list command:

/usr/bin/xcrun simctl list

The output shows a lot of device types, runtimes, and devices, most of which should show as disconnected or shutdown:

== Device Types ==

== Device Types ==
iPhone 4s (com.apple.CoreSimulator.SimDeviceType.iPhone-4s)
iPhone 5 (com.apple.CoreSimulator.SimDeviceType.iPhone-5)
iPhone 5s (com.apple.CoreSimulator....

| Read more »

Friday April 12

10:57
Device Snapshots and Crafting A Restore Device User...

I recently worked on something where a design requirement was to build a good snapshot restore option but not to use Time Machine backups. You can capture a snapshot of a Mac without enabling Time Machine. To do so, you’d still use the same binary as you would with Time Machine, /usr/bin/tmutil. To do so, simply use the snapshot verb as follows:

/usr/bin/tmutil snapshot

Once you’ve run that, you get output similar to the following:

Created local snapshot with date: 2019-04-12-110248

Now you have a snapshot that can be used to restore a Mac using the steps shown in this article: https://maclovin.org/blog-native/2017/restoring-from-a-snapshot-with-apfs.

You can make a snapshot at the provisioning time of a Mac and then see that snapshot at any point by awking for the first line in a list of snapshots, unless it’s been deleted:

snapshot=`tmutil...

| Read more »

Thursday April 11

08:13
Adding App Notarization For Macs To Your Build Train

Apple sent the following message out to developers yesterday:

Dear Developer, 

We’re working with developers to create a safer Mac user experience through a process where all software, whether distributed on the App Store or outside of it, is signed or notarized by Apple. With the public release of macOS 10.14.5, we require that all developers creating a Developer ID certificate for the first time notarize their apps, and that all new and updated kernel extensions be notarized as well. This will help give users more confidence that the software they download and run, no matter where they get it from, is not malware by showing a more streamlined Gatekeeper interface. In addition, we’ve made the following enhancements to the notarization process.
Legacy code is...

| Read more »

Wednesday April 10

14:15
New Notarization Requirements

We're working with developers to create a safer Mac user experience through a process where all software, whether distributed on the App Store or outside of it, is signed or notarized by Apple. With the public release of macOS 10.14.5, we require that all developers creating a Developer ID certificate for the first time notarize their apps, and that all new and updated kernel extensions be notarized as well. This will help give users more confidence that the software they download and run, no matter where they get it from, is not malware by showing a more streamlined Gatekeeper interface.

Learn how to get your software notarized

| Read more »
14:15
New Notarization Requirements

We're working with developers to create a safer Mac user experience through a process where all software, whether distributed on the App Store or outside of it, is signed or notarized by Apple. With the public release of macOS 10.14.5, we require that all developers creating a Developer ID certificate for the first time notarize their apps, and that all new and updated kernel extensions be notarized as well. This will help give users more confidence that the software they download and run, no matter where they get it from, is not malware by showing a more streamlined Gatekeeper interface.

Learn how to get your software notarized

| Read more »

Tuesday April 9

08:24
One of my uglier scripty bits

So – sed and awk versions on the Mac are a little behind. Turns out if I write an expression to wrap a forward slash into braces that it doesn’t exactly translate when moving from Linux to a Mac. So this happened (make fun, it’s cool):

#!/bin/bash
#Extracts occurances of a file path from a text file
#Then sorts and counts up each
echo "Please make sure to run script from same Original_file PATH"
read -p "Enter filename: " original_file
cp $original_file tempfile.txt && sed 's/ /\n/g' tempfile.txt > tempfile1.txt && sed -i '.bak' '/^$/d' tempfile1.txt && cat tempfile1.txt | grep '^/' | sort |uniq -c | sort -k2nr |sort -r| awk '{printf("%s,%s\n",$1,$2)}' > filtered-sorted-file.txt && rm -rf tempfile*.txt

The script extracts all file paths from a text file and sorts/counts them. I thought it would take 5 minutes… Famous last words…

The post...

| Read more »
08:21
Jamf After Dark: Growing a Support Organization

Saturday April 6

10:11
Quick One-Liner For Finding Invalid Login Attempts...

grep -i login /var/log/system.log

That’s all I got. Have a good day.

The post Quick One-Liner For Finding Invalid Login Attempts in macOS 10.14 and Up appeared first on krypted.com.

| Read more »

Wednesday April 3

14:32
About the security content of watchOS 4

This document describes the security content of watchOS 4.

| Read more »
14:30
About the security content of iOS 11

This document describes the security content of iOS 11.

| Read more »
14:30
About the security content of tvOS 11

This document describes the security content of tvOS 11.

| Read more »
14:29
About the security content of macOS High Sierra 10.13

This document describes the security content of macOS High Sierra 10.13.

| Read more »
14:28
About the security content of macOS High Sierra 10....

This document describes the security content of macOS High Sierra 10.13.4, Security Update 2018-002 Sierra, and Security Update 2018-002 El Capitan.

| Read more »
14:26
About the security content of iCloud for Windows 7.8

This document describes the security content of iCloud for Windows 7.8.

| Read more »
14:24
About the security content of iTunes 12.9.1 for...

This document describes the security content of iTunes 12.9.1 for Windows.

| Read more »
14:03
About the security content of tvOS 12.1.1

This document describes the security content of tvOS 12.1.1.

| Read more »
14:03
About the security content of Safari 12.0.2

This document describes the security content of Safari 12.0.2.

| Read more »
14:02
About the security content of iTunes 12.9.2 for...

This document describes the security content of iTunes 12.9.2 for Windows.

| Read more »
13:58
About the security content of iOS 12.1.3

This document describes the security content of iOS 12.1.3.

| Read more »
13:56
About the security content of Safari 12.0.3

This document describes the security content of Safari 12.0.3.

| Read more »
13:44
About the security content of watchOS 5.2

This document describes the security content of watchOS 5.2.

| Read more »

Monday March 25

21:43
About the security content of tvOS 12.2

This document describes the security content of tvOS 12.2.

| Read more »
21:41
About the security content of macOS Mojave 10.14.4,...

This document describes the security content of macOS Mojave 10.14.4, Security Update 2019-002 High Sierra, Security Update 2019-002 Sierra.

| Read more »
21:40
About the security content of Safari 12.1

This document describes the security content of Safari 12.1.

| Read more »
21:37
About the security content of iTunes 12.9.4 for...

This document describes the security content of iTunes 12.9.4 for Windows.

| Read more »
21:35
About the security content of iCloud for Windows 7.11

This document describes the security content of iCloud for Windows 7.11.

| Read more »
13:07
About the security content of Xcode 10.2

This document describes the security content of Xcode 10.2.

| Read more »

Thursday March 21

09:27
About the security content of iOS 12.2

This document describes the security content of iOS 12.2.

| Read more »

Friday February 15

14:33
About the security content of macOS High Sierra 10....

This document describes the security content of macOS High Sierra 10.13.5, Security Update 2018-003 Sierra, Security Update 2018-003 El Capitan.

| Read more »
14:03
About the security content of iCloud for Windows 7.10

This document describes the security content of iCloud for Windows 7.10.

| Read more »

Friday February 8

12:27
About the security content of macOS Mojave 10.14.1,...

This document describes the security content of macOS Mojave 10.14.1, Security Update 2018-002 High Sierra, Security Update 2018-005 Sierra.

| Read more »

Thursday February 7

15:21
About the security content of iOS 12.1.4

This document describes the security content of iOS 12.1.4.

| Read more »
15:20
About the security content of macOS Mojave 10.14.3...

This document describes the security content of macOS Mojave 10.14.3 Supplemental Update.

| Read more »
15:20
About the security content of Shortcuts 2.1.3 for iOS

This document describes the security content of Shortcuts 2.1.3 for iOS.

| Read more »

Thursday December 6

23:10
About the security content of iOS 12.1.1

Monday May 3

09:17
iPad: How to transfer or sync content to your...
 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Persecond 1.4.4 - Timelapse video made e...
Persecond is the easy, fun way to create a beautiful timelapse video. Import an image sequence from any camera, trim the length of your video, adjust the speed and playback direction, and you’re done... Read more
MarsEdit 4.3.1 - Quick and convenient bl...
MarsEdit is a blog editor for OS X that makes editing your blog like writing email, with spell-checking, drafts, multiple windows, and even AppleScript support. It works with with most blog services... Read more
Mindjet MindManager 12.1.177 - Professio...
MindManager is a powerful mind mapping tool that increases your productivity. From business plans or developing a new website, its robust mind maps have all the features you need to accomplish your... Read more
iClock 5.0.2 - Customizable menu bar clo...
iClock replaces the old Apple's default menu bar clock with more features, customization and increases your productivity. Features: Have your Apple or Google calendar instantly available from the... Read more
Vivaldi 2.4.1488.40 - An advanced browse...
Vivaldi is a browser for our friends. We live in our browsers. Choose one that has the features you need, a style that fits and values you can stand by. From the look and feel, to how you interact... Read more
LaunchBar 6.11 - Powerful file/URL/email...
LaunchBar is an award-winning productivity utility that offers an amazingly intuitive and efficient way to search and access any kind of information stored on your computer or on the Web. It provides... Read more
Dropbox 71.4.108 - Cloud backup and sync...
Dropbox is an application that creates a special Finder folder that automatically syncs online and between your computers. It allows you to both backup files and keeps them up-to-date between systems... Read more
Google Chrome 74.0.3729.108 - Modern and...
Google Chrome is a Web browser by Google, created to be a modern platform for Web pages and applications. It utilizes very fast loading of Web pages and has a V8 engine, which is a custom built... Read more
Postbox 6.1.15 - Powerful and flexible e...
Postbox is a new email application that helps you organize your work life and get stuff done. It has all the elegance and simplicity of Apple Mail, but with more power and flexibility to manage even... Read more
DiskCatalogMaker 7.4.13 - Catalog your d...
DiskCatalogMaker is a simple disk management tool which catalogs disks. Simple, light-weight, and fast Finder-like intuitive look and feel Super-fast search algorithm Can compress catalog data for... Read more

Latest Forum Discussions

See All

AFK Arena - Arcane Labyrinth guide
Looking for more tips and tricks for AFK Arena? Check out our AFK Arena Guide Compendium! | Read more »
What to expect from MU Origin’s April up...
The 1,000th day since MU Origin hit global stores is just around the corner — so what better time for another update? This April, players can expect fresh content to delve into, including new ways to fight rival players and a new realm to go... | Read more »
AFK Arena - Guide Compendium
AFK Arena has a lot going on in it, to the point that it can be pretty confusing. To help you on your journey from AFK zero to AFK hero, we've put together a collection of guides on this game so you know what to do when, what pitfalls to look out... | Read more »
AFK Arena guide - Tips and tricks for th...
Want to know where to begin with AFK Arena? Check out our AFK Arena beginner's guide! | Read more »
Mobile games you probably haven't p...
The App Store is bursting at the seams with all kinds of apps and games of varying quality, but one of the most consistent issues with it is discoverability. Despite having what seems like unlimited money and a full App Store editorial team, Apple... | Read more »
AFK Arena guide - Tips and tricks for be...
AFK Arena may be a less intense form of a gacha game, but that doesn’t mean it’s totally straightforward. As with other games in this genre, there’s a bevy of systems, modes, currencies, etc. that you’ll want to be familiar with as soon as you... | Read more »
Spellsword Cards: Demontide guide - Tips...
Spellsword Cards: Demontide is a wonderful little single-player card game, but it can also be quite unforgiving. Parts of it definitely look and feel like Hearthstone, but you can’t just play this game like its your favorite collectible card game (... | Read more »
The best driving games on iOS
With the recent release of Rush Rally 3, it's easy to be excited about mobile driving games. Figuring out what games in this genre are worth picking up, on the other hand, is a whole other story. [Read more] | Read more »
Construction Simulator returns to Europe...
German publisher astragon Entertainment and developer weltenbauer. SE have just released the third installment of Construction Simulator. Unlike Construction Simulator 2, which was set in the U.S., Construction Simulator 3 returns to its roots in... | Read more »
The best superhero game on mobile
I don't know if you know this, but superheroes are Kind of A Big Deal. Every other week it feels like a new Marvel movie is coming out and the hype train for each release is undeniable. Just look at how the upcoming Avengers: Endgame broke sales... | Read more »

Price Scanner via MacPrices.net

Amazon has base 15″ 2.2GHz 6-Core MacBook Pro...
Amazon is once again offering sale prices on new 2018 15″ 6-Core Touch Bar MacBook Pros with base 2.2GHz models now on sale for $300 off Apple’s MSRP, starting at $2099. These are the same models... Read more
Sale! New 2018 13″ 2.3GHz Quad Core MacBook P...
Amazon has new 13″ Quad-Core Touch Bar MacBook Pros on sale up to $500 off Apple’s MSRP today. Shipping is free. Select Amazon as the seller, rather than a third-party, to claim these discounts.... Read more
HomePod Sale! Get one today for $50 off Apple...
Walmart has new Apple HomePods on sale today for $299 on their online store. That’s $50 off MSRP and the lowest price available for a HomePod anywhere. Choose free shipping or free local store pickup... Read more
Verizon is offering the new 2019 10″ iPad Air...
Verizon is taking $200 off the cost of a new 2019 10.5″ Apple Pad Air or 7.9″ iPad mini for a limited time. Their discount includes $100 off Apple’s MSRP when you choose a 2-year contract with your... Read more
Save $200-$240 on a 12″ Retina MacBook with o...
Apple has Certified Refurbished 2017 12″ Retina MacBooks available for $200-$240 off the cost of new models. Apple will include a standard one-year warranty with each MacBook, and shipping is free.... Read more
Adorama offers Silver 15″ 6-Core MacBook Pros...
Adorama has new 2018 Silver 15″ 6-Core Touch Bar MacBook Pros on sale today for $250-$300 off MSRP. Shipping is free, and Adorama charges sales tax for NY & NJ residents only: – 2018 15″ 2.2GHz... Read more
Save $750 on an iMac Pro with this Certified...
Apple has Certified Refurbished 3.2GHz 8-Core iMac Pros available for $4249 including free shipping. Their price is $750 off the cost of new models. A standard Apple one-year warranty is included.... Read more
People Profiles: Saving The Planet In Turn Th...
FEATURE: 04.22.19- Earth Day falls on this day once a year but for one environmentally conscious user of older Apple computers, saving the planet is always on the back of their mind, the perfect... Read more
Apple has clearance 2017 27″ iMacs available...
Apple has Certified Refurbished 2017 27″ 5K iMacs available starting at $1439. Apple’s one-year warranty is standard, shipping is free, and each iMac features a new outer shell. The following models... Read more
Today on Amazon: New 2018 13″ MacBook Airs fo...
Amazon has lowered prices on new 2018 13″ MacBook Airs with models now on sale for up to $150 off Apple’s MSRP, each including free shipping. Be sure to select Amazon as the seller during checkout,... Read more

Jobs Board

Part Time Help / *Apple* Orchard - Iowa Sta...
Employer is looking for apple sorters and apple pickers. Applicants must be able to pay close attention to detail and have confidence around mechanical Read more
*Apple* Mobile Master - Best Buy (United Sta...
**688874BR** **Job Title:** Apple Mobile Master **Job Category:** Store Associates **Location Number:** 001013-Virginia Commons-Store **Job Description:** **Req #:** Read more
Best Buy *Apple* Computing Master - Best Bu...
**688696BR** **Job Title:** Best Buy Apple Computing Master **Job Category:** Sales **Location Number:** 000567-Worcester-Store **Job Description:** **Req #:** Read more
Best Buy *Apple* Computing Master - Best Bu...
**688464BR** **Job Title:** Best Buy Apple Computing Master **Job Category:** Store Associates **Location Number:** 000480-Muskegon-Store **Job Description:** The Read more
*Apple* Mobile Master - Best Buy (United Sta...
**679221BR** **Job Title:** Apple Mobile Master **Job Category:** Store Associates **Location Number:** 000138-Pinole-Store **Job Description:** **What does a Best Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.