
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
apify-event-listeners
Advanced tools
import { injectOptions, utilHooks } from 'apify-eventlisteners'
const crawler = new Apify.PlaywrightCrawler({
...injectOptions,
requestList,
preNavigationHooks: [...utilHooks],
handlePageFunction: async ({ page }) => {
...
},
});
page.eventListenerList(selector: string)
(selector: string) => Promise<EventListenerList[]>
Returns all found event listeners for all elements matching the specified selector. Ex:
[
[
{
type: 'click'
},
{
type: 'mouseover'
}
],
[
{
type: 'click'
}
]
]
page.removeAllListenersExcept(selectors: string[])
(selectors: string[]) => Promise<void>
Removes event listeners from all elements on the page except for on the ones specified in the array.
Note: Ensure that the event listener has been added to the an prior to trying to remove it with this.
page.removeEventListeners(selector: string)
(selector: string) => Promise<void>
Remove all event listeners from a single element.
page.removeWindowClickListeners()
() => Promise<void>
Remove all click listeners from the window object
page.blockAdsWithZIndexMethod(maxZIndex: number)
(maxZIndex: string) => Promise<void>
Block any elements with a z-index that exceeds what you specify
page.removeFishyElements()
() => Promise<void>
Set an interval on the page that runs every second to automatically remove any fishy elements
FAQs
1. Import these two:
The npm package apify-event-listeners receives a total of 0 weekly downloads. As such, apify-event-listeners popularity was classified as not popular.
We found that apify-event-listeners 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.