lanmaster53 / recon-ng

Open Source Intelligence gathering tool aimed at reducing the time spent harvesting information from open sources.
GNU General Public License v3.0
4.1k stars 646 forks source link

recon-ng", line 16 #41

Closed meetgyn closed 4 years ago

meetgyn commented 5 years ago

root@xxxx:/opt/ferramentas/osint/recon-ng# python3 recon-ng File "recon-ng", line 16 print(f"{Colors.R}[!] Module 'readline' not available. Tab complete disabled.{Colors.N}") ^ Help men

cam-barts commented 5 years ago

Hi @meetgyn. Readline is generally only available on GNU based os, which is usually some flavor linux. Recon-ng will still work without it, but you simply wont have command completion or history. Are you on running on linux? Also, this is the marketplace repo, this error might be better suited for the framework repo for future reference.

meetgyn commented 5 years ago

Look sorry for my ignorance. I'm using Debian 9

lanmaster53 commented 5 years ago

That error doesn't even make any sense because I am capturing the readline exception and accounting for it. I believe it has something to do with the f-string formatting, not readline. You are probably running an older version of Python 3, before those were supported. What version are you running?

meetgyn commented 5 years ago

i have python 3.7.4

lanmaster53 commented 5 years ago

Well, that became available in Python 3.6, so 3.7.4 should be fine. There is definitely something different about your environment. What you pasted above is not the entire error because it is missing the traceback and exception type. Please send the entire error so we have additional context.

greyjedimaster commented 5 years ago

Here is the error message in full:

File "./recon-ng", line 16 print(f"{Colors.R}[!] Module 'readline' not available. Tab complete disabled.{Colors.N}") ^ SyntaxError: invalid syntax

I am using python3.6 and installed with pip3.

lanmaster53 commented 5 years ago

I need more information. OS you are using, method of install, command used to launch, etc. The only time I can replicate this error is when I launch Recon-ng with Python 2, or something under Python 3.6. It's an environmental issue. Based on that error, the only 2 things it can be is your version of python not supporting the print function or f-strings.

greyjedimaster commented 5 years ago

I was using Ubuntu 16.04. Turns out, updating to 18.04 resolved the issue.

lanmaster53 commented 5 years ago

Yep. Had to be an environmental thing. Likely the same for the OP too.

lanmaster53 commented 4 years ago

https://github.com/lanmaster53/recon-ng/wiki/Getting-Started#prerequisites