Skip to content

Instantly share code, notes, and snippets.

@yoyokko
yoyokko / FirstShellTool.java
Created December 6, 2024 04:46 — forked from Forgo7ten/FirstShellTool.java
修改dex文件并修复 CheckSum、filesize、sha1;将某文件添加到dex文件的末尾
import java.io.*;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.zip.Adler32;
public class FirstShellTool {
private static final String originApk = "C:\\Users\\Palmer\\Desktop\\classes3.dex";
@yoyokko
yoyokko / Base.java
Created December 6, 2024 04:45 — forked from Forgo7ten/Base.java
Base64 自定义字符表加解密
package my.crypto;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
/**
* @ClassName Base
* @Description Base64自定义加解密示例
* @Author Palmer
* @Date 2022/2/3
@yoyokko
yoyokko / packageAndroid.sh
Created August 19, 2024 07:36 — forked from aveuiller/packageAndroid.sh
Extract the Android .odex files and package a new android.jar with the retrieved classes
#!/bin/sh
##
# Usage:
# ./convert.sh /path/to/framework /path/to/out $apiVersion $arch
#
# $arch is mandatory only in case of an ART system and defines the boot folder to use (arm, x86, x86_64).
##
frameworkDir=$1
# Final output directory
@yoyokko
yoyokko / adb-dns.bat
Created August 19, 2024 07:19 — forked from sharunkumar/adb-dns.bat
Enabling / Disabling private DNS in android via ADB
rem to disable private dns
adb shell settings put global private_dns_mode off
rem to enable private dns with hostname (example with dns.adguard.com)
adb shell settings put global private_dns_mode hostname
adb shell settings put global private_dns_specifier dns.adguard.com
@yoyokko
yoyokko / podforceupdate.sh
Created May 21, 2016 07:42 — forked from mbinna/podforceupdate.sh
Clear CocoaPods cache, re-download and re-install all pods
#!/usr/bin/env bash
rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf "`pwd`/Pods/"
pod update
@yoyokko
yoyokko / Makefile
Last active August 29, 2015 14:18 — forked from polesen/Makefile
CC = clang
CFLAGS =
DEPS =
OBJ = modexp2pubkey.o
LIBS = -lssl -lcrypto
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
modexp2pubkey: $(OBJ)
#
# uncrustify config file for objective-c and objective-c++
#
indent_with_tabs = 0 # 1=indent to level only, 2=indent with tabs
output_tab_size = 4 # new tab size
indent_columns = output_tab_size
indent_label = 2 # pos: absolute col, neg: relative column
indent_align_assign = FALSE
#!/usr/bin/python
import os
import sys
import getopt
template = '''
# This file is NOT licensed under the GPLv3, which is the license for the rest
# of YouCompleteMe.
#