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

Throwing syntax error while executing the BeefOverWan.py #76

Open
CyberLeafy opened this issue Oct 8, 2022 · 3 comments
Open

Throwing syntax error while executing the BeefOverWan.py #76

CyberLeafy opened this issue Oct 8, 2022 · 3 comments

Comments

@CyberLeafy
Copy link

python BeeFOverWan.py

File "/home/kali/BeeF-Over-Wan/BeeFOverWan.py", line 90
print '"{old_string}" not found in {filename}.'.format(**locals())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

@CyberLeafy
Copy link
Author

CyberLeafy commented Oct 8, 2022

go here - - - - (create Virtual Environment)

  1. Virtual Environments and Packages — Python 3.10.7 documentation (copy and paste in browser)
python3 -m venv tutorial-env
source tutorial-env/bin/activate
python -m pip install novas
python -m pip install requests==2.6.0
python -m pip install --upgrade requests
pip freeze > requirements.txt
python -m pip install -r requirements.txt

All command are provide here {12. Virtual Environments and Packages — Python 3.10.7 documentation }

run all command,
then there install beefoverwan,
----- after install run ------

1.nano BeeFOverWan.py
2.Locate line 8
3.comment out (form termcolor import colored)
4.#form termcolor import colored
5.Ctrl+o
6.Ctrl+x

-----then run-----

  1. chmod +x BeeFOverWan.py
  2. python2 BeeFOverWan.py

@m-advik
Copy link

m-advik commented Oct 9, 2022

Its best if you change the BeeFOverWan.py 's code so that it can run with python 3
Because it was made to run with python 2.
I have actually changed the file so that it can run with python3. Checkout my fork for that

@p0syd0n
Copy link

p0syd0n commented Dec 2, 2022

Use 2to3.

pip install 2to3

there are plenty of guides online.
Your problem is that the script is in python 2, this package can fix it for you.

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

3 participants