Git Product home page Git Product logo

Comments (1)

zachriggle avatar zachriggle commented on July 20, 2024

Solution:

I own several packages on PyPI. I have set them all up with dummy packages that have pwntools as a requirement.

  • ctf
  • exploit
  • pwn
  • pwning
  • hack

Now pip install pwn works to get the latest pwntools:

user@ubuntu:~$ pip install pwn
Downloading/unpacking pwn
  Downloading pwn-1.0.tar.gz
  Running setup.py (path:/tmp/user/pip_build_user/pwn/setup.py) egg_info for package pwn

Downloading/unpacking pwntools (from pwn)
  Downloading pwntools-2.1.3.tar.gz (5.5MB): 5.5MB downloaded
  Running setup.py (path:/tmp/user/pip_build_user/pwntools/setup.py) egg_info for package pwntools

Requirement already satisfied (use --upgrade to upgrade): paramiko in ./.pyenv/versions/2.7.8/lib/python2.7/site-packages (from pwntools->pwn)
Requirement already satisfied (use --upgrade to upgrade): argparse in ./.pyenv/versions/2.7.8/lib/python2.7/site-packages (from pwntools->pwn)
Requirement already satisfied (use --upgrade to upgrade): mako in ./.pyenv/versions/2.7.8/lib/python2.7/site-packages (from pwntools->pwn)
Requirement already satisfied (use --upgrade to upgrade): pyelftools in ./.pyenv/versions/2.7.8/lib/python2.7/site-packages (from pwntools->pwn)
Requirement already satisfied (use --upgrade to upgrade): MarkupSafe>=0.9.2 in ./.pyenv/versions/2.7.8/lib/python2.7/site-packages (from mako->pwntools->pwn)
Installing collected packages: pwn, pwntools
  Running setup.py install for pwn

  Running setup.py install for pwntools
    changing mode of build/scripts-2.7/shellcraft from 664 to 775
    changing mode of build/scripts-2.7/hex from 664 to 775
    changing mode of build/scripts-2.7/constgrep from 664 to 775
    changing mode of build/scripts-2.7/unhex from 664 to 775
    changing mode of build/scripts-2.7/disasm from 664 to 775
    changing mode of build/scripts-2.7/asm from 664 to 775
    changing mode of build/scripts-2.7/cyclic from 664 to 775

    changing mode of /home/user/.pyenv/versions/2.7.8/bin/shellcraft to 775
    changing mode of /home/user/.pyenv/versions/2.7.8/bin/hex to 775
    changing mode of /home/user/.pyenv/versions/2.7.8/bin/constgrep to 775
    changing mode of /home/user/.pyenv/versions/2.7.8/bin/unhex to 775
    changing mode of /home/user/.pyenv/versions/2.7.8/bin/disasm to 775
    changing mode of /home/user/.pyenv/versions/2.7.8/bin/asm to 775
    changing mode of /home/user/.pyenv/versions/2.7.8/bin/cyclic to 775
Successfully installed pwn pwntools
Cleaning up...
user@ubuntu:~$ unset PYTHONPATH
user@ubuntu:~$ python -c 'from pwn  import *; print pwnlib.version.__version__'
2.1.3

from pwntools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.