Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
adrenaline
Simple Python module to prevent your computer from going to sleep. Supports Windows and macOS at the moment; Linux support is coming soon (hopefully).
The module provides a context manager named prevent_sleep()
. The computer
will not go to sleep while the execution is in this context:
from adrenaline import prevent_sleep
with prevent_sleep():
# do something important here
...
Optionally, you can also prevent the screen from turning off:
with prevent_sleep(display=True):
# do something important here
...
You can also use this module from the command line as follows:
$ python -m adrenaline
The command line interface will prevent sleep mode as long as it is running.
Thanks to Michael Lynn for figuring out how to do this on macOS.
Thanks to Niko Pasanen for the Windows version.
FAQs
Keep your OS from sleeping (supports Windows and macOS)
We found that adrenaline 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.