Skip to content

Instantly share code, notes, and snippets.

View ant4g0nist's full-sized avatar
🐳

Chaitanya ant4g0nist

🐳
View GitHub Profile
#vlc_poc.py:
import struct
import sys
class mov_exploit:
def __init__(self,blocksize,gotbase,gotsize,shellcodebase=None,arch='win32'):
self.arch=arch
self.blocksize=blocksize
--- dyld-210.2.3/launch-cache/dsc_extractor.cpp 2012-05-21 02:35:15.000000000 -0400
+++ dyld-210.2.3/launch-cache/dsc_extractor.cpp 2013-07-26 16:05:03.000000000 -0400
@@ -37,6 +37,7 @@
#include <mach-o/arch.h>
#include <mach-o/loader.h>
#include <Availability.h>
+#include <dlfcn.h>
#define NO_ULEB
#include "Architectures.hpp"
@ant4g0nist
ant4g0nist / sepsplit.c
Created December 13, 2019 02:24 — forked from xerub/sepsplit.c
/*
* SEP firmware split tool
*
* Copyright (c) 2017 xerub
*/
#include <fcntl.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
@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
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/
//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>
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
@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;
@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 / 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
#