Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truncate scripts from https://plg.bet/provably-fair/coinflip #4

Open
SjonHortensius opened this issue Mar 5, 2023 · 2 comments
Open

Comments

@SjonHortensius
Copy link
Owner

3v4l is used by an apparently pretty popular betting site to verify bet outcomes. These scripts pollute the database without much use. I'm considering removing these scripts (it seems there are ~ 250k submits right now) and notifying the site owner to either use another service, target single versions for their submits or schedule a cron to remove these submissions from the db

@SjonHortensius
Copy link
Owner Author

this stinks but works

delete from result where input in (select input from "functionCall" where function=(select id from function where text='hexdec') and input in (select input from "functionCall" where function=(select id from function where text='hash')) and input in (select input from "functionCall" where function=(select id from function where text='substr')) and input in (select input from input_src where raw like '%$roll_colour = %' and raw like '%server_seed%'));

delete from input where id in (select input from "functionCall" where function=(select id from function where text='hexdec') and input in (select input from "functionCall" where function=(select id from function where text='hash')) and input in (select input from "functionCall" where function=(select id from function where text='substr')) and input in (select input from input_src where raw like '%$roll_colour = %' and raw like '%server_seed%'));

@SjonHortensius
Copy link
Owner Author

also referenced on https://empiredrop.com/verify-provably-fair

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant