Українське README | English README
- The repo contains Python 3 script, which uses russian proxies and do load testing of web resources using API.
- ⚠ The script uses a proxy, but be careful, it is desirable to use a VPN.
-
Install Python 3.8 (or later version)
⚠ IMPORTANT: Make sure to select
Add Python to PATH
checkbox (see screenshot) -
Clone repository:
git clone https://github.com/Luzhnuy/attacker.git
-
Run
install.bat
to install all the required dependencies -
Using terminal (command line or PowerShell) run the script:
python attack.py
-
Install Python 3.8 (or later version)
⚠ Linux users, your system may have Python version 2 pre-installed, which means that you need to run this program with the
python3
command and set the installation requirements with thepip3
command. -
Clone repository:
git clone https://github.com/Luzhnuy/attacker.git
-
Install all the required dependencies:
pip install -r requirements.txt
-
Run the script:
python attack.py
-
Install Docker:
- Docker for Windows: https://ravesli.com/ustanovka-docker-v-windows/
- Docker for MacOS: https://docs.docker.com/desktop/mac/install/
- Linux: https://docs.docker.com/engine/install/
-
Download docker image:
docker pull ghcr.io/luzhnuy/attacker:latest
-
Launch the container for the 500 threads:
docker run --rm ghcr.io/luzhnuy/attacker:latest 500
ATTACKER_THREADS
: (integer) Defines the number of threads used in the script.ATTACKER_TARGET
: (JSON array with URLs) Defines target sites that will be used as a targets instead of a dynamic list of sites retrieved by API.
docker-compose
allows you to easily run containers in parallel without having to keep multiple terminals opened. To run on servers - perfect choice.
-
Clone repository:
git clone https://github.com/Luzhnuy/attacker.git
-
Build and run
5
containers in parallel (each handles500
connections):docker-compose up --build --scale attacker=5
-
Stop containers from
docker-compose.yml
file:Ctrl + C
-
Download the archive https://drive.google.com/file/d/1aQR53fcbvkGY-bY0V4YhzLY6obh8H6Ln/view?usp=sharing
-
Extract archive
⚠ IMPORTANT! DO NOT extract files to desktop folder and not to a folder contains cyrillic symbols. Preferred place to extract is the root of the drive
D:
-
Find the
install.bat
file (you may see it as justinstall
).Click on it using right-click, select
Start as Administrator
. -
Follow step by step everything you see in the black window (press the number of the corresponding item, press Enter, allow programs to be installed, at the end select the next item. For example "Install python (step1)" - You need to enter the number
1
and press Enter -
When the process of installing everything you need is complete, a wizard will open in which you can run the
Attack.bat
file (maybe just Attack).
In the future, you no longer need to run install, just start attack.bat
to get started. You also don't need to check for updates, this process happens automatically.
⚠ If you have already installed
bash
on your Windows machine - do not usebash
, usePowerShell
orcmd