Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
nightmare-iframe-manager
Advanced tools
Add inline iframe management to your Nightmare scripts.
Original idea was thanks to @tiangolo in segmentio/nightmare#496.
This plugin overrides Nightmare's internal evaluate_now
method to wrap the page's document
variable. This is dangerous and fragile. After entering an iframe, certain functionality may not work as expected. Read the pull in the credit link for more information. You have been warned.
Require the library, passing the Nightmare constructor as a parameter:
var Nightmare = require('nightmare');
require('nightmare-iframe-manager')(Nightmare);
... and that's it. You should now be able to enter and exit iframes.
Enter an iframe with the given selector. All subsequent requests will go through that iframe until .exitIFrame()
or .resetFrame()
is called.
Exits the current selector to the previous one. If exiting the last selector, this exits to the root document.
Resets all frames and restores the root document.
var Nightmare = require('nightmare');
require('nightmare-iframe-manager')(Nightmare);
var nightmare = Nightmare();
nightmare.goto('http://example.com')
.enterIFrame('#someIFrame')
.title()
.then(function(title){
// `title` is the title of the child frame #someIFrame
})
FAQs
delegates commands to iframes in Nightmare
We found that nightmare-iframe-manager demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.