Skip to content

Instantly share code, notes, and snippets.

View orgcontrib's full-sized avatar
:octocat:
contributing

Org Contrib orgcontrib

:octocat:
contributing
View GitHub Profile
#!/bin/bash
modprobe -r ec_sys
modprobe ec_sys write_support=1
on="\x8a"
off="\x0a"
led(){
echo -n -e $1 | dd of="/sys/kernel/debug/ec/ec0/io" bs=1 seek=12 count=1 conv=notrunc 2> /dev/null
@orgcontrib
orgcontrib / English.md
Last active November 27, 2023 17:17 — forked from dacbarbos/en.help.md
📓 English
@orgcontrib
orgcontrib / vbox-mod-sign.sh
Created July 24, 2018 21:56 — forked from Lirt/vbox-mod-sign.sh
Sign VirtualBox kernel modules to run with SecureBoot
#!/usr/bin/env bash
#
# Script for guide:
# https://gorka.eguileor.com/vbox-vmware-in-secureboot-linux-2016-update/
#
# Verification:
# dmesg | grep "EFI:.*cert.*${cert_name}"
#
set -eu
set -o pipefail
@orgcontrib
orgcontrib / approved-KEXTs-howto.txt
Last active December 22, 2018 09:49
How to check user approved KEXTs
# see https://www.jamf.com/jamf-nation/feature-requests/7095/kext-inventory-data
# and https://www.richard-purves.com/2017/11/09/mdm-and-the-kextpocalypse-2
# TL;DR how to check
sudo sqlite3 /var/db/SystemPolicyConfiguration/KextPolicy
SELECT * FROM kext_policy;
.exit
@orgcontrib
orgcontrib / kextpocalypse-2.sh
Created December 22, 2018 10:08
Kextpocalypse-2 script
#!/bin/bash
# Script to scan a system for kexts and gather the information needed for Apple whitelisting
# open https://www.richard-purves.com/2017/11/12/kextpocalyse-2-the-remediation
plist="com.apple.syspolicy.kernel-extension-policy.plist"
output="$HOME/Desktop"
override="false"
# Stop IFS linesplitting on spaces
@orgcontrib
orgcontrib / pgp-gpg-notes.md
Last active February 22, 2024 09:11 — forked from dacbarbos/pgp-gpg-help.md
PGP & GPG notes
@orgcontrib
orgcontrib / iso.boot.md
Last active May 15, 2019 04:32 — forked from dacbarbos/iso.boot.md
ISO images and Boot

ISO images and Boot

Command: file livecd.iso
Output: livecd.iso: ISO 9660 CD-ROM filesystem data 'disks' (bootable)

How to pretest it?

Install qemu and run qemu-system-i386 -cdrom livecd.iso

@orgcontrib
orgcontrib / sntp.kod-bug.txt
Last active June 11, 2019 17:52
sntp.kod.bug.fix
# macOS quick & dirty fix for https://bugs.ntp.org/show_bug.cgi?id=3396
sudo ln -s /tmp/ntp-kod /var/db/ntp-kod
# since /tmp gets cleared,
touch /tmp/ntp-kod
# this file will disappear!
# a workaround (suggestion) is to either use your dotfile-fu skills or...
# https://www.howtogeek.com/206178/mac-os-x-change-which-apps-start-automatically-at-login
# test result
@orgcontrib
orgcontrib / ms-graph-api.txt
Last active August 6, 2020 14:45
Microsoft Graph API
MS Graph Dev https://developer.microsoft.com/en-us/graph
MS Graph Docs https://docs.microsoft.com/en-us/graph/overview
Ms Graph Expl https://developer.microsoft.com/en-us/graph/graph-explorer