Code Monkey home page Code Monkey logo

grass-new's Introduction

Grass Winsnip

Grass Winsnip is a Python application designed to connect to WebSocket servers using a list of SOCKS5 proxies. It performs various operations such as checking the validity of proxies, logging proxy reputations, and maintaining WebSocket connections. The application includes a scheduled task to refresh active proxies periodically.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python 3.x
  • pip (Python package installer)

Installation

Clone the Repository

git clone https://github.com/Winnode/grass-new.git
cd grass-new
  1. Clone the repository or download the script files.

  2. Install the required Python packages by running:

    pip install requests==2.28.1 python-dotenv==1.0.0 eth-account==0.5.9 colorama==0.4.6 pyfiglet

Configuration

  1. Create a config.json file in the root directory of the project. Here is an example configuration:

    {
      "schedule_hours": 72,
      "num_devices": 10,
      "max_active_proxies": 200,
      "use_manual_proxy": false, 
      "manual_proxy_file": "active_proxies.txt",
      "uuidproc": "aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL01EUC1LQ0EvYWN1cy9tYWluL3Jlc3VsdF9mb2xkZXIvYWxsLnR4dA=="
    }
  2. Penjelsan config.json

    {
      "schedule_hours": 72, # waktu restart diisi 72 untuk proxy generate auto, dan bisa di buat 72 dll tergantung proxy anda, 
      "num_devices": 10, # jumlah akun maksimal 2 untuk proxy gratis
      "max_active_proxies": 200, # maksimum proxy yg digunakan
      "use_manual_proxy": false, # apabila true maka isi proxy di active_proxies.txt 
      "manual_proxy_file": "active_proxies.txt",
      "uuidproc": "aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL01EUC1LQ0EvYWN1cy9tYWluL3Jlc3VsdF9mb2xkZXIvYWxsLnR4dA=="
    }
    disarankan menggunakan Proxy yg berbayar residential untuk hasil yg maksimal
  3. Create a users.txt file containing the user IDs, one per line.

    akun1
    akun2

Running the Application

  1. Run the application using the following command:

    python3 run.py
  2. Password For those who are interested in joining our community, you can find the password at https://t.me/winsnip.

    Enter password: ********
  3. If the password is correct, the application will start and print the ASCII banner.

Features

  • Proxy Validation: Checks the validity of SOCKS5 proxies by making HTTP requests.
  • WebSocket Connections: Maintains WebSocket connections using valid proxies and sends periodic PING messages.
  • Logging: Logs proxy reputations, connection attempts, and errors.
  • Scheduling: Periodically refreshes the list of active proxies.

Logging

The application uses the loguru library for logging. It creates two log files:

  • debug.log: Contains debug-level logs.
  • error.log: Contains error-level logs.

Dependencies

  • requests
  • asyncio
  • json
  • ssl
  • uuid
  • random
  • concurrent.futures
  • websockets_proxy
  • fake_useragent
  • loguru
  • schedule
  • base64
  • pyfiglet
  • getpass

grass-new's People

Contributors

winnode avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.