Tag

Hook

0 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 20, 2024 · Mobile Development

Hooking Android Looper Observer for Message Timing Monitoring and Bypassing Hidden APIs

This article explains how to use reflection and dynamic proxies to hook the hidden Android Looper.Observer API for detailed message‑dispatch timing, demonstrates code examples for installing and removing the hook, discusses workarounds for hidden‑API restrictions and the .dex loading changes introduced in Android 14.

AndroidHidden APIHook
0 likes · 13 min read
Hooking Android Looper Observer for Message Timing Monitoring and Bypassing Hidden APIs
Python Programming Learning Circle
Python Programming Learning Circle
Feb 19, 2024 · Information Security

Using Python ctypes to Set Windows Hooks for Keyboard Monitoring

This tutorial explains how to use Python's ctypes library to register, implement, and remove Windows hooks for low‑level keyboard monitoring, providing step‑by‑step code examples that demonstrate hook registration, callback definition, prototype declaration, and cleanup.

HookKeyloggerWindows API
0 likes · 8 min read
Using Python ctypes to Set Windows Hooks for Keyboard Monitoring
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 22, 2023 · Frontend Development

A Comprehensive Guide to Building a Reusable useList Hook for CRUD Pages in Vue 3

This article explains how to create a generic useList hook for Vue 3 that handles pagination, data fetching, filtering, resetting, exporting, and customizable success/error hooks, complete with TypeScript generics and Element‑Plus UI integration.

Composition APIExportHook
0 likes · 13 min read
A Comprehensive Guide to Building a Reusable useList Hook for CRUD Pages in Vue 3
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 3, 2023 · Frontend Development

Understanding and Solving Scroll Chaining Issues on Mobile Browsers

This article explains the causes of scroll chaining on mobile browsers, illustrates two common scenarios that trigger it, and provides a reusable React hook solution—including touch handling, scroll‑parent detection, and event‑preventing logic—to reliably stop unwanted scrolling in overlays.

HookReactmobile
0 likes · 16 min read
Understanding and Solving Scroll Chaining Issues on Mobile Browsers
ByteFE
ByteFE
May 24, 2023 · Frontend Development

Design, Implementation, and Performance Benefits of a New React Hook for Controlling Flow

This article analyses the conceptual design, possible implementation, and performance advantages of a new React Hook that can be called inside control flow, discusses its future extensions such as usePromise, lazy subscription, and integration with concurrent mode, and provides practical code examples.

Concurrent ModeHookReact
0 likes · 13 min read
Design, Implementation, and Performance Benefits of a New React Hook for Controlling Flow
php中文网 Courses
php中文网 Courses
Mar 25, 2023 · Backend Development

ThinkPHP Hook Behaviors: Concepts, Usage Examples, and Implementation

This article explains the concept of ThinkPHP Hook behaviors, demonstrates how to define custom behavior classes, bind them to tags using Hook::add, trigger them with Hook::listen, and configure tag bindings in tags.php, providing complete code examples for a login scenario.

BehaviorHookThinkPHP
0 likes · 6 min read
ThinkPHP Hook Behaviors: Concepts, Usage Examples, and Implementation
DaTaobao Tech
DaTaobao Tech
Dec 9, 2022 · Fundamentals

Frida-gum Based Non-intrusive C++ Mock Framework

This open‑source C++ mock framework leverages Frida‑gum to replace any function—including static, member, virtual, and library calls—at runtime without source changes, offering simple MOCK and MOCK_RETURN macros, call‑count expectations, automatic scope‑based rollback, and cross‑platform support for reliable, non‑intrusive unit testing.

C++Cross-PlatformFrida
0 likes · 11 min read
Frida-gum Based Non-intrusive C++ Mock Framework
37 Interactive Technology Team
37 Interactive Technology Team
Oct 10, 2022 · Frontend Development

AOP Techniques for Ajax and Jsonp in Front-End Development

The article explains how to use Aspect‑Oriented Programming to globally intercept and rewrite Ajax and JSONP requests—both native and framework based—by extending Function.prototype, overriding DOM methods, and employing ajax‑hook and Axios interceptors, culminating in a runnable demo that redirects traffic from a‑domain to b‑domain.

AJAXAOPAxios
0 likes · 19 min read
AOP Techniques for Ajax and Jsonp in Front-End Development
Baidu Geek Talk
Baidu Geek Talk
Oct 10, 2022 · Mobile Development

Thor Container Framework: Unified Java and Native Hook for Mobile Apps

Thor is a unified Android container framework that combines Java and native hooking into a lightweight, dynamically loadable module, ensuring backward compatibility, hot‑plug plugin deployment, fault‑tolerant operation, and cloud‑controlled toggling, while real‑world plugins for threads, I/O, privacy, and memory deliver measurable performance and stability gains.

AndroidDynamic PluginsHook
0 likes · 25 min read
Thor Container Framework: Unified Java and Native Hook for Mobile Apps
Baidu App Technology
Baidu App Technology
Sep 22, 2022 · Mobile Development

Thor Container Framework Introduction

The Thor Container Framework, created by Baidu for its App to meet Hook technology needs, offers standardized Java and Native Hook interfaces through an abstract layer, enabling lightweight, dynamically delivered plugins with hot‑swap capability, cloud‑controlled activation, and robust disaster‑recovery features, supporting use cases such as low‑end optimization, privacy compliance, OOM handling, and pipeline integration.

AndroidContainer FrameworkHook
0 likes · 22 min read
Thor Container Framework Introduction
Python Programming Learning Circle
Python Programming Learning Circle
Aug 2, 2022 · Information Security

Implementing a Windows Keylogger in Python Using ctypes and Win32 API

This tutorial explains how to build a Windows keylogger in Python by importing Win32 DLLs with ctypes, registering a low‑level keyboard hook, defining the hook procedure and data structures, and handling installation, event processing, and cleanup, while providing full source code and usage notes.

HookKeyloggerWin32 API
0 likes · 7 min read
Implementing a Windows Keylogger in Python Using ctypes and Win32 API
Python Programming Learning Circle
Python Programming Learning Circle
Aug 1, 2022 · Information Security

Implementing Windows Hooks in Python Using ctypes

This tutorial explains how to create a Windows key‑logging spy program by registering low‑level hooks through the user32 and kernel32 DLLs, using Python's ctypes library to call the required WinAPI functions, define callback prototypes, and manage hook installation and removal.

HookKeyloggerWindows API
0 likes · 8 min read
Implementing Windows Hooks in Python Using ctypes
Youzan Coder
Youzan Coder
Mar 14, 2022 · Information Security

Android Privacy Protection: Privacy API and Permission HOOK Implementation Practice

To meet new Chinese privacy regulations, the article presents an mPaaS‑based solution that uses compile‑time Java HOOKs to replace privacy‑sensitive API calls and dangerous permission requests, automatically detecting and logging violations during build and runtime, and providing backend alerts and management tools for compliance.

ASMAndroidBytecode Manipulation
0 likes · 14 min read
Android Privacy Protection: Privacy API and Permission HOOK Implementation Practice
ByteDance Terminal Technology
ByteDance Terminal Technology
Oct 28, 2021 · Mobile Development

MemCorruption Tool for Detecting Memory Corruption Issues in Android Apps

The MemCorruption tool, developed by ByteDance's AppHealth team, provides an online, low‑overhead solution for detecting Use‑After‑Free, Double‑Free, and Heap‑Buffer‑Overflow problems in Android applications by hooking memory allocation functions, sampling allocations, and performing invisible SIGSEGV‑based detection.

AndroidHookMemory Corruption
0 likes · 12 min read
MemCorruption Tool for Detecting Memory Corruption Issues in Android Apps
Tongcheng Travel Technology Center
Tongcheng Travel Technology Center
Aug 27, 2021 · Information Security

JavaTweakHook: A Lightweight Android Java Method Hook Framework without Xposed

The article introduces JavaTweakHook, a lightweight Android hook framework that avoids Xposed by directly manipulating ART structures, compares it with existing solutions, details the hook process—including method creation, ArtMethod copying, assembly trampolines, and native‑Java integration—and provides compilation, usage, and limitation notes.

AndroidHookJava
0 likes · 15 min read
JavaTweakHook: A Lightweight Android Java Method Hook Framework without Xposed
Sohu Tech Products
Sohu Tech Products
Mar 3, 2021 · Mobile Development

Objective‑C Method Swizzling: Hook Order Analysis, Implementation Schemes, and Best Practices

This article examines Objective‑C method swizzling, compares two common implementation schemes, analyzes 18 inheritance‑hook scenarios for child‑first and parent‑first hook orders, and provides practical recommendations to ensure correct execution order and avoid crashes.

HookMethod SwizzlingObjective-C
0 likes · 14 min read
Objective‑C Method Swizzling: Hook Order Analysis, Implementation Schemes, and Best Practices
php中文网 Courses
php中文网 Courses
Mar 1, 2021 · Backend Development

ThinkPHP Framework Execution Process Overview

This article outlines the ThinkPHP framework’s execution flow, detailing the sequence from index.php entry through configuration loading, application generation, class loading, controller action execution, and template rendering, and highlights key classes such as Think\Hook and Think\Behavior.

BehaviorHookPHP
0 likes · 2 min read
ThinkPHP Framework Execution Process Overview
Qunar Tech Salon
Qunar Tech Salon
Jan 27, 2021 · Mobile Development

Implementing Global SDK Privacy Monitoring and Hooking in Android via ASM Transform and Custom Annotations

This article explains how QuNar’s front‑end team built a comprehensive Android SDK privacy monitoring system using a custom Transform, ASM bytecode manipulation, and annotation‑driven hook configurations, detailing both basic and advanced solutions for globally intercepting sensitive API calls and ensuring extensible, version‑independent protection.

ASMAndroidAnnotations
0 likes · 20 min read
Implementing Global SDK Privacy Monitoring and Hooking in Android via ASM Transform and Custom Annotations
Sohu Tech Products
Sohu Tech Products
Jan 13, 2021 · Mobile Development

Understanding Hook Techniques and Fishhook Implementation on iOS

This article explains the fundamentals of hooking on iOS, covering Method Swizzle and Facebook's fishhook, detailing the Mach‑O file structure, PIC technique, and providing complete source code examples that demonstrate how to replace system functions such as NSLog at runtime.

FishhookHookMach-O
0 likes · 22 min read
Understanding Hook Techniques and Fishhook Implementation on iOS
php中文网 Courses
php中文网 Courses
Nov 2, 2020 · Backend Development

Using Hook Behaviors in ThinkPHP: A Practical Guide

This article explains the concept of ThinkPHP Hook behaviors, demonstrates how to define, bind, and trigger custom behavior classes with code examples, and shows how to decouple login logic using event‑like hooks for more maintainable backend development.

BackendBehaviorDecoupling
0 likes · 6 min read
Using Hook Behaviors in ThinkPHP: A Practical Guide