Skip to content

Instantly share code, notes, and snippets.

@muff-in
muff-in / resources.md
Last active April 27, 2024 22:37
A curated list of Assembly Language / Reversing / Malware Analysis / Game Hacking-resources
@LeadroyaL
LeadroyaL / unflower_cms.py
Last active March 8, 2024 12:04
Unicorn实战(一):去掉libcms.so的花指令
from elftools.elf.constants import P_FLAGS
from elftools.elf.elffile import ELFFile
from unicorn import Uc, UC_ARCH_ARM, UC_MODE_LITTLE_ENDIAN, UC_HOOK_CODE, UC_PROT_READ, UC_PROT_WRITE, UC_PROT_EXEC
from unicorn.arm_const import *
from capstone import Cs, CS_ARCH_ARM, CS_MODE_THUMB, CsInsn
from keystone import Ks, KS_MODE_THUMB, KS_ARCH_ARM
# 找到.text节
filename = "./libcms.so"
@wangruohui
wangruohui / Install NVIDIA Driver and CUDA.md
Last active April 23, 2024 02:03
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@Erichain
Erichain / installAndroidSDKOnMac.md
Last active July 28, 2023 06:57
Mac OS下安装和配置android-sdk

##MAC OS下安装和配置android-sdk

###安装

在MAC上安装android-sdk,标准的安装方法是使用homebrew,运行如下命令:

brew update

brew install android-sdk

@ikonst
ikonst / cfdata.py
Last active January 27, 2024 22:18
LLDB extension for saving CFData to local file; useful for remote iOS debugging
'''
INSTALLING
curl --create-dirs -o ~/.lldb/cfdata.py https://gist.githubusercontent.com/ikonst/364af37c44e5f549b722/raw/cfdata.py \
&& echo 'command script import ~/.lldb/cfdata.py' >> ~/.lldbinit
USING
(lldb) cfdata_save some_cfdata /Users/john/foo
(lldb) cfdata_save some_nsdata /Users/john/bar
@JobsDong
JobsDong / gistools.py
Created January 8, 2014 07:58
Mercator to BD09, BD09 to GCJ03
#!/usr/bin/python
#-*- coding=utf-8 -*-
"""用于和地理信息有关的数据处理
"""
__author__ = ['"wuyadong" <wuyadong@tigerknows.com>']
import math
@davidruhmann
davidruhmann / hmodule.cpp
Last active February 9, 2021 04:22
[C++] GetCurrentModule - Obtain a Module Handle HMODULE to the current DLL
const HMODULE GetCurrentModuleLegacy()
{
// Query Against Myself
MEMORY_BASIC_INFORMATION mbi = {};
if (0 == VirtualQuery(GetCurrentModuleLegacy, &mbi, sizeof(mbi)))
{
// See GetLastError()
return NULL;
}
return (HMODULE)mbi.AllocationBase;
@irazasyed
irazasyed / homebrew-permissions-issue.md
Last active May 2, 2024 22:51
Homebrew: Permissions Denied Issue Fix (OS X / macOS)

Homebrew Permissions Denied Issues Solution

sudo chown -R $(whoami) $(brew --prefix)/*

@dweinstein
dweinstein / Makefile
Created November 15, 2013 18:21
Android standalone native makefile
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(NDK_DIR)),)
$(error "set NDK_DIR in your environment. export NDK_DIR=<path to android-ndk-r8e>")
endif
#determine OS string
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active May 3, 2024 17:56
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S