Skip to content

Instantly share code, notes, and snippets.

View 0xmachos's full-sized avatar

Mikey 0xmachos

View GitHub Profile
@0xmachos
0xmachos / Keychain.md
Last active December 4, 2024 01:03
Useful resources for working with iOS/ macOS Keychain API

Keychain API

kSecAttrAccessible Mapping

Protection Domain (pdmn) Keychain Accessibility Values
ck kSecAttrAccessibleAfterFirstUnlock
cku kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly
dk kSecAttrAccessibleAlways
akpu kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly
@0xmachos
0xmachos / install_rbenv.sh
Created March 7, 2018 10:17
Install the Ruby version manager rbenv and ruby-build to allow you to install Ruby versions
#!/usr/bin/env bash
set -eo pipefail
# -e exit if any command returns non-zero status code
# -o pipefail force pipelines to fail on first non-zero status code
FATAL="\\033[1;31mFATAL\\033[0m"
WARNING="\\033[1;33mWARNING\\033[0m"
PASS="\\033[1;32mPASS\\033[0m"
INFO="\\033[1;36mINFO\\033[0m"
@0xmachos
0xmachos / multi_pihole.md
Created June 15, 2018 12:44
How to configure two Pi-holes on the same network

Multiple Pi-holes

In this scenario we are configuring two Pi-holes running on the same network. pihole0 is the main DNS server while pihole1 is the secondary.

  • pihole0
    • 192.168.1.4
    • http://pi.hole0/admin/
  • pihole1
    • 192.168.1.5
  • http://pi.hole1/admin/
LSQuarantineEventIdentifier LSQuarantineTimeStamp LSQuarantineAgentBundleIdentifier LSQuarantineAgentName LSQuarantineDataURLString LSQuarantineSenderName LSQuarantineSenderAddress LSQuarantineTypeNumber LSQuarantineOriginTitle LSQuarantineOriginURLString LSQuarantineOriginAlias
B555DB5F-D82A-408B-B9A6-D4F4012FD520 570726604.559004 com.apple.Safari Safari https://github-production-release-asset-2e65be.s3.amazonaws.com/... NULL NULL 0 NULL https://github.com/br1sk/brisk/releases NULL