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.
pygnuutils
is a pure python implementation for GNU utils.
Install the last released version using pip
:
python3 -m pip install --user -U pygnuutils
Or install the latest version from sources:
git clone git@github.com:matan1008/pygnuutils.git
cd pygnuutils
python3 -m pip install --user -U -e .
You can run commands by using pygnuutils prefix. For example, in order to list /tmp/foo
you can run:
pygnuutils ls -lRh /tmp/foo
To use pygnuutils
you can write the following:
from pygnuutils.ls import Ls
ls = Ls()
ls('/tmp', all_=True)
Perhaps the best reason to use this library instead of gnu is the dependency injection ability.
For example, in order to print a message each time a symlink is resolved:
import os
from pygnuutils.ls import Ls, LsStub
class ReadlinkWatch(LsStub):
def readlink(self, path, dir_fd=None):
print(f'Resolving {path}...')
return os.readlink(path, dir_fd=dir_fd)
ls = Ls(stub=ReadlinkWatch())
ls('/tmp', all_=True, long=True)
FAQs
A python implementation for GNU utils
We found that pygnuutils 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.