![Malicious npm Package Typosquats react-login-page to Deploy Keylogger](https://cdn.sanity.io/images/cgdhsj6q/production/007b21d9cf9e03ae0bb3f577d1bd59b9d715645a-1024x1024.webp?w=400&fit=max&auto=format)
Research
Security News
Malicious npm Package Typosquats react-login-page to Deploy Keylogger
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
firefox-profile
Advanced tools
Readme
Firefox Profile for Selenium WebdriverJS
This class allows you to:
You can add extensions to your profile, specify proxy settings, set the user preferences... More info on user preferences here.
"real" npm support is on its way... soon... maybe... Open an issue if you need it...
npm install git@github.com:saadtazi/firefox-profile-js.git
Make sur you have selenium server running... or use 'selenium-webdriver/remote' class.
var webdriver = require('selenium-webdriver');
// create profile
var FirefoxProfile = require('firefox-profile-js');
var myProfile = new FirefoxProfile();
// add an extension by specifying the path to the xpi file or to the unzipped extension directory
myProfile.addExtension('./path/to/a/firefox/extension-file.xpi', function() {
var capabilities = webdriver.Capabilities.firefox();
// attach your newly created profile
capabilities.set('firefox_profile', myProfile.encoded());
myProfile.setPreference('browser.newtab.url', 'http://saadtazi.com');
// required to create or update user.js
myProfile.updatePreferences();
// start the browser
var wd = new webdriver.Builder().
withCapabilities(capabilities).
build();
// woot!
wd.get('http://en.wikipedia.org');
});
This class is actually a port of the python class.
I currently only use the addExtension(), I only quickly manually tested the user preference and it now seems to work.
f.setPreference('browser.newtab.url', 'http://saadtazi.com');
f.updatePreferences();
FAQs
Unknown package
The npm package firefox-profile receives a total of 80,159 weekly downloads. As such, firefox-profile popularity was classified as popular.
We found that firefox-profile demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Security News
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
Security News
The JavaScript community has launched the e18e initiative to improve ecosystem performance by cleaning up dependency trees, speeding up critical parts of the ecosystem, and documenting lighter alternatives to established tools.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.