5,724 questions
0
votes
1
answer
53
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
97
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
162
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
94
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
34
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
84
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
69
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
131
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
119
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
166
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 ...