原创 class文件生成dex

dx的位置/Users/chennan/Library/Android/sdk/build-tools/27.0.3/dx dx --dex --no-strict --output=/Users/chennan/Desktop/1.dex

原创 python將redis中set類型的大數據,寫入到parquet文件中

import json import pandas as pd from crawler.db.redis_client import redis_cli file2 = "2.parquet" set_key = "agi_laio

原创 python等比縮放圖片

import imghdr import time from io import BytesIO import pyarrow.parquet as pq from PIL import Image def resize_image(

原创 python操作pandas的筆記

import pandas as pd data = {'name': ['Alice', 'Bob', 'Charlie', 'David'], 'age': [25, 30, 35, 40], 'gen

原创 frida hook內部類和動態加載的類

function hook_dyn_dex() { Java.perform(function () { var FridaActivity2 = Java.use("com.example.fridademo202

原创 mac brew安裝報錯curl: (60) SSL certificate problem: certificate has expired

curl: (60) SSL certificate problem: certificate has expired More details here: https://curl.haxx.se/docs/sslcerts.html

原创 aria2c下載設置

aria2c -D -l data/apps/crawler-core/04.log --log-level notice -x 16 -s 64 https://the-eye.eu/public/AI/pile/train/03.jso

原创 python gz解壓

def decompose_file(data): # ungz_file_path = gz_file_path.replace(".gz", "") # with gzip.open(gz_file_path, 'rb'

原创 ffmpeg ts轉換爲mp4

ffmpeg -i 1 aaa.ts -acodec copy -vcodec copy -absf aac_adtstoasc output.mp4

原创 mac編譯wat報錯解決方案

按照github的步驟一步步來的時候,最後一步出現問題, ld: cannot link directly with dylib/framework, your binary is not an allowed client of /usr

原创 mac安裝emsdk使用wasm

git clone https://github.com/emscripten-core/emsdk.git pyenv local 3.8.0 ./emsdk install latest https://xmanyou.com/w

原创 binwalk提取文件

從png圖片中分離出png圖片 binwalk -D 'image:png' result.png 從圖片中分離出zip壓縮文件並解壓 binwalk -D 'zip archive:zip:unzip %e' cqzb.jpg

原创 frida stalker

//對arm64比較友好,arm32的可能崩潰 function call_1CFF0(input_str) { var base_hello_jni = Module.findBaseAddress("libhello-jni.s

原创 js mouse movie獲取座標

document.addEventListener('mousemove',function (e) { //mousemove 鼠標一移動,就會觸發事件 //獲取鼠標最新的座標 consol

原创 滑動驗證碼計算滑塊的距離

方法 @staticmethod def get_distance(fg, bg): """ 計算滑動距離 """ target = cv2.imdecode(