Skip to content

Instantly share code, notes, and snippets.

View n0ncetonic's full-sized avatar
🙃
Staring intensely at my macbook screen

noncetonic n0ncetonic

🙃
Staring intensely at my macbook screen
View GitHub Profile

Keybase proof

I hereby claim:

  • I am n0ncetonic on github.
  • I am noncetonic (https://keybase.io/noncetonic) on keybase.
  • I have a public key ASB0ekgJUnmehUCUA-S-F1KMdQyNVLQMxxfuqaIoXNq5jwo

To claim this, I am signing this object:

@n0ncetonic
n0ncetonic / README.md
Created October 9, 2017 13:37 — forked from Gabelbombe/README.md
Bypass EFI / NVRAM lock settings in OSX 10.12~

OSX 10.12~ NVRAM Manipulation

Begining with OS X 10.11 El Capitan, a set of security mechanism, System Integrity Protection(SIP), has been enforced and it can only be configured or turned off in the recovery environment like Recovery HD. In the normal environment, SIP configuration will not be permitted even with root privilege. If so, the SIP would be useless since it can be easily turned off.

As many people may already noticed, the configuration of SIP status is stored in the NVRAM with a property called csr-active-config. Of course users wouldn’t be

@n0ncetonic
n0ncetonic / IconsCore.h
Created November 21, 2017 18:54 — forked from ericdke/IconsCore.h
Finder icons Cocoa constants
/*
File: LaunchServices/IconsCore.h
Contains: Icon Utilities and Icon Services Interfaces.
Version: LaunchServices-283~12
Copyright: � 1990-2006 by Apple Computer, Inc. All rights reserved
Bugs?: For bug reports, consult the following page on
@n0ncetonic
n0ncetonic / Chrome_Gmail_Javascript_Injection.applescript
Last active December 14, 2017 03:02
Scrapes Gmail tab for Email, Sender name, and Subject leveraging Applescript as an In-Memory Javascript injector
# Blacksun Hackers Research Labs
# Nov 2017
# Noncetonic
tell application "Google Chrome"
set list_of_windows to every window # get every open window
repeat with a_window in list_of_windows # iterate through all open windows
set tab_list to every tab in a_window # grab all tabs
repeat with the_tab in tab_list
@n0ncetonic
n0ncetonic / Open New Space.applescript
Created January 2, 2018 20:15 — forked from krazdax5/Open New Space.applescript
Automation script to open a new space on macOS using spotlight
(*
* Automation script that opens a new space on the current monitor
* based on the current position of the mouse pointer
*
* Created by: Charles Levesque
* on: december 31st, 2017
* last modified: december 31st, 2017
* version: 1.0
*
*
@n0ncetonic
n0ncetonic / quit-open.applescript
Created January 2, 2018 20:16 — forked from rvlasveld/quit-open.applescript
Cocoa-AppleScript to open and close applications when an other launches or terminates. See http://rvlasveld.github.io/blog/2013/04/21/open-and-close-applications-when-an-other-launches-or-terminates/ for more information.
-- main.scpt
-- Cocoa-AppleScript Applet
--
-- This app can close and open applications when an other application,
-- the trigger, is launced or terminated. This can be useful when two
-- applications interfere with eachother or when one is dependend on the
-- other (e.g. with setting an VPN connection).
--
--
-- Roemer Vlasveld (roemer.vlasveld@gmail.com)
@n0ncetonic
n0ncetonic / PasteboardWatcher.swift
Created January 3, 2018 14:38 — forked from Daemon-Devarshi/PasteboardWatcher.swift
A class which performs polling to determine the newly copied url of desired kind in an external app
//
// PasteboardWatcher.swift
// PasteboardWatcher
//
// Created by Devarshi Kulshreshtha on 6/19/15.PasteboardWatcher
// Copyright © 2015 Devarshi Kulshreshtha. All rights reserved.
//
import Cocoa
@n0ncetonic
n0ncetonic / spectre.c
Created January 10, 2018 21:31 — forked from ErikAugust/spectre.c
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
@n0ncetonic
n0ncetonic / back_to_my_laptop.sh
Created April 9, 2018 20:05 — forked from evilchili/back_to_my_laptop.sh
redirect STDIN to a file on the host where your current SSH session originated. put it in your .bashrc!
# Example 1:
# laptop% ssh remotehost
# remotehost% uptime | laptop remote_uptime
# remotehost% exit
# laptop% cat remote_uptime
# 20:41:11 up 9 days, 4:02, 20 users, load average: 0.02, 0.01, 0.00
#
# In other words, it's like starting this:
# laptop% ssh remotehost uptime > remote_uptime
@n0ncetonic
n0ncetonic / pwdhash.sh
Created April 9, 2018 20:06 — forked from evilchili/pwdhash.sh
Trying to extract a PBKDF2-HMAC-SHA1 from user plist on mountain lion; failing. What am I missing?
#!/bin/sh
USER=$1
# get the shadow hash from the user entry
dscl . read /Users/$USER dsAttrTypeNative:ShadowHashData | tail -1 \
# remove everything but hex data and spaces
| tr -dc '0-9a-f ' \