5,725 questions
-1
votes
0
answers
44
views
How I can use Xposed to hook WindowSurfaceController in android 16?
I'm working on an Xposed module that aims to hide certain system windows (like OPPO's zoom windows, long screenshot UI) by dynamically adding the FLAG_SECURE flag to their surfaces when they are ...
0
votes
1
answer
54
views
Wordpress hook that runs in the last and can help to find and control all registered and enqueued scripts
I need to find and dequeue script and style files from frontend of Wordpress single post, I need a robust and full proof hook which can find out all scripts which are loading on front end of the page, ...
4
votes
0
answers
100
views
How can a Windows 11 application prevent DLL injection via SetWindowsHookEx from another application
When an application calls SetWindowsHookEx, eg with WH_MOUSE, then as soon as there is a mouse message pending, Windows will inject the relevant DLL into the process space of the application that is ...
2
votes
0
answers
78
views
Can the return value of the `load` hook in Node.js's module customization hooks be passed to the next hook?
The Chaining section of the Node.js documentation mentions that the registered hooks will form chains.
Based on the load hook section, I've tried it myself.
I found that if the load hook wants to ...
1
vote
1
answer
71
views
EXE created with Pyinstaller fails to import qtmodern as specified in hook
I’m trying to create an EXE based on a Python project. I am using the following command from within a Poetry virtual environment in Powershell on Windows 11: pyinstaller --onefile --additional-hooks-...
0
votes
0
answers
32
views
Woocommerce hook new order and payment complete
I am using this hook to register user if it was guest checkout:
add_action( 'woocommerce_new_order', 'ap_woocommerce_new_order',10,1);
function ap_woocommerce_new_order($order_id) {
$order = ...
0
votes
1
answer
172
views
Hooking IWbemServices::ExecMethod to get WMI Parameters
I'm trying to hook IWbemServices::ExecMethod so that I can capture WMI method parameters. Tools like WMIMon from GitHub don't capture parameters, and neither does Event Viewer.
I've searched and found ...
-1
votes
1
answer
95
views
Use c++ dll to hook to an instruction and still use the registers (x86) [closed]
NOTE: This is decompiled ghidra code, the imageBase start at 0x00400000, so we are working with Program.exe+001a0d39 relative to image base.
005a0d39 01 87 94 ADD dword ptr [EDI + ...
0
votes
0
answers
36
views
Using pyinstaller with deep_translator
I am writing a program to take in data from a spread sheet and write a custom letter based on that data and some user supplied information / sentences. This letter needs to be translated into Spanish ...
0
votes
0
answers
86
views
Phoenix: Unknown hook found for "SvelteHook"
I am trying to integrate live_svelte in my existing liveview app which already has a couple of JS hooks as well. I've followed the official Readme file of live_svelte library.
I am trying to render ...
1
vote
0
answers
31
views
Gradle plugin extension hook right after extension configure closure executed?
I have a convention plugin for set of my libs in distributed project. I want provide some common config functions like
myConvention {
setupJUnit()
copyManifestToResources()
dropGuava()
}
...
2
votes
0
answers
105
views
Try to hooking read/write() with LD_PRELOAD but cat/echo cmd looks strange [duplicate]
aim: when I command
echo "msg" > test.txt or cat test.txt, I wanted to add my action.
I tried to hook read() write() glibc function with LD_PRELOAD.
When I use..
#1. $ echo "msg"...
0
votes
1
answer
70
views
Hooks in separate configuration file
I want to generate on every start of DDEV a fresh setup of my CSS files. Therefor, I want to add a hook to a separate file, that I can only use for my custom setup and no one else in my company is ...
0
votes
0
answers
135
views
How to modify an Android app (open source, Java) without rebuilding an APK?
I use Termux on Android to automate some tasks, specifically using file sharing with termux.
Currently, when I share a file with Termux, a dialog appears with various options (save, edit, etc.) that ...
-1
votes
2
answers
121
views
How to register hooks in Java?
For analyzing the runtime behavior of applications, or for implementing plug-ins, is there any way to add hooks to methods' input, output, etc. inside the running application?
The idea:
Collection....
2
votes
1
answer
176
views
Why does copy_from_user fail in this scenario and return the number of bytes that it is supposed to copy?
I'm making this post to ask for help regarding hooking functions with kprobes/kretprobes. I'm doing it for a school project and I used xcellerator's guide about rootkits as a rough plan of how to ...
1
vote
1
answer
76
views
Hooks in suitecrm 8
I have created a package Package1 (PKG1) and a module Impianto with a custom field indirizzo of type text in SuiteCRM 8. I now want to add validation to this field, so that if it does not start with &...
0
votes
0
answers
183
views
github hook to write a configuration file to the repository
I have a github repository which holds a node ts express server.
when I commit to staging branch there is a webhook between github and aws apprunner that auto deploys to my staging area, and same when ...
1
vote
0
answers
96
views
What WooCommerce hooks should I use to display a short product description on a page powered by Ellementor?
I am using the OceanWP theme and Elementor Pro. I am using Elementor widgets: PRODUCTS and OceanWP widgets: WOO - PRODUCTS. These widgets do not allow you to display a SHORT PRODUCT DESCRIPTION from ...
1
vote
0
answers
79
views
LD_PRELOAD Hook only logging a few commands on Ubuntu 20.04.3 LTS
I have written this following code:
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <dlfcn.h>
#include <...
0
votes
0
answers
29
views
Copying the context of a driver object to another one
when i create a driver and a device object like this:
PDRIVER_OBJECT fakeDriverObj;
OBJECT_ATTRIBUTES DrvAttribute;
InitializeObjectAttributes(&DrvAttribute,
&dr0Device->DriverObject-&...
1
vote
1
answer
116
views
Getting function addresses from a DllMain hook
Creating DirectX objects directly from DllMain() fails. I have tried starting a new thread, create the objects there and them get vtable/addresses of the functions I'm about to hook.
I'm using ...
0
votes
1
answer
666
views
Playwright with Java - 'TargetClosedError:Target page, context or browser has been closed error
I am new to playwright and can someone help me how to resolve this error?
This is the browser initiation method in base test
public void initBrowser() {
playwright = Playwright.create();
...
0
votes
1
answer
142
views
WithDLL can't inject my hook into the target process
I have implemented a DLL for hooking functions in a target process using Microsoft Detours. However, when I run withdll.exe, which comes with Detours, I get the following error:
B:>withdll.exe /d:[...
0
votes
0
answers
18
views
Segmentaiton fault or Trap in pyobjc keyboard hook [duplicate]
I'm trying to write a small application for macOS in Python where opening characters such as [ { ( < " ' are paired/closed automatically (similar to how it's handled in editors like VS Code, ...
0
votes
2
answers
64
views
Evaluating a function definition with `C-M-x` versus using a hook
The below functions enable the use of eglot in org jupyter src blocks (after https://github.com/joaotavora/eglot/issues/216#issuecomment-1051931693)
(defun org-babel-edit-prep:jupyter-python (babel-...
0
votes
0
answers
53
views
can i save changes in the value before redis key expires
I could not find better solution. I have IDs and ranks in my Redis. Is it possible for me to save the changed ranks to the database before the Redis key expires?. can I trigger some function before it ...
1
vote
0
answers
84
views
How to make a custom function called whenever a method of the PDO class is invoked
I am attempting to hook into the functions within the PDO class.
I declared the zend_execute_internal function and hooked it by setting the address of my custom function, but in the code of New Relic ...
1
vote
1
answer
63
views
WordPress post_link produces permalink that cannot be visited
I write the following codes to change the permalinks of posts with some specific categories, as below:
/* 2024-12-04: Define custom permalinks for some specific posts */
function post_custom_permalink(...
1
vote
0
answers
461
views
Wordpress hook for _load_textdomain_just_in_time warning
As no doubt you're aware an error is thrown in Wordpress 6.7 in wp-includes
"Function _load_textdomain_just_in_time was called incorrectly."
This is called on line 6114.
It's a bit annoying ...
4
votes
1
answer
293
views
Hook setenv(), getenv() using C code during runtime to make them thread safe [closed]
As it is already painfully known, modifying the process environment in a multi-threaded application during runtime is asking for trouble. However, not always we can control who accesses that.
In this ...
0
votes
0
answers
35
views
woocommerce_checkout_fields woocommerce hook doesn't work in custom plugin wordpress, what is the solution? [duplicate]
i'm writing a simple plugin in WordPress; in the root file, i wrote something like this to modify woocommerce checkout page:
<?php
/*
Plugin Name: Test Plugin
Description: Test Plugin
Version: 1.0....
1
vote
0
answers
72
views
How to remove read-only hook in bitbuckets?
I have jira connected with bitbucket, I did some changes in both jira and bitbucket and I get the following error when I try to push
! [remote rejected] test_pre_hook -> test_pre_hook (pre-receive ...
0
votes
1
answer
89
views
Wordress filter the entire content including the template and structure from body
Wordpress has a hook for filtering the content of a post or page;
add_filter('the_content' fn() => // something);
This filters the post content and allows us to modify it / manipulate the DOM etc.....
0
votes
0
answers
84
views
C++ I get error code 5 error when doing patch bytes in DLL injection
After DLL injection in C++, I get error code 5 when trying to NOP the bytes I want. I think this is an access permission error. What should I do for this? I tried to run the loader as administrator.
...
1
vote
1
answer
862
views
Trying to build a custom Retry tag for Reqnroll Gherkin syntax
I am tyrying to build a custom Retry Hook for use with Reqnroll (the newer Specflow), and I am having some difficulty re-running the test. I am curios how I can actually re-run the same test on ...
0
votes
1
answer
391
views
Airflow PostgresHook retrieval in dag
I'm using python to test the Airflow DAG. I have environmental variable:
AIRFLOW_CONN_DB="postgresql://postgres:[email protected]:6099/db"
and I use the following command to get the hook to ...
0
votes
1
answer
82
views
Using java.lang.foreign to substitute for JNativeHook - How to handle KBDLLHOOKSTRUCT
As I learned in Native Hook using java.lang.foreign in JDK23, the third return value of SetWindowsHookEX,
"lParam", is
typedef struct tagKBDLLHOOKSTRUCT {
DWORD vkCode;
DWORD scanCode;
DWORD ...
0
votes
1
answer
123
views
Native Hook using java.lang.foreign in JDK23
I wanted to try using NativeHook, which can be written entirely in Java, instead of JNativeHook, so I wrote some test code.
However, the output is always the same no matter which key I press.
Can ...
1
vote
1
answer
148
views
Issue with overriding glibc malloc using --wrap option in statically linked application after glibc upgrade
After upgrading to the latest glibc, I noticed that malloc_hooks is deprecated, so I am trying to override certain glibc functions with user-defined ones using the --wrap symbol. For instance, I'm ...
1
vote
0
answers
175
views
Resolve hook not run for require
Given this resolve hook:
export async function resolve(specifier, context, nextResolve) {
const dir = dirname(path);
if (/fs/.test(specifier)) specifier = join(dir, 'fake.js');
return ...
1
vote
1
answer
136
views
Lua debug hook triggers different amount of call/returning events if error occurred during execution
I'm writing a lua script profiler in C, and I found the lua_sethook C API. I expected the hook to trigger balanced amounts of entering/leaving events, so I can mesure the time cost of every function.
...
0
votes
3
answers
88
views
typo3 7.6 , News 6.3.0 - processDatamap_afterDatabaseOperations not working
Use case: When saving a news istance in backend I want to manipulate values before saving to database.
I include my hook in the following way in ext_localconf.php:
$GLOBALS['TYPO3_CONF_VARS']['...
0
votes
1
answer
72
views
Pass previous version of document from pre to post hook in Mongoose
In my mongoose 8.1.3 setup, I have a post findOneAndUpdate hook where I need to compare the previous version of the document to the latest and based on changes run some functions.
My current solution ...
0
votes
1
answer
92
views
No cron event is being executed on my WordPress
I have a problem on my Wordpress, no cron event is being executed on my WordPress. Checking in the WP_Control plugin, I see that no hooks are being executed. What could be the problem? I have tried to ...
0
votes
1
answer
269
views
Shopping cart, changing the number of products and Woocommerce blocks
The task is to send an event to analytics when the quantity of product in the product cart. It is not possible to use the standard woocommerce hooks, because woocommerce blocks are used. I've already ...
3
votes
2
answers
309
views
Trying to hook MessageBox in C++ DLL and use them in C# application
I'm running on Windows 11 x64 23H2 with Visual Studio Enterprise 2022.
I am trying to hook MessageBox in C++ to change its Background color to #457B9D and change its foreground color to White. Also, I ...
0
votes
0
answers
75
views
Hide VAT in WooCommerce for specific user only on frontend
I use the following to hide VAT from non-professional users on the front end. My problem is that when an order is placed, the VAT remains zero, leading to incorrect calculations. Products are created ...
0
votes
0
answers
62
views
How to check if no activity on keyboard and mouse in C++ [duplicate]
I'm trying to make an app for myself and others in windows (linux and mac in future) that tracks how much you have worked or did some other activity for a period of time, for example: studied, ...
1
vote
1
answer
88
views
Can't access wordpress admin dashboard when blocking access to wp-admin and wp-login
I am having issues accessing the wordpress admin dashboard.
I created a custom login page and blocked access to wp-admin and wp-login. Everything seems to be working up until I try to open the admin ...