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

ImportError: No module named recon.core #12

Open
sandeepl337 opened this issue Oct 4, 2016 · 10 comments
Open

ImportError: No module named recon.core #12

sandeepl337 opened this issue Oct 4, 2016 · 10 comments

Comments

@sandeepl337
Copy link

sandeepl337 commented Oct 4, 2016

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
Copy link
Author

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

@arpit1997
Copy link

hey @coreb1t some suggestions for improving the code.

  • first make a src folder for all the source codes.
  • absolute paths.
reconPath = "/usr/share/recon-ng/"
altDnsPath = "/root/Desktop/altdns-master/"

instead of these you should use os.path.join

  • add a license in your project it would be good to know that how someone can use your code
    😸 😸

@coreb1t
Copy link
Contributor

coreb1t commented Nov 21, 2016

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
Copy link

sappi13 commented Aug 29, 2017

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

@polytron
Copy link

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
Copy link

@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
Copy link
Contributor

coreb1t commented Jan 15, 2018

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

@bughunter12
Copy link

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
Copy link

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
Copy link

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.

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

8 participants