Skip to content

Instantly share code, notes, and snippets.

View ant4g0nist's full-sized avatar
🐳

Chaitanya ant4g0nist

🐳
View GitHub Profile
@ant4g0nist
ant4g0nist / injection.mm
Last active November 8, 2022 12:44
Get pids of XPC services launched by Safari/MiniBrowser -> WebKit ProcessLauncher
//
// main.m
// safari_fuzzer
//
// Created by ant4g0nist on 09/11/2021.
//
/*
Build: ➜ clang++ injection.mm -framework Foundation -dynamiclib -o injection.dylib
Usage: ➜ DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES=injection.dylib /Users/ant4g0nist/Desktop/macOSResearch/WebKit/WebKit/WebKitBuild/Release/MiniBrowser.app/Contents/MacOS/MiniBrowser
@ant4g0nist
ant4g0nist / tezos.md
Created July 20, 2021 15:06
Install Tezos Client on Apple M1
➜  tezos ✗ arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
➜  tezos ✗ arch -x86_64 /usr/local/bin/brew tap serokell/tezos-packaging https://github.com/serokell/tezos-packaging.git
➜  tezos ✗ arch -x86_64 /usr/local/bin/brew install tezos-client

➜  tezos ✗ tezos-client 
Usage:
  tezos-client [global options] command [command options]
  tezos-client --help (for global options)
  tezos-client [global options] command --help (for command options)
@ant4g0nist
ant4g0nist / Solana-Summercamp-theme.json
Last active August 15, 2022 05:22
Solana Summer Camp Theme for iterm2
{
"Normal Font" : "Menlo-Regular 12",
"Tags" : [
],
"Ansi 12 Color" : {
"Green Component" : 0.9375,
"Blue Component" : 0.60546874999999989,
"Red Component" : 0.19921875000000003
},
@ant4g0nist
ant4g0nist / solana_install_version.sh
Created December 11, 2021 09:38
add this to your profile or .zshrc
solana_install_version() {
sh -c "$(curl -sSfL https://release.solana.com/$1/install)"
}
@ant4g0nist
ant4g0nist / ps4.html
Created October 28, 2021 05:04 — forked from sleirsgoevy/ps4.html
PS4 WebKit exploit on 9.00
<script>
var PAGE_SIZE = 16384;
var SIZEOF_CSS_FONT_FACE = 0xb8;
var HASHMAP_BUCKET = 208;
var STRING_OFFSET = 20;
var SPRAY_FONTS = 0x1000;
var GUESS_FONT = 0x200430000;
var NPAGES = 20;
var INVALID_POINTER = 0;
var HAMMER_FONT_NAME = "font8"; //must take bucket 3 of 8 (counting from zero)
@ant4g0nist
ant4g0nist / zdiSearch.py
Last active October 14, 2021 11:45
ZDI Search
#!/usr/bin/env python3
import re
import sys
import json
import argparse
import requests
from bs4 import BeautifulSoup
# requirements: pip3 install requests bs4 --user
#
@ant4g0nist
ant4g0nist / contractDownloader.py
Created August 11, 2021 14:40
Downloads Contract Code from etherscan.io (works for all *nets) given the deployed url.
#!/usr/bin/env python3
# Usage: ./contractDownloader.py -u https://etherscan.io/address/0x0f51bb10119727a7e5ea3538074fb341f56b09ad#code
# Usage: ./contractDownloader.py -u https://kovan.etherscan.io/address/0x7b6b10caa9e8e9552ba72638ea5b47c25afea1f3#code
import os
import bs4
import sys
import argparse
import requests
@ant4g0nist
ant4g0nist / Hypervisor.rs
Last active August 3, 2021 13:49
Apple Silicon Hypervisor.framework ffi
/* automatically generated by rust-bindgen 0.56.0 */
pub const true_: u32 = 1;
pub const false_: u32 = 0;
pub const __bool_true_false_are_defined: u32 = 1;
pub const __WORDSIZE: u32 = 64;
pub const __DARWIN_ONLY_64_BIT_INO_T: u32 = 1;
pub const __DARWIN_ONLY_UNIX_CONFORMANCE: u32 = 1;
pub const __DARWIN_ONLY_VERS_1050: u32 = 1;
pub const __DARWIN_UNIX03: u32 = 1;
diff -ru ../xnu-7195.60.75/Makefile ../xnu-7195.81.3/Makefile
--- ../xnu-7195.60.75/Makefile 2020-12-18 10:21:20.000000000 +0100
+++ ../xnu-7195.81.3/Makefile 2021-01-26 21:33:33.000000000 +0100
@@ -31,6 +31,7 @@
export MakeInc_rule=${VERSDIR}/makedefs/MakeInc.rule
export MakeInc_dir=${VERSDIR}/makedefs/MakeInc.dir
+
#
# Dispatch non-xnu build aliases to their own build
//just a quick port of the SKCodecFuzzer harness by j00ru
#define SK_BUILD_FOR_ANDROID
#include <stdio.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>