This repository contains the code for getgrass-bot, a bot designed to establish WebSocket connections through various HTTP and SOCKS proxies, specifically aimed at farming for Grass Airdrop Season 2.
getgrass-bot connects to a specified WebSocket server using both HTTP and SOCKS proxies. It leverages the ws library for WebSocket communication and integrates the https-proxy-agent and socks-proxy-agent libraries for enhanced proxy support. This allows for more versatile and resilient connections, accommodating a wider range of proxy types.
# Check Nodejs Version
node --version
# if 18, skip nodejs steps
# Delete Nodejs old files
sudo apt-get remove nodejs
sudo apt-get purge nodejs
sudo apt-get autoremove
sudo rm /etc/apt/keyrings/nodesource.gpg
sudo rm /etc/apt/sources.list.d/nodesource.list
# Install Nodejs 18
NODE_MAJOR=18
sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_MAJOR}.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo apt-get update
sudo apt-get install -y nodejs
node --version
# Install npm
sudo apt-get install npm
npm --version-
Clone this repository to your local machine:
git clone https://github.com/dante4rt/getgrass-bot.git
-
Navigate to the project directory:
cd getgrass-bot -
Install the required dependencies using npm:
npm install
-
Obtain your user ID from the Getgrass website:
-
Open your browser's developer tools (usually by pressing F12 or right-clicking and selecting "Inspect").
-
Go to the "Console" tab.
-
Paste the following command and press Enter:
localStorage.getItem('userId');
-
Copy the value returned, which is your user ID.
-
Create a file named
uid.txtin the project directory and list your user IDs, each on a new line, like so:123123213 12313123 -
To specify proxies, create a file named
proxy.txtin the project directory and add your desired proxy URLs, following the same new-line format, like this:http://username:password@hostname:port socks5://username:password@hostname:port -
To run the
getgrass-bot, execute the following command in your terminal:npm start
This project is licensed under the MIT License - see the LICENSE file for details.
If you find this project useful, please consider giving it a star on GitHub! Your support motivates further development and enhancements.