BeeF-Over-Wan icon indicating copy to clipboard operation
BeeF-Over-Wan copied to clipboard

Throwing syntax error while executing the BeefOverWan.py

Open CyberLeafy opened this issue 2 years ago • 3 comments

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 avatar Oct 08 '22 12:10 CyberLeafy

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

CyberLeafy avatar Oct 08 '22 13:10 CyberLeafy

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

m-advik avatar Oct 09 '22 04:10 m-advik

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.

p0syd0n avatar Dec 02 '22 14:12 p0syd0n