Skip to content

Instantly share code, notes, and snippets.

View h1code2's full-sized avatar
🎯
Focusing

Amelia Riski h1code2

🎯
Focusing
View GitHub Profile
@h1code2
h1code2 / tiktok.js
Created November 12, 2020 08:05 — forked from liamengland1/tiktok.js
tiktok anti-scraping code
var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(f) {
return typeof f
}
: function(f) {
return f && "function" == typeof Symbol && f.constructor === Symbol && f !== Symbol.prototype ? "symbol" : typeof f
}
;
TAC = function() {
function f(f, a, b, d, c, r) {
null == r && (r = this);
@h1code2
h1code2 / nginx.conf
Created November 4, 2020 11:39
Nginx简单配置负载均衡 #nginx #负载均衡
http {
upstream tiktok {
server 192.168.90.147:5000;
# server 192.90.156:5000;
}
server {
listen 8080;
# proxy_send_timeout 300s;
# proxy_read_timeout 300s;
@h1code2
h1code2 / readme.md
Created October 29, 2020 06:18
Java字节码与Python字节码互转 #Java #Python #字符码
def pb2jb(byte_arr):
    """
    python字节码转java字节码
    :param byte_arr:
    :return:
    """
    return [int(i) - 256 if int(i) > 127 else int(i) for i in byte_arr]
@h1code2
h1code2 / extract_chrome_cache_html.py
Created October 14, 2020 06:38 — forked from christopherhesse/extract_chrome_cache_html.py
extract original content from chrome about:cache html source
import sys
import re
import gzip
import mimetypes
from mimetools import Message
from StringIO import StringIO
def parse_headers(raw_headers):
response_line, headers_text = raw_headers.split('\n', 1)
headers = Message(StringIO(headers_text))
@h1code2
h1code2 / readme.md
Last active July 29, 2025 09:40
整理一些常见的app跳转scheme url #小红书 #微信 #快手 #抖音

今天整理脚本时,发现存了挺多跳转app的代码,大部分是我在百度上搜索得来的,所以你们也不用问我获取方法了,用就完了。当然之前我也写过一个快手的提取scheme url的方法,想学的话在我公众号(3分钟学堂)历史文章自行搜索。

多余的话我就不多说了直接上代码。注:向右滑动可以查看完整代码。

抖音作品页

Import "shanhai.lua"
shanhai.execute("am start -a android.intent.action.VIEW -d snssdk1128://aweme/detail/6814634004747193615")
@h1code2
h1code2 / readme.md
Created October 10, 2020 02:57
C核心语法学习笔记 #C #笔记
注意:本笔记为C核心语法学习笔记,为笔者快速复习C时使用,更完整的教程请查看更专业的C教程。

1、0xA3U:表示无符号的十六制数0xA3

2、字符常量:‘a' == 97

3、字符串常量:"aa",系统会在存储字符串的时候自动加上字符串结束标志:’\0'

4、符号常量/宏常量:#define 常量名 常量值 #define PI 3.1415926

@h1code2
h1code2 / readme.md
Last active October 10, 2020 02:48
C++核心语法学习笔记 #笔记 #C++ #语法
注意:本笔记为C++核心语法学习笔记,为笔者快速复习C++时使用,更完整的教程请查看更专业的C++教程。

C/C++区别:

  • 1、C:字符常量 -> 整数 C++:字符常量 -> 字符
  • 2、C:main函数可调用 C++:main函数不可调用
  • 3、C:可取寄存器变量地址 C++:不可取寄存器变量地址
  • 4、C++增加了bool基本类型和wchar_t扩展类型
  • 5、C++可省略“struct 结构体名 变量名” 中的struct
@h1code2
h1code2 / readmd.md
Last active December 27, 2023 20:20
Objection/Fida常用功能一把梭Objection #frida #hook #spawn

Objection使用笔记及常用代码

1. Spawn方式Hook

从Objection的使用操作中我们可以发现,Obejction采用Attach附加模式进行Hook,这可能会让我们错过较早的Hook时机,可以通过如下的代码启动Objection,引号中的objection命令会在启动时就注入App

objection -g packageName explore --startup-command 'android hooking watch xxx' 

2. Hook加密库

11x256内容原文

@h1code2
h1code2 / readme.md
Created September 29, 2020 07:55
加载so后立即hook函数 #frida #hook #so

这没啥 就是hookdlopen 然后再去hook so的函数

@h1code2
h1code2 / openwrt-lede.md
Last active June 7, 2024 14:03
[frp设置自动自动] 不同平台设置frp自动启动 #frp #openwrt

给你的OpenWRT/LEDE 添加frp开机服务

添加PROC服务文件:

vi /etc/init.d/frpc

配置文件内容:

#!/bin/sh /etc/rc.common