
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
find-event-handlers
Advanced tools
get list of event handlers on a given DOM object (grabbed via jQuery)
Installation:
npm i find-event-handlers --save
Stop wasting your time looking for where those handlers are registered, use findHandlersJS and discover them instantly.
Usage:
findEventHandlers(eventType, jQuerySelector)
Imagine you want to find all the "click" event handlers for all the buttons that are immediate children of the div with id="myDiv":
findEventHandlers("click", "div#myDiv > :button")
It will return an array with the element names, the jQuery $._data event information and the list of elements that that event handler covers (targets).
For example, if div#myDiv has a delegate handler with the selector :button and there is a button with id="save" inside the div, you would get this result:
[{
element: div#myDiv,
events: [{
type: "click",
handler: function() {...},
namespace: "",
selector: ":button",
...
targets: [button#save]
}]
}]
If you are using the console on Chrome, you can right click the handler, click show function definition and add breakpoints to debug the handlers.
To detect whether or not there are any handlers attached to an element, use a library like lodash to determine whether or not the returned object is empty.
FAQs
get list of event handlers on a given DOM object (grabbed via jQuery)
The npm package find-event-handlers receives a total of 0 weekly downloads. As such, find-event-handlers popularity was classified as not popular.
We found that find-event-handlers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.