Skip to content

Instantly share code, notes, and snippets.

View ant4g0nist's full-sized avatar
🐳

Chaitanya ant4g0nist

🐳
View GitHub Profile
@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 / 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 / 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 / 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 / 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)
//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>
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libhwui
LOCAL_SRC_FILES := /android/rootfs/system/lib64/libhwui.so
include $(PREBUILT_SHARED_LIBRARY)
### build your lib ###
include $(CLEAR_VARS)
LOCAL_LDLIBS := -lhwui -L/android/rootfs/system/lib64/
@ant4g0nist
ant4g0nist / Makefile
Created April 18, 2021 19:15
Ethereum Book PDF
pdf: ## Generate PDF version of the manual
git clone https://github.com/ethereumbook/ethereumbook
asciidoctor-pdf \
--base-dir $(CURDIR)/ethereumbook \
--out-file "$(CURDIR)/Ethereum Book.pdf" \
$(CURDIR)/ethereumbook/book.asciidoc
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