adepierre / SniffCraft

C++ program to capture and display all traffic between a client and a server in minecraft
GNU General Public License v3.0
189 stars 11 forks source link

1.19.2 forge and 1.19.2 fabric will cause a login disconnect due to sniffcraft.exe not having the mod loaders #28

Closed Mysticpasta1 closed 1 year ago

Mysticpasta1 commented 1 year ago
C:\Windows\System32>"C:\Users\Ethan\Desktop\sniffcraft.exe" 12345 localhost:62709 "C:\Users\Ethan\Desktop\custom.json"
Waiting connection on 127.0.0.1:12345
Loading updated conf file...
Conf file loaded!
Trying to authenticate using Microsoft account
[2023-05-01 07:25:05.524] [INFO] [(21356)] Authentifier.cpp(86): Cached Minecraft token for Microsoft account still valid.
[2023-05-01 07:25:05.525] [INFO] [(21356)] Authentifier.cpp(89): Getting player certificates...
[2023-05-01 07:25:05.528] [INFO] [(21356)] Authentifier.cpp(1159): Cached player certificates still valid!
[2023-05-01 07:25:05.528] [INFO] [(21356)] Authentifier.cpp(96): Player certificates obtained!
Starting new proxy to localhost:62709
Waiting connection on 127.0.0.1:12345
[0:00:00:000] [(SC) --> S] Client Intention
[0:00:00:000] [C --> (SC)] Client Intention
[0:00:00:004] [S --> C] Login Disconnect
{
    "reason": {
        "raw_text": "{\"text\":\"This server has mods that require Forge to be installed on the client. Contact your server admin for more details.\"}"
    }
}

forge needs to be installed in sniffcraft.exe even though the alt has it

{
    "LogToConsole": true,
    "LogToReplay": false,
    "LogRawBytes": false,
    "Online": true,
    "MicrosoftAccountCacheKey": "",
    "Handshaking": {
        "ignored_clientbound" : [

        ],
        "ignored_serverbound" : [

        ],
        "detailed_clientbound": [

        ],
        "detailed_serverbound": [

        ]
    },
    "Status": {
        "ignored_clientbound" : [

        ],
        "ignored_serverbound" : [

        ],
        "detailed_clientbound": [

        ],
        "detailed_serverbound": [

        ]
    },
    "Login": {
        "ignored_clientbound" : [

        ],
        "ignored_serverbound" : [

        ],
        "detailed_clientbound": [
            "Hello",
        "Login Disconnect"
        ],
        "detailed_serverbound": [
            "Key"
        ]
    },
    "Play": {
        "ignored_clientbound" : [
            "Move Entity Pos",
            "Move Entity PosRot",
            "Move Entity Rot",
            "Entity Event",
            "Player Position",
            "Rotate Head",
            "Level Chunk",
            "Section Blocks Update",
            "Light Update",
            "Forget Level Chunk",
            "Set Entity Data",
            "Update Attributes",
            "Add Entity",
            "Set Entity Motion",
            "Teleport Entity",
            "Set Equipment",
            "Add Mob",
            "Remove Entity",
            "Block Update",
            "Animate",
            "Keep Alive",
            "Set Time",
            "Block Event",
            "Sound"
        ],
        "ignored_serverbound" : [
            "Move Player Pos",
            "Move Player PosRot",
            "Move Player Rot",
            "Move Player Status Only",
            "Keep Alive"
        ],
        "detailed_clientbound": [
            "Container Set Content",
            "Container Set Slot"
        ],
        "detailed_serverbound": [
            "Container Click",
            "Container Close"
        ]
    }
}

If need be I can give the modpack zip for my forge modpack for testing if requested in discord

Mysticpasta1 commented 1 year ago

quilt also can cause the issue!

adepierre commented 1 year ago

Thanks!

Yes having the modpack or at least a list of mods could help to find out the issue.

Mysticpasta1 commented 1 year ago

sure one moment