Open mack-king opened 1 week ago
If it's convenient for you. Leave a telegram account and I will contact you to ask you about installation issues.
@levo-777
https://github.com/levo-777/whats_app_web_phisher/blob/main/local/requirements.txt
Ubuntu , Python3 , Selenium Browser , Flask
Prerequisites and Setup Clarifications
Use Ubuntu, Not Windows From the picture above, it seems like you may be using Windows, but for this tool to work properly, you must use Ubuntu (or another Linux distribution). Ubuntu is preferred because of its compatibility with the required tools like Firefox, GeckoDriver, and Selenium.
Running Everything Locally
If you choose to run everything locally (i.e., both the Flask server and scraper on the same machine), please note that the IP address will only be accessible within your local network. This means that only devices connected to your home network can interact with the Flask server. If you want to try tunneling the connection out to the internet, you could explore services like ngrok. However, be aware that tunneling services like ngrok may not work properly due to CORS issues and WebSocket limitations that affect how the server communicates with the scraper. Therefore, we cannot guarantee functionality with ngrok or similar services.
Running the Flask Server on a VPS with a Public IP
If you want your Flask server to have a public IP address (so it can be accessed from anywhere), you have two options:
Option 1: Port Forwarding
You could port forward on your home router and open a specific port to expose your Flask server to the public internet. However, this requires modifying your router's settings, and the external IP address will be the one assigned by your internet service provider (which may change over time).
Option 2: Using an Ubuntu VPS
Alternatively, for a more stable and permanent solution, you can rent an Ubuntu VPS (a Virtual Private Server). This will give you a dedicated public IP address that you can configure as you need. Here's what to do:
Set up the Flask server on your VPS:
Log in to your VPS and navigate to the remote/ folder:
cd remote/
Set up the virtual environment, install the dependencies, and start the Flask server:
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
python3 app.py
This will start the Flask server on the VPS, which will now be accessible via its public IP address.
Configure your local machine:
On your local machine, adjust the IP address in the scraper.py file to point to the public IP address of your VPS. Open the scraper.py file in the local/ folder and replace the localhost or 127.0.0.1 address with your VPS’s public IP.
Install dependencies on your local machine (if you haven’t already) by following the steps in the "Python and Virtual Environment" section:
cd local/
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
Run the Scraper on your Local Machine: Once everything is set up, run the scraper on your local machine:
python3 scraper.py
Wait for a login attempt: The scraper will now be listening for the victim to scan the phishing QR code and attempt to log in to WhatsApp Web.
The required system environment and version are missing.