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

TypeError raised in canari create-profile sploitego after commit 31dae7c #46

Closed
tomty89 opened this issue Mar 23, 2015 · 6 comments
Closed

Comments

@tomty89
Copy link

tomty89 commented Mar 23, 2015

After commit 31dae7c, the following error is raised when canari create-profile sploitego is run:
TypeError: dist must be a Distribution instance
An mtz file is still created with yet much smaller size. No error is raised by canari with commit c90ed9f.

@tomty89
Copy link
Author

tomty89 commented Mar 23, 2015

Btw is canari/sploitego still being supported and supposed to work with the latest Maltego (3.5.3)? I am actually neither user of Maltego/Sploitego/Canari. I found the above issue because I was helping someone testing out his problem with Maltego. When he import the mtz file (one created successfully without the TypeError mentioned above), an error with only an red exclamation mark but no text message pops up.

@allfro
Copy link
Owner

allfro commented Mar 25, 2015

Hi @tomty89

Thanks for the bug report. I will look into the test cases you generated. With regards to the red icon at the bottom of Maltego - you should be able to click on that icon and get a detailed error stack trace. Would you be able to show me what that error was?

@tomty89
Copy link
Author

tomty89 commented Mar 25, 2015

I'll ask the guy if he can post the error here if I see him again on IRC (Actually I already pasted the link of this issue to him). I just downloaded Maltego myself and try importing the mtz as entity and configuration. It seems to work fine for me.

@finnallred
Copy link

I'm getting similar error:
root@kali:# canari create-profile sploitego
Looking for transforms in sploitego.transforms...
WARNING: No route found for IPv6 destination :: (no default route?)
Package loaded.
Creating profile /root/sploitego.mtz...
Installing transform sploitego.v2.LocationToNetblock_Local from sploitego.transforms.loctonetblock...
Traceback (most recent call last):
File "/usr/local/bin/canari", line 5, in
pkg_resources.run_script('canari==1.1', 'canari')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1235, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/canari-1.1-py2.7.egg/EGG-INFO/scripts/canari", line 20, in
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/create_profile.py", line 54, in create_profile
transform_package.create_profile(opts.working_dir, current_dir)
File "/usr/local/lib/python2.7/dist-packages/canari-1.1-py2.7.egg/canari/pkgutils/transform.py", line 316, in create_profile
self.install(install_prefix, mtz, configure)
File "/usr/local/lib/python2.7/dist-packages/canari-1.1-py2.7.egg/canari/pkgutils/transform.py", line 241, in install
self._install_transforms(install_prefix, distribution)
File "/usr/local/lib/python2.7/dist-packages/canari-1.1-py2.7.egg/canari/pkgutils/transform.py", line 250, in _install_transforms
distribution.add_transform(prefix, 'Local', transform, server='Local')
File "/usr/local/lib/python2.7/dist-packages/canari-1.1-py2.7.egg/canari/pkgutils/maltego.py", line 326, in add_transform
os.path.join(get_bin_dir(),
File "/usr/local/lib/python2.7/dist-packages/canari-1.1-py2.7.egg/canari/commands/common.py", line 74, in get_bin_dir
d = install(Distribution())
File "/usr/lib/python2.7/distutils/cmd.py", line 59, in init
raise TypeError, "dist must be a Distribution instance"
TypeError: dist must be a Distribution instance
Writing transform set Reconnaissance to /root/sploitego.mtz...
Writing server Local to /root/sploitego.mtz
root@kali:
#

@pejema
Copy link

pejema commented Jul 28, 2015

I have the same problem in a new installation of Canari, did someone find the solution?

@caolan
Copy link

caolan commented Sep 2, 2015

Here's how I'm currently hacking around this problem: caolan@dde5da3

@tomty89 tomty89 closed this as completed Nov 7, 2015
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

5 participants