Skip to content

1011382654/Iridium-gidra

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  }
]

About

Genshin Impact Proxy + Packet Sniffer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 62.6%
  • Python 27.1%
  • C 9.8%
  • Other 0.5%