jhaddix / domain

Setup script for Regon-ng
913 stars 242 forks source link

ImportError: No module named recon.core #12

Open sandeepl337 opened 7 years ago

sandeepl337 commented 7 years ago

I was trying to install enumall.py but failed. root@kali:~/Desktop/tools/domain-master# ./enumall.py google.com Traceback (most recent call last): File "./enumall.py", line 26, in from recon.core import base ImportError: No module named recon.core

sandeepl337 commented 7 years ago

changed the the path and it is working thank you please close this issue.

arpit1997 commented 7 years ago

hey @coreb1t some suggestions for improving the code.

reconPath = "/usr/share/recon-ng/"
altDnsPath = "/root/Desktop/altdns-master/"

instead of these you should use os.path.join

coreb1t commented 7 years ago

Hi @arpit1997 I think the question regarding the license should be addressed to @jhaddix. I just forked his project. Do you mean to use os.path.join anstead of sys.path.insert()?

sappi13 commented 6 years ago

Hello @sandeepl337 I'm also getting same error can you tell me what you did?

polytron commented 6 years ago

Hi @sandeepl337 @coreb1t can you please tell us how to fix this problem? "File "./enumall.py", line 26, in from recon.core import base ImportError: No module named recon.core"

Graystripe17 commented 6 years ago

@polytron @sappi13 Edit enumall.py and change reconPath and altDnsPath to your system's path, ie /Users/kitty/Code/Security/domain/enumall/recon-ng. I'm assuming the script was written on a linux system that made assumptions about where you installed your dependencies, so that's what arpit1997 was referencing.

coreb1t commented 6 years ago

Yes, that script should work on any unix like system. Please modify reconPath and altDnsPath before using.

bughunter12 commented 5 years ago

Traceback (most recent call last): File "enumall.py", line 27, in sys.path.insert(0,reconPath) NameError: name 'reconPath' is not defined

receiving error please help... :( #jhaddix

EzioRaison commented 4 years ago

Changed the path of altdns and recon. But it's giving error in base.py file saysinvalid syntax.

Traceback (most recent call last): File "./enumall.py", line 28, in from recon.core import base File "/usr/share/recon-ng/recon/core/base.py", line 33 framework.Framework._spool.write(f"{args[0]}{os.linesep}") ^ SyntaxError: invalid syntax

EzioRaison commented 4 years ago

This way worked or me :

What i did is cloned this https://github.com/methos2016/recon-ng. It's just 5mb.
Changed the path in config.py and enumall.py in accordance to newly downloaded recon-ng.
3.That's it.

The main problem is that new recong-ng is based on pytohn3 and this script dependencies are of older recon-ng that was based on python2.