stormshadow07 / BeeF-Over-Wan

Browser Exploitation Framework is a Open-source penetration testing tool that focuses on browser-based vulnerabilities .This Python Script does the changes Required to make hooked Linked Accessible Over WAN .So anyone can use this framework and Attack Over WAN without Port Forwarding [NGROK or any Localhost to Webhost Service Required ]
GNU General Public License v3.0
153 stars 93 forks source link

Throwing syntax error while executing the BeefOverWan.py #76

Open aditya-Jai opened 1 year ago

aditya-Jai commented 1 year ago

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(...)?

aditya-Jai commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.