Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Canari install-package sploitego Kali #10

Open
JCFL-Dev opened this issue Apr 19, 2016 · 5 comments
Open

Issue with Canari install-package sploitego Kali #10

JCFL-Dev opened this issue Apr 19, 2016 · 5 comments

Comments

@JCFL-Dev
Copy link

Hey,
Having an issues installing the sploitego package with Canari on Kali. The following error is returned after I run the Canari command. Any help would be great. Thanks

root@kali:~# canari install-package sploitego Traceback (most recent call last): File "/usr/local/bin/canari", line 4, in <module> __import__('pkg_resources').run_script('canari==1.1', 'canari') File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 745, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1670, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python2.7/dist-packages/canari-1.1-py2.7.egg/EGG-INFO/scripts/canari", line 20, in <module> canari_main() File "/usr/local/lib/python2.7/dist-packages/canari-1.1-py2.7.egg/canari/commands/framework.py", line 33, in _func return func(self.parser.parse_args(args_, namespace)) File "/usr/local/lib/python2.7/dist-packages/canari-1.1-py2.7.egg/canari/commands/common.py", line 67, in canari_main opts.command_function(opts) File "/usr/local/lib/python2.7/dist-packages/canari-1.1-py2.7.egg/canari/commands/install_package.py", line 57, in install_package opts = parse_args(args) File "/usr/local/lib/python2.7/dist-packages/canari-1.1-py2.7.egg/canari/commands/install_package.py", line 23, in parse_args uproot() File "/usr/local/lib/python2.7/dist-packages/canari-1.1-py2.7.egg/canari/commands/common.py", line 91, in uproot login = os.getlogin() OSError: [Errno 2] No such file or directory

@JCFL-Dev
Copy link
Author

@allfro Is this user error on my part? I installed canari and sploitego from tar as in Ubuntu video as easy_install doesn't run due to missing packages on pypi

@JCFL-Dev
Copy link
Author

@allfro I have found a hack to bypass this. os.popen("whoami").read() I then hit an error on user = pwd.getpwnam(login) keyerror: 'getpwnam(): name not found: root\n'. I bypassed this by hard coding in like so
user = pwd.getpwnam("root"). Looks like Sploitego installed. Great tool. I'll get back if I run into any issues. Thanks

@allfro
Copy link
Owner

allfro commented Apr 28, 2016

The pypi issue has been resolved. PyPi now insists that they want to host all the python packages. Previously they were located on my website.

@JCFL-Dev
Copy link
Author

@allfro Thanks. Great tool

@HachimanSec
Copy link

Hi @PhilDunphy
did you find any other issue? I am experiencing the same problem but hardocding "root" doesnt work.

@allfro , is there any current development to fix this or is this somewhat dead? Would be really sad as it seems to be a very cool project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants