Skip to content

Instantly share code, notes, and snippets.

View stelabouras's full-sized avatar
😎

Stelios Petrakis stelabouras

😎
View GitHub Profile
@stelabouras
stelabouras / EdgeMapUtils.cs
Created October 10, 2023 16:29 — forked from Donnotron666/EdgeMapUtils.cs
CPU-Based Edge Detection
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
namespace Editor.Utility
{
public static class EdgeMapUtils
{
@stelabouras
stelabouras / killbutmakeitlooklikeanaccident.sh
Created July 17, 2022 13:11 — forked from moyix/killbutmakeitlooklikeanaccident.sh
Script to inject an exit(0) syscall into a running process. NB: only x86_64 for now!
#!/bin/bash
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont'

After requesting the certificate from Apple (to do this, go to Apple Developer site -> APNs Auth key -> [+]), download the .cer file (usually named aps_production.cer or aps_development.cer) from the iOS Provisioning Portal, save in a clean directory, and import it into Keychain Access.

It should now appear in the keyring under the "Certificates" category, as Apple Push Services. Inside the certificate you should see a private key (only when filtering for the "Certificates" category).

Export this private key as a .p12 file:

  • Right click in the certificate we are interested in Keychain and select Export...
  • Accept the default .p12 file format and then click Save