pypi-library-poison
this is not just related to bug bounty, this attack can also be used in red team.
step by step to publish your library
- register your pypi account https://pypi.org/
- tree example-pypi
1 | setup.py |
setup.py example
1 | #!/usr/bin/env python |
you can get the setup example from
https://github.com/kennethreitz/setup.py
evil demo code
https://github.com/fate0/cookiecutter-evilpy-package/
1 | python setup.py check |