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

Final release issue #471

Closed
hwac121 opened this issue Jan 26, 2020 · 21 comments
Closed

Final release issue #471

hwac121 opened this issue Jan 26, 2020 · 21 comments

Comments

@hwac121
Copy link

hwac121 commented Jan 26, 2020

Debian - Parrot Security OS (latest version)
Dell laptop 64bit

python3 sf.py
Traceback (most recent call last):
File "sf.py", line 21, in
import cherrypy
ModuleNotFoundError: No module named 'cherrypy'

@hwac121
Copy link
Author

hwac121 commented Jan 26, 2020

Old version worked great for me, new version not at all.

@hwac121
Copy link
Author

hwac121 commented Jan 26, 2020

Yeah this just is not working at all, and I can't even roll back to the old version I tried. This used to work beautifully, I even did a tutorial on it in my youtube channel but this is just plain broken now. missing all kids of modules, errors, etc. Not very happy, I love this application you developed. Anyway, going to shutup now until you have time to reply...

@smicallef
Copy link
Owner

You definitely did a pip3 install -r requirements.txt ? Note that it needs to be done with pip3, not pip.

@packetvitality
Copy link

Having some issues with 3.0 as well.

  1. Downloaded package from Github
  2. python sf.py -l 127.0.0.1:5001 (don't have python 2.x installed)
    Missing cherrypy
  3. pip install -r requirements.txt
  4. Web service up
  5. Run a scan
  6. Results page hangs
    image
  7. Read your note about pip3, ran pip3 install -r requirements (all requirements showed as satisfied)
  8. Tried restarting a couple times, can't see scan results. Tried waiting a while to see if they eventually show, maybe after the scan completes but no luck.

Let me know if there is anything I can send that would help understand better.

@smicallef
Copy link
Owner

Yes, doing pip install won't work, it has to be pip3. Since now you've progressed and are stuck at a different point (indicating there is no issue starting SpiderFoot wrt Python dependencies) I suggest deleting the spiderfoot.db file and running SpiderFoot again.

@packetvitality
Copy link

packetvitality commented Jan 27, 2020

Thanks for the quick reply.

I gave that a try and no luck. Also just deleted the whole folder and unzipped a new copy, no luck either. It shows the Scans tab loading as soon as I open the web page prior to running any scans. After running a scan it looks the same, no results.

image

Opened up the DB and looks like it is being populated.
image

@smicallef
Copy link
Owner

Strange.. what version of Python are you using?

@packetvitality
Copy link

Python 3.6.5

@smicallef
Copy link
Owner

That's more or less the version I'm using so it's not that in this case. Could you enable the Javascript debugger in your browser and see if there are any Javascript errors while loading the page? Could you also try your browser in Private/Incognito mode to ensure no cache is being used from the previous sessions?

@packetvitality
Copy link

This is what I am seeing, hope I got what you were looking for.
Refused to execute script from '' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
127.0.0.1/:1 Refused to execute script from 'http://127.0.0.1:5001/static/js/spiderfoot.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
127.0.0.1/:1 Refused to execute script from 'http://127.0.0.1:5001/static/js/viz.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
127.0.0.1/:1 Refused to execute script from 'http://127.0.0.1:5001/static/js/jquery.min.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
127.0.0.1/:1 Refused to execute script from 'http://127.0.0.1:5001/static/js/bootstrap.min.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
(index):1 Refused to execute script from 'http://127.0.0.1:5001/static/js/jquery.tablesorter.min.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
(index):1 Refused to execute script from 'http://127.0.0.1:5001/static/js/d3.min.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
(index):95 Uncaught ReferenceError: sf is not defined
at (index):95
(anonymous) @ (index):95
(index):205 Uncaught ReferenceError: sf is not defined
at showlist ((index):205)
at (index):324

image

@smicallef
Copy link
Owner

Do you have some special browser config or plugins? I'm using both FF and Chrome with no such error.

@packetvitality
Copy link

I'm using Brave as my browser, turned off blockers etc for the page. Tried FF and Edge as well.

image

@packetvitality
Copy link

packetvitality commented Jan 27, 2020

I installed in clean VM and everything worked as expected. Must be something obscure on my endpoint that I am missing. If I figure out what it is I'll post the resolution.

Sorry for the trouble.

@M3ikShizuka
Copy link

This is what I am seeing, hope I got what you were looking for.
Refused to execute script from '' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
127.0.0.1/:1 Refused to execute script from 'http://127.0.0.1:5001/static/js/spiderfoot.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
127.0.0.1/:1 Refused to execute script from 'http://127.0.0.1:5001/static/js/viz.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
127.0.0.1/:1 Refused to execute script from 'http://127.0.0.1:5001/static/js/jquery.min.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
127.0.0.1/:1 Refused to execute script from 'http://127.0.0.1:5001/static/js/bootstrap.min.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
(index):1 Refused to execute script from 'http://127.0.0.1:5001/static/js/jquery.tablesorter.min.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
(index):1 Refused to execute script from 'http://127.0.0.1:5001/static/js/d3.min.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
(index):95 Uncaught ReferenceError: sf is not defined
at (index):95
(anonymous) @ (index):95
(index):205 Uncaught ReferenceError: sf is not defined
at showlist ((index):205)
at (index):324

image

I got the same problem.

@hwac121
Copy link
Author

hwac121 commented Jan 30, 2020

Hello, original author here: pip or pip3 makes no difference...I get the exact same error I originally posted. Won't install, therefore can't run it at all...wish I had not tried to upgrade and left my working version alone...

@hwac121
Copy link
Author

hwac121 commented Jan 30, 2020

In fact when I try pip3 (which is installed) I get this:

Traceback (most recent call last):
File "/usr/local/bin/pip3", line 6, in
from pkg_resources import load_entry_point
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 3098, in
@_call_aside
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 3082, in _call_aside
f(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 3111, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 575, in _build_master
return cls._build_from_requirements(requires)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 588, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 777, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pip==19.3.1' distribution was not found and is required by the application
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
If I use pip it runs the installer with this single error:

ERROR: Could not find a version that satisfies the requirement secure (from -r requirements.txt (line 19)) (from versions: none)
ERROR: No matching distribution found for secure (from -r requirements.txt (line 19))
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
It's almost as if python2 and python3 are conflicting although I have never had an issue before now with any other program. I would find it hard to uninstall one or the other since I use many apps that use both...

@smicallef
Copy link
Owner

What Linux distribution are you having this issue on?

@hwac121
Copy link
Author

hwac121 commented Jan 31, 2020

Hi, thanks for responding so quickly. =)
I am using Parrot Security OS/ Debian - Latest stable release

@smicallef
Copy link
Owner

Something is very odd with your set up. I see you're using pip3 but if you look at the errors you can see it's still making reference to Python 2.7.

@hwac121
Copy link
Author

hwac121 commented Feb 2, 2020 via email

@hwac121
Copy link
Author

hwac121 commented Feb 5, 2020

Something is very odd with your set up. I see you're using pip3 but if you look at the errors you can see it's still making reference to Python 2.7.

So, just to get you updated - since you also noted the strangeness with my Python I thought "Ok, let me check this out I'm not the only one seeing this oddness". It turns out due to some sort of error there are parts of 3 installations that are hung in apt and will not install, in turn causing 2 libraries not to upgrade. Not sure what is the singular culprit that started it all but the easiest thing for me to do is just format and reinstall. Luckily I keep all my regular apps I use for work on an external HDD for just such a situation to quickly reinstall. Thanks for all your help, I am sure after this it will be working as normal again in no time. =)

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

4 participants