Skip to content

Instantly share code, notes, and snippets.

Avatar

Hanning Kong tony0x59

View GitHub Profile
View channel.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
@tony0x59
tony0x59 / build-protobuf-2.5.0.sh
Created Oct 12, 2020
build protobuf for iOS Simulator
View build-protobuf-2.5.0.sh
#!/bin/bash
echo "$(tput setaf 2)"
echo Building Google Protobuf for Mac OS X / iOS.
echo Use 'tail -f build.log' to monitor progress.
echo "$(tput sgr0)"
# Controls which architectures are build/included in the
# universal binaries and libraries this script produces.
# Set each to '1' to include, '0' to exclude.
@tony0x59
tony0x59 / hook.js
Created Sep 26, 2019
frida script for modify device info in Any iOS App
View hook.js
if (ObjC.available) {
try {
// list methods
// ObjC.classes.XXXClassName.$ownMethods.forEach(function (m) {
// console.log('method: ' + m);
// })
// watch method callstack
// if (1) {
// // -[NSTimeZone secondFromGMT]
View ping.c
/*
* P I N G . C
*
* Using the InterNet Control Message Protocol (ICMP) "ECHO" facility,
* measure round-trip-delays and packet loss across network paths.
*
* Author -
* Mike Muuss
* U. S. Army Ballistic Research Laboratory
* December, 1983
@tony0x59
tony0x59 / d3_crusader_hand_saver.ahk
Last active Aug 9, 2018
暗黑3 圣教军 阿克汉天谴宏
View d3_crusader_hand_saver.ahk
#SingleInstance force
#IfWinActive ahk_class D3 Main Window Class
;圣教军天谴流自用宏
;源自 http://nga.178.com/read.php?tid=13558051 自动钢甲速刷宏
;
; 代码做了重构,主要有几处修改:
; 1. 宏开关触发挪到了鼠标侧键(按 F2 还要左手操作,懒,只想单手扣脚),喝药水我在游戏按键绑定的鼠标侧键1。
; 2. 右键长按与 shift 键长按效果相同,用于做出强制原地攻击,躲地面元素伤,站立核眼buff圈等场景使用。
; 3. 左键自动连点特性可通过鼠标滚轮上划开启,下滑关闭。方便装备杨裤后快速切换,以及Boss战时安全走位,防止误触发左键普攻。
View wx_t1t_hack.js
var CryptoJS = require('crypto-js')
var request = require('request-promise')
/*
* npm install crypto-js request-promise request
* node wx_t1t_hack.js
*/
// export function testEncription(msg, fullKey) {
// var fullKey = fullKey.slice(0, 16)
View jd_monitor.py
#!/usr/bin/python
# coding:utf-8
import requests
import re
import time
sess = requests.Session()
View bin_to_strhex.c
void bin_to_strhex(unsigned char *bin, uint32_t size)
{
char hex_str[]= "0123456789ABCDEF";
unsigned int i;
char *result;
result = (char *)malloc(size * 2 + 1);
(result)[size * 2] = 0;
if (!size)
View gist:b468e8c060719bc3f7d6
- (BOOL)checkNotificationIsEnabled {
UIApplication *application = [UIApplication sharedApplication];
BOOL enabled = NO;
// iOS8 and above
if ([application respondsToSelector:@selector(isRegisteredForRemoteNotifications)]) {
if ([application isRegisteredForRemoteNotifications]) {
UIUserNotificationSettings *settings = [[UIApplication sharedApplication] currentUserNotificationSettings];
if (settings.types != UIUserNotificationTypeNone) {
enabled = YES;
}
View uncrustify.cfg
#
# Uncrustify Configuration File
# File Created With UncrustifyX 0.2 (140)
#
# Alignment
# ---------
## Alignment