Carlos

help swf 534

Recommended Posts

The captcha system was changed on swf 534

To fix it, I captured some captcha packets from transformice, it's not many but it suffices

Open parsePackets.py and find :

elif CC == Identifiers.recv.Login.Captcha:

And replace it :

                if _time.time() - this.client.CAPTime > 2:
                    this.client.currentCaptcha, px, ly, lines = this.server.buildCaptchaCode()
                    packet = ByteArray().writeShort(px).writeShort(ly).writeShort((px * ly))
                    for line in lines:
                        packet.writeBytes("\x00" * 4)
                        for value in line.split(","):
                            packet.writeUnsignedByte(value).writeBytes("\x00" * 3)
                        packet.writeBytes("\x00" * 4)
                    packet.writeBytes("\x00" * (((px * ly) - (packet.getLength() - 6) / 4) * 4))
                    print(packet.toByteArray())
                    this.client.sendPacket(Identifiers.send.Captcha, packet.toByteArray())
                    this.client.CAPTime = _time.time()

by this code https://pastebin.com/1CNcktgF

 

 

 

 

GIF :

i2MsMRe.gif

 

Editado por yatsu

Compartilhar este post


Link para o post
Compartilhar em outros sites
3 horas atrás, yatsu disse:

The captcha system was changed on swf 534

To fix it, I captured some captcha packets from transformice, it's not many but it suffices

Open parsePackets.py and find :

elif CC == Identifiers.recv.Login.Captcha:

And replace it :

                if _time.time() - this.client.CAPTime > 2:
                    this.client.currentCaptcha, px, ly, lines = this.server.buildCaptchaCode()
                    packet = ByteArray().writeShort(px).writeShort(ly).writeShort((px * ly))
                    for line in lines:
                        packet.writeBytes("\x00" * 4)
                        for value in line.split(","):
                            packet.writeUnsignedByte(value).writeBytes("\x00" * 3)
                        packet.writeBytes("\x00" * 4)
                    packet.writeBytes("\x00" * (((px * ly) - (packet.getLength() - 6) / 4) * 4))
                    print(packet.toByteArray())
                    this.client.sendPacket(Identifiers.send.Captcha, packet.toByteArray())
                    this.client.CAPTime = _time.time()

by it :

https://pastebin.com/1CNcktgF

i2MsMRe.gif

 

Citar


Traceback (most recent call last):
  File "C:\Users\Lucas\Desktop\sursa\Start.py", line 455, in parseString
    self.Packets.parsePacket(packetID, C, CC, packet)
  File "C:\Users\Lucas\Desktop\sursa\game\SlyPackets.py", line 819, in parsePacket
    if _time.time() - this.client.CAPTime > 2:
NameError: global name 'this' is not defined

 

Compartilhar este post


Link para o post
Compartilhar em outros sites
Em 09/09/2019 at 03:05, Andriel9 disse:

This code is just a little trick to help those who can't create the new captcha code :v

Yeah, I know, it's just a fast solution xd

Editado por yatsu

Compartilhar este post


Link para o post
Compartilhar em outros sites
Em 09/09/2019 at 05:05, Andriel9 disse:

This code is just a little trick to help those who can't create the new captcha code :v

Is true...But working xddd

Compartilhar este post


Link para o post
Compartilhar em outros sites

Crie uma conta ou entre para comentar

Você precisar ser um membro para fazer um comentário

Criar uma conta

Crie uma nova conta em nossa comunidade. É fácil!

Crie uma nova conta

Entrar

Já tem uma conta? Faça o login.

Entrar Agora