Coder Social home page Coder Social logo

1011382654 / iridium-gidra Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moonlightps/iridium-gidra

0.0 0.0 0.0 5.64 MB

Genshin Impact Proxy + Packet Sniffer

License: GNU General Public License v3.0

Shell 0.05% JavaScript 0.36% Python 27.13% C 9.83% Go 62.62%

iridium-gidra's Introduction

Iridium-gidra

A proxy between the client and the server of a certain anime game

Usage (Go version)

Click Here to view usage for go version

Highly recommended to use this version as there is a huge performance increase thanks to Night12138

Warning

WindSeed is not blocked on either of the proxies! for your safety

Usage (Python version)

  1. Clone the Github Repository
git clone https://github.com/MoonlightPS/Iridium-gidra.git
cd Iridium-gidra
  1. Install Poetry and use the following command to install the required dependencies
poetry install
  1. Install python-kcp
cd python-kcp
python setup.py install
  1. Run the following commands to start proxy
py -m gidra
  1. Use the following fiddler script to redirect dispatch

  2. Use patched UserAssembly.dll or the proxy won't work!! and be sure to change it back when you are not using the proxy!!

  3. Start the game and have fun!

Fiddler Script

/* Gidra proxy fiddler script */
import System;
import System.Windows.Forms;
import Fiddler;
import System.Text.RegularExpressions;

class Handlers
{
    static function OnBeforeRequest(oS: Session) {

        if(oS.host.EndsWith("dispatch.yuanshen.com")) {
            oS.oRequest.headers.UriScheme = "http";
            oS.oRequest.headers.Add('url',oS.host);
            oS.host = "localhost";
            oS.port = 8081;
        }

        if(oS.host.Contains("overseauspider.yuanshen.com")){
            oS.oRequest.FailSession(404, "Blocked", "your mom");
        }
    }
};

Note

  • Packets captured are saved after you exit out of gidra in console and can be found in ./gidra/packet_dump
  • proxy auto detects dispatch url and gateserver address when using the above fiddler script, you do not have to hardcode any of these!

Format of packet capture:

[
  {
    "index": int,
    "packetId": int,
    "protoName": string,
    "source": string,
    "time": float,
    "object": protobuf object
  }
]

iridium-gidra's People

Contributors

tamilpp25 avatar lilmayofuksu avatar grownned avatar night12138 avatar r46bit 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.