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

get_lfd #78

Closed
psychomad opened this issue Sep 9, 2018 · 7 comments
Closed

get_lfd #78

psychomad opened this issue Sep 9, 2018 · 7 comments
Labels
invalid This doesn't seem right

Comments

@psychomad
Copy link

Hi
After using the option --update i get this error:

Traceback (most recent call last):
File "photon.py", line 187, in
domain = topLevel(main_url)
File "photon.py", line 182, in topLevel
toplevel = tld.get_fld(host, fix_protocol=True)
AttributeError: 'module' object has no attribute 'get_fld'

Any clue?
I installed also on another system and still the same
change target: same
delete totally and clone again: same

OS Kali3
Thanks

@s0md3v
Copy link
Owner

s0md3v commented Sep 9, 2018

It works fine from here.

It would be great if you can provide me the target if possible so I can try to reproduce the issue.
If you have privacy concerns, you may want to dm me on twitter @s0md3v

However I don't think this issue is target specific. Please follow the guidlines for raising an issue in the best way possible.

@s0md3v s0md3v added bug Something isn't working High labels Sep 9, 2018
@psychomad
Copy link
Author

Thanks for answer.
os: Kali Rolling version="2018.3"
python: python2.7 & python3.6

target: centuriacyberlabs.org
(but i checked 10 different domain - i write this because is my research lab so is safe also for you to test.)
Dig more i reinstall tld (pip install tld) and python2-tld & python3-tld with all dep).
Same error.
I tried even with virtualenv in python3 to see but still get_fld error

@s0md3v
Copy link
Owner

s0md3v commented Sep 9, 2018

Works as intended on my machine with a fresh clone.
screenshot_2018-09-09_17-11-51

@s0md3v s0md3v added invalid This doesn't seem right and removed High bug Something isn't working labels Sep 9, 2018
@psychomad
Copy link
Author

So i have to check somewhere else the caus eof the problem, thanks a lot!

@s0md3v
Copy link
Owner

s0md3v commented Sep 9, 2018

Enter python in terminal. Following screen should appear

Python 2.7.15 (default, Jul 28 2018, 11:29:29) 
[GCC 8.1.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

Enter the following and let me know the output:

from tld import get_fld

@psychomad
Copy link
Author

I discovered the real problem and i need to patch once for all... I got python2 and 3 and even if i specify python3 automatically choose the wrong version, even pip3. So i need to clean all the mess about pointing the correct release.
Anyway something strange with python and python3 shell if i write from tld import get_fld
i got:

from tld import get_fld
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name 'get_fld'

But now Photon works fine... (really im going crazy ahhaah)

@s0md3v
Copy link
Owner

s0md3v commented Sep 9, 2018

Good luck and I am relieved that it has nothing to do with Photon.

@s0md3v s0md3v closed this as completed Sep 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants