Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Saves and loads cookies from a given selenium webdriver.
Useful for storing user information amongst other things. This is actually ripped from my myNotifsV2 project where I save & load cookies in order to automatically log the user in rather than having them log in every single time they run the application.
pip install selenium_cookies
from selenium import webdriver
from selenium_cookies import CookieHandler
dummy_driver = webdriver.Firefox()
# The second argument is the page to go to when saving/loading cookies.
# In some cases this is necessary for the loading and saving of cookies
# to actually work. If you don't have this issue, you can just set it to None.
cookie_handler = CookieHandler(dummy_driver,"https://github.com/adamhb123/selenium_cookies",
overwrite=False, filename="cooks", wait_time=5)
# save_cookies() saves the site cookies to the specified file
saved_cookies = cookie_handler.save_cookies()
# load_cookies() loads the saved cookies from the given file (or from the most recently saved one)
loaded_cookies = cookie_handler.load_cookies()
print("Saved cookies == loaded cookies == cookie_handler.loaded_cookies: " + str(
saved_cookies == loaded_cookies == cookie_handler.loaded_cookies))
Should you so choose, there is also a basic test available in selenium_cookies.tests:
from selenium import webdriver
from selenium_cookies.tests import test_module
dummy_driver = webdriver.Firefox() # could also be webdriver.Chrome()
# If the driver argument is not supplied, test_module.test attempts to create
# the webdriver.Firefox instance with the locally stored geckodriver (0.27.0).
test_module.test(driver=dummy_driver)
FAQs
Cookie handling for selenium webdrivers.
We found that selenium-cookies 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.