based on https://github.com/ylasgamers/getgrass/
Features:
- Accounts selector
- Proxy selector
- Proxy support (SOCKS4, SOCKS5, HTTP)
- Proxy rotation (with retry attempts and error handling)
- Status logging
- Error handling and reporting
Prerequisites:
- an account, register here https://app.getgrass.io/register/?referralCode=zUQ3Gcre5EvVp5a
- Python 3.2 or higher
pip
package managerwebsockets
websockets-proxy
fake-useragent
python-socks
inquirer
loguru
colorama
Installation:
-
Install softwares:
windows
winget install Microsoft.Git Python.Python.3.12 --accept-source-agreements --accept-package-agreements
linux
sudo apt update && sudo apt upgrade -y && sudo apt install python3 nano git -y
-
Clone the repository:
git clone https://github.com/dualkeyboards/GRASS-RDrop.git
-
Install the required packages:
pip install -r requirements.txt
Usage:
-
Accounts File:
- Create a file named
accounts.txt
in the project directory. - Format each line as
user_id,user_name
. - Example:
1234567890,JohnDoe 9876543210,JaneSmith
- Create a file named
-
Proxy Files:
- Create one or more proxy files with the prefix
proxies_
and a.txt
extension. - Each proxy should be on a separate line in the format
protocol://address:port
. - Example:
socks5://127.0.0.1:9050 http://192.168.1.100:8080
- Create one or more proxy files with the prefix
-
Run the script:
python main.py
-
Select an account and proxy file:
- The script will present a menu to choose from your available accounts and proxy files.
-
Start the bot:
- The script will start creating and connecting devices using the selected proxies.
-
Monitor the log:
- The script will log real-time information about the bot's activity, including connection statuses, ping/pong messages, and errors.
Configuration:
restart_interval
: Specifies the interval (in seconds) for restarting the bot (default is 1200 seconds - 20 minutes).retry_counts
: Defines the number of retry attempts for proxies that encounter errors before they are removed from the pool (default is 5).
You can modify these settings in the main.py
file.
Notes:
- Make sure your proxies are working and configured correctly.
- You may need to adjust the
restart_interval
andretry_counts
values based on your network and proxy configuration. - The script will automatically update the proxy files with information about which proxies are working, which are encountering errors, and which have been pinged or ponged successfully. This will allow you to identify and remove inactive or problematic proxies.
Disclaimer:
This script is provided as-is without warranty of any kind. The author is not responsible for any damage or misuse of this script. Use at your own risk.