Purpose
Generate at run-time a zero-argument function that always calls a given 2-argument function with two fixed constants, using Frida Gum’s GumX86Writer
.
Build (Linux example)
g++ bound_function.cpp -o bound -I./frida -L./frida -lfrida-gum
The program demonstrates how to intercept (“hook”) a C function at runtime with Frida Gum.
install_hook()
replaces the original func()
with my_func()
, while keeping a pointer (orig_func
) so the genuine implementation can still be called.
After the test call, remove_hook()
cleans everything up and de-initialises Frida.
We need frida-gum-devkit
. Please access frida/releases.
Demonstrates how to perform GPU compute shader in the browser using the WebGPU API.
html
. open html
via a web server. The protocol should be https://
.Purpose To establish a peer-to-peer WebRTC DataChannel between two browsers without a signalling server by exchanging the session description (SDP) through on-screen QR codes.
How to Use
This Python 3 script, built with the pypdf library, converts a single extremely tall PDF—such as one created by an iOS browser’s full-page screenshot feature—into a multi-page document:
Purpose:
This guide explains how to configure routing so that only necessary IP address ranges go through the VPN interface (ppp0
), while the default internet traffic uses the regular network interface (eth0
). This avoids routing all traffic through the VPN and limits VPN usage to required subnets.
Steps:
eth0
) instead of the VPN interface (ppp0
):This script automates the removal of packages listed in one file (to_be_removed.txt
), but skips removal if doing so would also remove any "protected" packages listed in another file (keep.txt
). It ensures important packages are not accidentally uninstalled.
To automatically organize all files and folders in the Downloads directory into subfolders named by their creation year and month (format: YYYYMM).
~/Downloads
folder.