
Security News
NVD Quietly Sweeps 100K+ CVEs Into a “Deferred” Black Hole
NVD now marks all pre-2018 CVEs as "Deferred," signaling it will no longer enrich older vulnerabilities, further eroding trust in its data.
An AST based Python obfuscator that robustly mangles names and other obfuscations of Python code
pip install bobskater
bobskater
provides a few mechanisms for direct use.
obfuscateString("")
obfuscates a string of source code.obfuscateFile('myfile.py')
will obfuscate an entire file and overwrite the originalBoth take keyword arguments for configuration:
removeDocstrings
will remove docstrings by replacing them with pass
statements (to handle even cases where a function has only a docstring). Defaults to True
obfuscateNames
will obfuscate all names except globally scoped variables, kwargs, builtins, and identifiers in a class namespace. Defaults to True
There are no other obfuscations performed than the two mentioned above currently in bobskater
from bobskater import obfuscateString
myFileContents = open('myfile.py', 'r').read()
#Will obfuscate myFileContents and return it into output. Names will not be mangled, only docstrings will be removed
output = obfuscateString(myFileContents, obfuscateNames=False)
pytest
- Runs all the tests
Refer to the python docs on packaging for clarification.
Make sure you've updated setup.py
, and have installed twine
, setuptools
, and wheel
python3 setup.py sdist bdist_wheel
- Create a source distribution and a binary wheel distribution into dist/
twine upload dist/bobskater-x.x.x*
- Upload all dist/
files to PyPI of a given version
Make sure to tag the commit you released
FAQs
AST based Obfuscator for Python
We found that bobskater 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
NVD now marks all pre-2018 CVEs as "Deferred," signaling it will no longer enrich older vulnerabilities, further eroding trust in its data.
Research
Security News
Lazarus-linked threat actors expand their npm malware campaign with new RAT loaders, hex obfuscation, and over 5,600 downloads across 11 packages.
Security News
Safari 18.4 adds support for Iterator Helpers and two other TC39 JavaScript features, bringing full cross-browser coverage to key parts of the ECMAScript spec.