malwaredllc / byob

An open-source post-exploitation framework for students, researchers and developers.
https://byob.dev
GNU General Public License v3.0
8.85k stars 2.1k forks source link

having problems with run.py #686

Closed bcwlkr closed 3 months ago

bcwlkr commented 7 months ago

when running run.py i get the message:

Traceback (most recent call last): File "/home/brecken/byob/web-gui/run.py", line 1, in from buildyourownbotnet import create_app File "/home/brecken/byob/web-gui/buildyourownbotnet/init.py", line 16, in from buildyourownbotnet import client, server File "/home/brecken/byob/web-gui/buildyourownbotnet/server.py", line 32, in from .models import db File "/home/brecken/byob/web-gui/buildyourownbotnet/models.py", line 2, in from flask_bcrypt import Bcrypt ModuleNotFoundError: No module named 'flask_bcrypt'

Update: I am using Kali Linux and tried using venv and a clean install in venv, that has NOT fixed my issue.

Theory: going through the web-gui folder, I don't a .models to call db from, if anyone knows if this was (or is) a package for Python please tell.

DanceMonkey276 commented 7 months ago

If you haven't done so yet, you could try installing the requirements: pip install -r requirements.txt I would reccomend using a virtual environment for this project. You can do so by entering following command: python3 -m venv venv Then you activate the virtual environment using source venv/bin/activate You would have to do this before installing the requirements.

This all is for Linux. If you need any more help, feel free to add another comment!

bcwlkr commented 7 months ago

When running it says that "source is an unknown command" please advise

DanceMonkey276 commented 7 months ago

Are you using Linux?

bcwlkr commented 7 months ago

I'm using Kali, I figured out how to use vinv but I still get the error

On Thu, Dec 7, 2023, 12:41 PM DanceMonkey276 @.***> wrote:

Are you using Linux?

— Reply to this email directly, view it on GitHub https://github.com/malwaredllc/byob/issues/686#issuecomment-1845912961, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMD3WRPQSHHJA4QZCOZXKE3YIIEW5AVCNFSM6AAAAABAAQTJASVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBVHEYTEOJWGE . You are receiving this because you authored the thread.Message ID: @.***>

bcwlkr commented 7 months ago

Are you using Linux?

I'm using Kali, I figured out vinv but when running it I still get the aforementioned error

DanceMonkey276 commented 7 months ago

Have you tried rerunning the startup.sh script? Worst case, you would have to delete the entire thing and get a new, clean byob install. Then, you can set up the entire thing inside of the venv. That worked for me

bcwlkr commented 7 months ago

Have you tried rerunning the startup.sh script? Worst case, you would have to delete the entire thing and get a new, clean byob install. Then, you can set up the entire thing inside of the venv. That worked for me

I reinstalled and ran venv as I ran requirements.txt and ./startup.sh and still the same error, should I try with py 2.7 instead of py 3.11?

Edit: I'm going to see if running the requirements.txt in ~/BYOB/BYOB fixes it

ThePuteh commented 6 months ago

when running run.py i get the message:

Traceback (most recent call last): File "/home/brecken/byob/web-gui/run.py", line 1, in from buildyourownbotnet import create_app File "/home/brecken/byob/web-gui/buildyourownbotnet/init.py", line 16, in from buildyourownbotnet import client, server File "/home/brecken/byob/web-gui/buildyourownbotnet/server.py", line 32, in from .models import db File "/home/brecken/byob/web-gui/buildyourownbotnet/models.py", line 2, in from flask_bcrypt import Bcrypt ModuleNotFoundError: No module named 'flask_bcrypt'

Update: I am using Kali Linux and tried using venv and a clean install in venv, that has NOT fixed my issue.

Theory: going through the web-gui folder, I don't a .models to call db from, if anyone knows if this was (or is) a package for Python please tell.

Should use pip to seperate install without requirements.txt of this >>> ModuleNotFoundError: No module named 'flask_bcrypt'

pip that flask_bcrypt only ...

github-actions[bot] commented 4 months ago

Stale issue message