SamJoan / droopescan

A plugin-based scanner that aids security researchers in identifying issues with several CMSs, mainly Drupal & Silverstripe.
GNU Affero General Public License v3.0
1.22k stars 246 forks source link

Installing requirements aside the project #23

Closed JulienD closed 6 years ago

JulienD commented 6 years ago

I try to install droopescan and I want to package all pip dependencies in the same directory. Instead of running the default pip install command I speficied a location, however droopescan does not work anymore. I don't have all access to the server where I will deploy droopescan and I need to package everything in my app. Is there a way to achieve that ?

I'm using Python 2.7.6

Thanks

root@bf8a33562779:/tmp/droopescan-master# pip install -r requirements.txt -t vendored/
Obtaining file:///tmp/droopescan-master (from -r requirements.txt (line 3))
  Running setup.py (path:/tmp/droopescan-master/setup.py) egg_info for package from file:///tmp/droopescan-master

Downloading/unpacking cement>=2.6,<2.6.99 (from droopescan==1.40.1->-r requirements.txt (line 3))
  Downloading cement-2.6.2.tar.gz (140kB): 140kB downloaded
  Running setup.py (path:/tmp/pip_build_root/cement/setup.py) egg_info for package cement

Downloading/unpacking requests (from droopescan==1.40.1->-r requirements.txt (line 3))
  Downloading requests-2.18.4-py2.py3-none-any.whl (88kB): 88kB downloaded
Downloading/unpacking pystache (from droopescan==1.40.1->-r requirements.txt (line 3))
  Downloading pystache-0.5.4.tar.gz (75kB): 75kB downloaded
  Running setup.py (path:/tmp/pip_build_root/pystache/setup.py) egg_info for package pystache
    pystache: using: version '3.3' of <module 'setuptools' from '/usr/lib/python2.7/dist-packages/setuptools/__init__.pyc'>

Downloading/unpacking futures (from droopescan==1.40.1->-r requirements.txt (line 3))
  Downloading futures-3.2.0-py2-none-any.whl
Downloading/unpacking certifi>=2017.4.17 (from requests->droopescan==1.40.1->-r requirements.txt (line 3))
  Downloading certifi-2018.1.18-py2.py3-none-any.whl (151kB): 151kB downloaded
Downloading/unpacking idna>=2.5,<2.7 (from requests->droopescan==1.40.1->-r requirements.txt (line 3))
  Downloading idna-2.6-py2.py3-none-any.whl (56kB): 56kB downloaded
Downloading/unpacking chardet>=3.0.2,<3.1.0 (from requests->droopescan==1.40.1->-r requirements.txt (line 3))
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133kB): 133kB downloaded
Downloading/unpacking urllib3>=1.21.1,<1.23 (from requests->droopescan==1.40.1->-r requirements.txt (line 3))
  Downloading urllib3-1.22-py2.py3-none-any.whl (132kB): 132kB downloaded
Installing collected packages: cement, requests, pystache, futures, droopescan, certifi, idna, chardet, urllib3
  Running setup.py install for cement

  Running setup.py install for pystache
    pystache: using: version '3.3' of <module 'setuptools' from '/usr/lib/python2.7/dist-packages/setuptools/__init__.pyc'>

    Installing pystache script to /tmp/tmpTrWQtn/bin
    Installing pystache-test script to /tmp/tmpTrWQtn/bin
  Running setup.py develop for droopescan
    usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: -c --help [cmd1 cmd2 ...]
       or: -c --help-commands
       or: -c cmd --help

    error: option --home not recognized
    Complete output from command /usr/bin/python -c "import setuptools, tokenize; __file__='/tmp/droopescan-master/setup.py'; exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps --home=/tmp/tmpTrWQtn:
    usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]

   or: -c --help [cmd1 cmd2 ...]

   or: -c --help-commands

   or: -c cmd --help

error: option --home not recognized

----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize; __file__='/tmp/droopescan-master/setup.py'; exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps --home=/tmp/tmpTrWQtn failed with error code 1 in /tmp/droopescan-master
Storing debug log for failure in /root/.pip/pip.log
SamJoan commented 6 years ago

Hi there,

I'm not sure how to help you with this use case. If you have any particular suggestions I'm happy to look into it or accept pull requests provided they don't break anything.

Have you looked into virtualenv? That may be a possible solution for you.

SamJoan commented 6 years ago

Hey there, closing this in the meantime. Let me know if you still have this issue and I'll reopen.