Skip to content

Instantly share code, notes, and snippets.

View coolstar's full-sized avatar

CoolStar coolstar

View GitHub Profile
@coolstar
coolstar / poc.c
Created September 16, 2021 09:47 — forked from infernalheaven/poc.c
macOS 11.5.2/iOS 14.7.1 Kernel Race Condition poc
/*
Written By Pan ZhenPeng(@peterpan980927) of Alibaba Security Pandora Lab
use it on macOS: cc poc.c -o poc while True; do ./poc ; done
*/
#include <errno.h>
#include <signal.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
@coolstar
coolstar / libkernrw.h
Created April 1, 2021 11:43
libKernRW header
//Kernel RW API for Taurine
// Falls back to HSP4 -> TFP0 automatically if Taurine's kernRW not available
int requestKernRw(void);
kern_return_t kernRW_read32(uint64_t addr, uint32_t *val);
kern_return_t kernRW_read64(uint64_t addr, uint64_t *val);
kern_return_t kernRW_write32(uint64_t addr, uint32_t val);
kern_return_t kernRW_write64(uint64_t addr, uint64_t val);
@coolstar
coolstar / patchfinder64.c
Created July 7, 2020 22:21
patchfinder64 from Odyssey
//
// patchfinder64.c
// extra_recipe
//
// Created by xerub on 06/06/2017.
// Copyright © 2017 xerub. All rights reserved.
//
#include <assert.h>
#include <stdint.h>
@coolstar
coolstar / libblackjack.h
Last active October 10, 2022 10:56
libhooker/libblackjack headers
//
// libblackjack.h
// libblackjack
//
// Created by CoolStar on 2/24/20.
// Copyright © 2020 CoolStar. All rights reserved.
//
#include "libhooker.h"
@coolstar
coolstar / 1. DepictionScrapers.plist format
Last active February 9, 2021 00:08
depiction-convert-docs.md
Plist contains a dictionary
Key: Name of Javascript file (without js extension)
Value: Dictionary of requirements
Requirements Dictionary Keys:
* host: The host name for the depiction [optional]
* prefix: A prefix to check for in the path (after the host name) [optional]
* suffix: A suffix to check for in the path [optional]

As many users may have noticed, Sileo's development is currently fast-paced; especially as we are in the middle of a rewrite/transition from Objective C to Swift. We know most users want a stable package managers, while there are some other users who want the latest shiny/bleeding edge [and we also need some testers to test newer versions as we can't test every repo on our own]. Hence we are now launching the Sileo Beta Channel! This is a separate package that installs alongside of Sileo (you'll have 2 icons; "Sileo" and "Sileo Beta").

What does this mean for average users

The normal Sileo package will be getting updates as they come out of beta, following testing both internally and by Beta Channel users. Sileo Beta in most cases should be stable enough to use as a daily package manager (though there may occasionally be bugs that crop up in a beta [not any that would risk your device/jailbreak though] -- however in those scenarios, you may simply use Sileo stable that's still installed alongside Sil

@coolstar
coolstar / sileodistribution-public.txt
Created July 28, 2019 18:46
Sileo Redistribution Grant RSA Public Key
This is the public key used to validate Sileo redistribution grants:
-----BEGIN PUBLIC KEY-----
MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALAYCEHPWyWTnVx+T0t0Ctvt5lp6B4+T
jtX3Yhi9nx7e+IfAX7kR0usLVL06IYbCWpulyA20tYBNSatK8IZQwy8CAwEAAQ==
-----END PUBLIC KEY-----
@coolstar
coolstar / RawDocs.m
Last active July 8, 2019 00:21
Sileo Depiction Raw Docs (Pseudocode)
//Syntax Basics
@class ClassName extends ParentClass <Protocol1,Protocol2>
@property (attributes) ClassOrTypeName<Protocol1,Protocol2> nameOfProperty;
@property (attributes) Array[Type In array] nameOfProperty;
@property StringEnum<Possible Value1, Possible Value2>] nameOfProperty;
@end
@coolstar
coolstar / electra-reboot-doc.md
Last active January 23, 2019 11:26
About iOS's Overnight Reboots

iOS 9.?? -> iOS 11.4 (and possibly also in 12.x) Overnight "Reboot" issue

This document is (C) CoolStar, 2019. All Rights Reserved.

Document Date: 12/19/2018 Updated: 1/23/2019

Many have noticed on the Pangu 9.3 and on the Electra 11.x jailbreaks, devices can often reboot overnight sometimes this reboots with a WDT Timeout error, or sometimes the device comes back up without actually rebooting the kernel, except all tweaks and substitute are unload (on 9.3), or the entire system becomes

@coolstar
coolstar / sileo-featured-rules.md
Last active August 22, 2024 01:19
Requirements for packages to be featured on Sileo