Leymooo / BungeeCord

BungeeCord with built in AntiBot protection (RUS lang)
http://www.rubukkit.org/threads/137038/
Other
78 stars 54 forks source link

Капча может быть практически не видна из-за слишком светлых цифр #92

Closed gomin1d closed 2 years ago

gomin1d commented 3 years ago

Версия бот фильтра: 3.8.9-dev

Вот какая капча мне попалась (клиент версии 1.12.2):
image

Было бы неплохо исключить все цвета, близкие к белому.

NoJokeFNA commented 3 years ago

Can this not be fixed simply by adding the following code here https://github.com/Leymooo/BungeeCord/blob/master/proxy/src/main/java/ru/leymooo/botfilter/captcha/CaptchaGeneration.java#L78:

private Color randomNotWhiteColor()
    {
        Color color = MapPalette.colors[rnd.nextInt( MapPalette.colors.length )];
        color = color.darker(); <----

        if ( color.getRed() == 255 && color.getGreen() == 255 && color.getBlue() == 255 )
        {
            return randomNotWhiteColor();
        }

        if ( color.getRed() == 220 && color.getGreen() == 220 && color.getBlue() == 220 )
        {
            return randomNotWhiteColor();
        }
        return color;
    }

🤔

gomin1d commented 3 years ago

Опять image

NoJokeFNA commented 3 years ago

Did you recompile the source code with the code I sent you? Or did it just reappear and you wanted to share it with us?

gomin1d commented 3 years ago

Did you recompile the source code with the code I sent you? Or did it just reappear and you wanted to share it with us?

no, I haven't changed the code. I just shared a new incident

Leymooo commented 3 years ago

попробуй дев билд, может быть получше станет

gomin1d commented 2 years ago

больше жалоб на это не поступала