GithubHelp home page GithubHelp logo

sulakore's Issues

Node encryption

I'm trying to learn about the SDK by first making an handshake. I managed to exchage keys but after I give to RC4 the key and encrypt the node, the server stops to respond. Instead after a while server just asks for ping and sends DisconnectReasonEvent.
Sometimes I get packets after the handshake with an unknow id, I've searched them on Sulek but nothing match.

byte[] key = _keyExchange.GetSharedKey(packet.ReadUTF8());

_hnode.Decrypter = new RC4(key);
_hnode.Encrypter = new RC4(key);

Documentation

Hey there!

Does Sulakore has a documentation or some example files?
I would like to make a farming tool. but I don't know where to start.

I would like to know how I can get the sso ticket or how it would be possible to connect my habbo and then control it.

I found this in another repo.
Habbo-Bot
and tried it to modify with the latest Sulakore

var S = await Node.ConnectNewAsync("retro", 30000); //example
if (S)
{
    Debug.WriteLine("Connected");
    await Node.SendAsync(HPacket.ToBytes(HFormat.WedgieOut, "{l}{u:4000}{s:PRODUCTION HERE}{s:FLASH}{i:1}{i:0}"));
    await Node.SendPacketAsync(1961, "[0][0][0][2][7]©");
    var c = await Node.ReceivePacketAsync();
    while (c != null)
    {
        Debug.WriteLine("Incoming packet: " + c.ReadUTF8());
        c = await Node.ReceivePacketAsync();
    }
}

Make Sulakore trimmable

Basically follow this guide from Microsoft: https://docs.microsoft.com/en-us/dotnet/core/deploying/trimming/prepare-libraries-for-trimming.

Currently I can think of some string -> Enum parsing logic in Sulakore.Habbo.HExtensions being a problem. System.Text.Json probably also needs some extra care.

TODO

  • Sulakore.Habbo.Web JSON deserialization to use source generators
  • Sulakore.Habbo.Camera JSON (de)serialization to use source generators
  • Enums. Solution: We need to parse enums only in one place for now. Made internal reflection-free parser to handle this. We can consider either to consume enum source generator or make our own if this becomes more common in the SDK or if its consumers want it.

Create continuous delivery to NuGet

We should have a GitHub Action workflow or job create a package and deploy it to NuGet. How these deployments should be triggered is yet to be decided but I'd imagine non-prerelease packages made from main branch with the release workflow trigger.

One question left is: how do the source generators, namely Sulakore.Generators, play along with NuGet packages? Source Generators will work just fine.

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.