Share Scripts to Public Without Revealing The Source Code. Hide Source of script


SUBMITTED BY: raiborne

DATE: Nov. 17, 2015, 2:06 p.m.

FORMAT: Text only

SIZE: 1.8 kB

HITS: 2881

  1. bustabit
  2. a safe way to share your script without revealing the source code
  3. ----------------------------------for you (so you can update the bet amount for others using the script-----------------
  4. //put this at the top of your script
  5. function sharemybet(amount){
  6. return httpGet('http://yoursite.com/better.php?cashout=' + amount + '&pass=lol');
  7. }
  8. function httpGet(theUrl)
  9. {
  10. var xmlHttp = null;
  11. xmlHttp = new XMLHttpRequest();
  12. xmlHttp.open( "GET", theUrl, false );
  13. xmlHttp.send( null );
  14. return xmlHttp.responseText;
  15. }
  16. //put this somewhere in your script that bets
  17. sharemybet(114);
  18. ----------------------------------give this to the people you want to win with your script-----------------
  19. function httpGet(theUrl)
  20. {
  21. var xmlHttp = null;
  22. xmlHttp = new XMLHttpRequest();
  23. xmlHttp.open( "GET", theUrl, false );
  24. xmlHttp.send( null );
  25. return xmlHttp.responseText;
  26. }
  27. engine.on('game_starting', function(info) {
  28. engine.placeBet(betInSatoshis, httpGet('http://yoursite.com/better.php'));
  29. console.log('Game Starting in ' + info.time_till_start);
  30. });
  31. ----------------------------------upload this to your website----------------------
  32. <?php
  33. //usage: http://yoursite.com/better.php?cashout=114&pass=lol
  34. //edit here
  35. $mypass = 'lol';
  36. //end edit
  37. $val = (int)$_GET['cashout='];
  38. $pass = @$_GET['pass']
  39. if (($val) && ($pass == $mypass)){
  40. <?php
  41. $myfile = fopen("newfile.txt", "w") or die("Unable to open file!");
  42. fwrite($myfile, $val);
  43. fclose($myfile);
  44. ?>
  45. }else{
  46. $filename = "newfile.txt";
  47. $handle = fopen($filename, "r");
  48. echo fread($handle, filesize($filename));
  49. fclose($handle);
  50. }
  51. ?>

comments powered by Disqus