Skip to content

Instantly share code, notes, and snippets.

@4ft35t
4ft35t / log
Created December 18, 2023 06:09
clash-jegotrip.log.txt
# Capture on 2023-12-18 13:49:46.768
13:49:46.774 Info: [APP] Logcat level: info
13:49:56.220 Info: [UDP] 172.19.0.1:16403 --> comm-main.ess.apple.com:3481 doesn't match any rule using DIRECT
13:49:57.500 Info: [TCP] 172.19.0.1:62898 --> cl4-cn.apple.com:443 match GeoIP(CN) using DIRECT
13:49:57.506 Info: [TCP] 172.19.0.1:62897 --> cl3.apple.com:443 match GeoIP(CN) using DIRECT
13:49:57.507 Info: [TCP] 172.19.0.1:62896 --> iphone-ld.apple.com:443 match GeoIP(CN) using DIRECT
13:49:57.507 Info: [TCP] 172.19.0.1:62895 --> iphone-ld.apple.com:443 match GeoIP(CN) using DIRECT
13:49:57.522 Info: [TCP] 172.19.0.1:62899 --> gs-loc-cn.apple.com:443 match GeoIP(CN) using DIRECT
13:49:57.874 Info: [TCP] 172.19.0.1:62900 --> gsp85-cn-ssl.ls.apple.com:443 match GeoIP(CN) using DIRECT
13:49:57.879 Info: [TCP] 172.19.0.1:62902 --> ocsp2.apple.com:443 match GeoIP(CN) using DIRECT
sum(a): 10656
sum(b): 10656
a = 1776 , len(b) = 83, sum(b) = 10656
588
504
280
224
180
a = 2667 , len(b) = 78, sum(b) = 8880
364
@4ft35t
4ft35t / AndroidManifest.xml
Last active April 14, 2022 02:49 — forked from burinov/1commands.sh
Example on how to use adb to start an Activity,BroadcastReceiver or Service from adb and include intent extras too.for Activity: adb shell am start -n "com.peirr.test/com.peirr.test.MyActivity" --es name "John" --ei age 30for BroadcastReceiver adb shell am broadcast -n "com.peirr.test/com.peirr.test.MyReceiver" --es name "John" --ei age 30for Se…
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.peirr.test">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
@4ft35t
4ft35t / google-photo-free-up-space.js
Last active March 25, 2022 13:36
Upload Synology photos to FTP. eg: FTP server on Pixel one(2016) to get unlimited Google Photos backup.
auto();
console.show()
var utils = require('utils.js');
pkgName='com.google.android.apps.photos'
// 直接启动
app.startActivity({
packageName: pkgName,
@4ft35t
4ft35t / result.md
Last active December 30, 2019 09:24
cat test.txt | sed  -n '/^start/,/^end/{/^start/,/i hate you/{/i hate you/p;};}'
i hate you 2
i hate you 4
i hate you 6
cat test.txt| awk '/start /{in_block=1; next} in_block && /i hate you/{t=$0; in_block=0; next} t && /end/{print t; t=""}'
i hate you 2
@4ft35t
4ft35t / android-captive.sh
Created June 20, 2019 06:27 — forked from tonyseek/android-captive.sh
Overrides the captive portal settings of Android in the People's Republic China Mainland
#!/usr/bin/env sh
adb shell settings put global captive_portal_fallback_url http://g.cn/generate_204
adb shell settings put global captive_portal_http_url http://www.google.cn/generate_204
adb shell settings put global captive_portal_https_url https://www.google.cn/generate_204
adb shell settings put global captive_portal_other_fallback_urls http://www.qualcomm.cn/generate_204
@4ft35t
4ft35t / unwxapkg.py
Created April 3, 2019 07:26 — forked from Integ/unwxapkg.py
A useful tool for unpack wxapkg file with python3 surport.
# coding: utf-8
# py2 origin author lrdcq
# usage python3 unwxapkg.py filename
__author__ = 'Integ: https://github.com./integ'
import sys, os
import struct
class WxapkgFile(object):
#!/bin/bash
set -euo pipefail
# http://apetec.com/support/GenerateSAN-CSR.htm
# http://chschneider.eu/linux/server/openssl.shtml
DOMAIN=${1:-c9.dev}
IP=${2:-127.0.0.1}
if [[ "$DOMAIN$IP" =~ [/[:space:]] ]]; then
@4ft35t
4ft35t / disable-right-key.html
Created February 19, 2019 03:37
disable the right key
<script for=document event="oncontextmenu()" language="javascript">
/*disable the right key*/
//return false;
</script>
#!/usr/bin/env python3
from __future__ import print_function
import frida
import sys
import json
import time
def on_message(message, payload):
if(message['type'] == 'send'):