Bitcoin Forum
November 05, 2024, 04:54:24 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Plugin script to defeat possible 999dice scamming of coins  (Read 3919 times)
keepinquiet (OP)
Full Member
***
Offline Offline

Activity: 420
Merit: 151



View Profile
February 09, 2015, 06:03:24 PM
Last edit: February 12, 2015, 02:15:55 PM by keepinquiet
 #1

Earler in my other thread, I said that maybe I'd make a plugin to screw with 999dice's potential cheat system. After all the crap this has caused, and the crap I'd have to put up with, and given the fact that there is most likely nothing to come of all this (some bad publicity which people will soon forget), I wrote this.

If you bet at 999dice, after the page loads, hit ctrl-shift-J to open the javascript console. Copy the code below and paste it in there and hit enter.

What the script does:

It rewrites the place bets high and low buttons, so that instead of placing a bet, first it sets a randomly generated client seed (you can turn this off, change the first line to = false), it then requests the server seed, waits for it to load, THEN places the bet.

By using this script when you access 999dice, every bet you make will pull the server seed before placing the bet. If everyone starts using this, he'll likely go broke, as he can't cheat anyone anymore.

I hope to add the ability to save the seeds, but I've never done any javascript with saving a file, so thats not added yet. Would love to see any contributions anyone can make.

I was also going to make the script validate Loss bets, but the actual server seed is not available on the main page. I can likely get it with some ajax calls, but thats a lot of work for today. For now, this is good enough to make sure he never scams YOU.


Code:
var want_me_to_do_the_client_seed = true;
var hash = "null";
var clickcounter = 0;
var interval_id = 0;
var check_id = 0;
var curr_secret = $("#LastBetInfoSecret").html();

$("#AccountTabManualSeed").prop('checked', true);
$(".ManualSeedControls").show();

function checkbet() {
  var secret = $("#LastBetInfoSecret").html();
  if(secret == curr_secret)
    return;
  curr_secret = secret;
  clearInterval(check_id);
  // Hope to add bet verification here soon  
}

function fairclick(hilo) {
  hash = $(".FairTabServerSeedHash").html();
  if(hash == "null") {
    clickcounter++;
    if(clickcounter >= 8) {
      clearInterval(interval_id);
      clickcounter = 0;
      alert('Error loading/finding server hash. Bet not placed. Try again?');
    }
    return;
  }
  clickcounter = 0;
  clearInterval(interval_id);
  last_hash = hash;
  if(hilo == "Low")
    view.controls.betLow();
  else
    view.controls.betHigh();

  check_id = setInterval(checkbet, 250);
}

$("#BetLowButton").children(".BetControlTitle").html("Bet Low<br>(FAIRLY!)");
$("#BetLowButton").children(".BetControlTitle").css("font-size", 18);
$("#BetLowButton").unbind("click");
$("#BetLowButton").click(function() {
  if(clickcounter)
    return;
  if(want_me_to_do_the_client_seed) {
    var newseed = Math.floor(Math.random() * 999999999);
    $(".ManualSeedControls:visible input").val(newseed);  
    $("#FairTabClientSeed").val(newseed);
    view.controls.updateClientSeed();
  }
  hash = $(".FairTabServerSeedHash").html();
  if(hash == "null")
    $(".FairTabReveal").trigger("click");
  interval_id = setInterval(fairclick, 250, "Low");
});

$("#BetHighButton").children(".BetControlTitle").html("Bet High<br>(FAIRLY!)");
$("#BetHighButton").children(".BetControlTitle").css("font-size", 18);
$("#BetHighButton").unbind("click");
$("#BetHighButton").click(function() {
  if(clickcounter)
    return;
  if(want_me_to_do_the_client_seed) {
    var newseed = Math.floor(Math.random() * 999999999);
    $(".ManualSeedControls:visible input").val(newseed);  
    $("#FairTabClientSeed").val(newseed);
    view.controls.updateClientSeed();
  }
  hash = $(".FairTabServerSeedHash").html();
  if(hash == "null")
    $(".FairTabReveal").trigger("click");
  interval_id = setInterval(fairclick, 250, "High");
});
arallmuus
Legendary
*
Offline Offline

Activity: 2716
Merit: 1427



View Profile WWW
February 09, 2015, 06:58:29 PM
 #2

Earler in my other thread, I said that maybe I'd make a plugin to screw with 999dice's potential cheat system. After all the crap this has caused, and the crap I'd have to put up with, and given the fact that there is most likely nothing to come of all this (some bad publicity which people will soon forget), I wrote this.

If you bet at 999dice, after the page loads, hit ctrl-shift-J to open the javascript console. Copy the code below and paste it in there and hit enter.

What the script does:

It rewrites the place bets high and low buttons, so that instead of placing a bet, first it sets a randomly generated client seed (you can turn this off, change the first line to = false), it then requests the server seed, waits for it to load, THEN places the bet.

By using this script when you access 999dice, every bet you make will pull the server seed before placing the bet. If everyone starts using this, he'll likely go broke, as he can't cheat anyone anymore.

I hope to add the ability to save the seeds, but I've never done any javascript with saving a file, so thats not added yet. Would love to see any contributions anyone can make.

I was also going to make the script validate Loss bets, but the actual server seed is not available on the main page. I can likely get it with some ajax calls, but thats a lot of work for today. For now, this is good enough to make sure he never scams YOU.


Code:
var want_me_to_do_the_client_seed = true;
var hash = "null";
var clickcounter = 0;
var interval_id = 0;
var check_id = 0;
var curr_secret = $("#LastBetInfoSecret").html();

$("#AccountTabManualSeed").prop('checked', true);
$(".ManualSeedControls").show();

function checkbet() {
  var secret = $("#LastBetInfoSecret").html();
  if(secret == curr_secret)
    return;
  curr_secret = secret;
  clearInterval(check_id);
  // Hope to add bet verification here soon  
}

function fairclick(hilo) {
  hash = $(".FairTabServerSeedHash").html();
  if(hash == "null") {
    clickcounter++;
    if(clickcounter >= 8) {
      clearInterval(interval_id);
      clickcounter = 0;
      alert('Error loading/finding server hash. Bet not placed. Try again?');
    }
    return;
  }
  clearInterval(interval_id);
  last_hash = hash;
  if(hilo == "Low")
    view.controls.betLow();
  else
    view.controls.betHigh();

  check_id = setInterval(checkbet, 250);
}

$("#BetLowButton").children(".BetControlTitle").html("Bet Low<br>(FAIRLY!)");
$("#BetLowButton").children(".BetControlTitle").css("font-size", 18);
$("#BetLowButton").unbind("click");
$("#BetLowButton").click(function() {
  if(clickcounter)
    return;
  if(want_me_to_do_the_client_seed) {
    var newseed = Math.floor(Math.random() * 999999999);
    $(".ManualSeedControls:visible input").val(newseed);  
    $("#FairTabClientSeed").val(newseed);
    view.controls.updateClientSeed();
  }
  hash = $(".FairTabServerSeedHash").html();
  if(hash == "null")
    $(".FairTabReveal").trigger("click");
  interval_id = setInterval(fairclick, 250, "Low");
});

$("#BetHighButton").children(".BetControlTitle").html("Bet High<br>(FAIRLY!)");
$("#BetHighButton").children(".BetControlTitle").css("font-size", 18);
$("#BetHighButton").unbind("click");
$("#BetHighButton").click(function() {
  if(clickcounter)
    return;
  if(want_me_to_do_the_client_seed) {
    var newseed = Math.floor(Math.random() * 999999999);
    $(".ManualSeedControls:visible input").val(newseed);  
    $("#FairTabClientSeed").val(newseed);
    view.controls.updateClientSeed();
  }
  hash = $(".FairTabServerSeedHash").html();
  if(hash == "null")
    $(".FairTabReveal").trigger("click");
  interval_id = setInterval(fairclick, 250, "High");
});

either way we still need some luck to win at gambling site even by forcing 999dice to show seedhash before the bet, btw to clarify, anyone tried this script already?

 
█▄
R


▀▀██████▄▄
████████████████
▀█████▀▀▀█████
████████▌███▐████
▄█████▄▄▄█████
████████████████
▄▄██████▀▀
LLBIT▀█ 
  TH#1 SOLANA CASINO  
████████████▄
▀▀██████▀▀███
██▄▄▀▀▄▄████
████████████
██████████
███▀████████
▄▄█████████
████████████
████████████
████████████
████████████
█████████████
████████████▀
████████████▄
▀▀▀▀▀▀▀██████
████████████
███████████
██▄█████████
████▄███████
████████████
█░▀▀████████
▀▀██████████
█████▄█████
████▀▄▀████
▄▄▄▄▄▄▄██████
████████████▀
........5,000+........
GAMES
 
......INSTANT......
WITHDRAWALS
..........HUGE..........
REWARDS
 
............VIP............
PROGRAM
 .
   PLAY NOW    
bitparadise
Full Member
***
Offline Offline

Activity: 206
Merit: 100


View Profile
February 09, 2015, 07:12:17 PM
 #3

If a site is a scam site. Simple solution is simply don't play on it.
Jarx
Sr. Member
****
Offline Offline

Activity: 574
Merit: 253


View Profile
February 09, 2015, 07:52:01 PM
 #4

If a site is a scam site. Simple solution is simply don't play on it.

This!

They don't care what users in here talk because they made a good search engine optimization. When you search "bitcoin dice" in google, they are in first results. Enough for them.
koshgel
Legendary
*
Offline Offline

Activity: 1162
Merit: 1001


View Profile
February 09, 2015, 08:29:46 PM
 #5

Still takes a bunch of luck to beat the game anyway. If they are scamming, I would just avoid them.
keepinquiet (OP)
Full Member
***
Offline Offline

Activity: 420
Merit: 151



View Profile
February 09, 2015, 08:37:13 PM
 #6

Just providing it for those who don't believe it is a scam. It cant hurt.
pozmu
Hero Member
*****
Offline Offline

Activity: 770
Merit: 504


(っ◔◡◔)っ🍪


View Profile
February 09, 2015, 10:51:56 PM
 #7

Good, gonna try it tommorow.
Something like this should be procided for every dice site.
As for saving seeds, I,think you could use cookies for this  Cool

james.lent
Hero Member
*****
Offline Offline

Activity: 602
Merit: 501



View Profile
February 10, 2015, 03:50:19 AM
 #8

tested it , and it looks like you need to refresh page after each bet and re-paste back the script...
mayax
Legendary
*
Offline Offline

Activity: 1470
Merit: 1004


View Profile
February 10, 2015, 08:28:31 PM
 #9

another claim about a scam without any single proof. only kids here
keepinquiet (OP)
Full Member
***
Offline Offline

Activity: 420
Merit: 151



View Profile
February 11, 2015, 02:54:45 AM
 #10

tested it , and it looks like you need to refresh page after each bet and re-paste back the script...

Didn't have to in chrome. What browser did you use? If you refresh, yes, you need to re-paste. Might be a browser issue tho.
keepinquiet (OP)
Full Member
***
Offline Offline

Activity: 420
Merit: 151



View Profile
February 12, 2015, 02:16:45 PM
 #11

Had a bug in the script that wouldn't allow you to make new bets once you made one (worked on my end due to the developement mode I was in).

Sorry about that. Script updated.
onemorebtc
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


View Profile
February 13, 2015, 07:43:29 PM
 #12

another claim about a scam without any single proof. only kids here

no one said he is scamming, just that he could.
and it is really nice from the OP for fixing this and making sure he cant Wink

transfer 3 onemorebtc.k1024.de 1
XinXan
Hero Member
*****
Offline Offline

Activity: 1064
Merit: 505


View Profile
February 14, 2015, 11:57:57 AM
 #13

another claim about a scam without any single proof. only kids here

no one said he is scamming, just that he could.
and it is really nice from the OP for fixing this and making sure he cant Wink

Well this section is called scam accusations so im pretty sure op said that they are scamming
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!