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

'configvars' undefined when not within docker container #84

Open
cylaris opened this issue Feb 15, 2021 · 2 comments
Open

'configvars' undefined when not within docker container #84

cylaris opened this issue Feb 15, 2021 · 2 comments
Assignees
Labels
Bug Something isn't working

Comments

@cylaris
Copy link

cylaris commented Feb 15, 2021

Describe the bug
Hi mate, this bug is only present when launching sooty with 'docker run --rm -it sooty'
I had no luck installing on Windows standalone due to some other issues but works fine in docker itself when interacting within the container using 'docker exec -it epic_brahmagupta /bin/bash', then 'python Sooty.py'

Not sure what the link is between interacting within the docker container and not, however this is the error message:

VirusTotal Report:
Traceback (most recent call last):
File "/app/Sooty.py", line 1224, in
mainMenu()
File "/app/Sooty.py", line 181, in mainMenu
switchMenu(input())
File "/app/Sooty.py", line 56, in switchMenu
repChecker()
File "/app/Sooty.py", line 393, in repChecker
params = {'apikey': configvars.data['VT_API_KEY'], 'ip': wIP}
NameError: name 'configvars' is not defined

This appears to be there for all modules, so 'configvars' is suddenly undefined when using the 'docker run --rm -it sooty' command.

Reproduction Steps
Steps to reproduce the behavior:

  1. Install with docker on windows using 1. 'docker build -t sooty', 2. 'docker run --rm -it sooty'
  2. Attempt any url/ ip check
    ...

Expected behavior
This should work in the same way as interacting within the container - check successfully, due to undefined configvars when not within.

Desktop Operating System:
-OS Win 10 x64
(MS Win 10 Pro - 10.0.19042 Build 19042)

Additional context
Add any other context about the problem here.

@TheresAFewConors TheresAFewConors self-assigned this Feb 20, 2021
@TheresAFewConors TheresAFewConors added the Bug Something isn't working label Feb 20, 2021
@TheresAFewConors
Copy link
Owner

Thanks for raising the issue - can you confirm if you have the Virus Total API key present in the config file? If the issue persists then it is a new one, otherwise its related to a different bug that is next in line to be done.

@cylaris
Copy link
Author

cylaris commented Feb 21, 2021

Cheers for coming back to me. Yeah, so the VTtotal API key is present, the only ones that aren’t are phishtank (as they’ve suspended registration).

For whatever reason it says that the config.yaml isn’t found when interacting with the container, but of course is found when inside of the container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant