After multiple failed attempts to place an order of pizza and getting tired of taking follow-ups from folks at Axis Bank and Bill Desk (the gateway that takes care of Dominos's online pizza orders) , I was frustrated a lot. Then , I came across Domino's Slot machine coupon generator. An innocent looking random coupon generator that is purely JS based and is easily hackable. NOW I AM NOT SAYING I HACKED IT AND ORDERED FREE PIZZA's , the payment gateway sucks soo much that I didn't ordered anything. But yes, I do have something to share with you.
Fire up your Google Chrome (that's enough) and open
http://pizzaonline.dominos.co.in/slot-machine/process-slot.php
You will see the Coupon Generator, fill in the captcha and play it, in normal circumstances , chances are -
- You will win a coupon , if you are feeling lucky, you can try once more and then if you win again, you will have to deal with the final discount coupon you get.
- You will get a "Try Again", you can try till the case 1 is fulfilled.
Lets turn the tables ,fire up developer console by pressing F12 .
navigate to scripts – > slot.js
Open slots and navigate to this code
and change the attempts value to anything you wish
Now navigate to this code
and change the value to 1
Now time to change duration values
$('#slot'+(slots+1)).animate( { backgroundPosition:"(0px "+bgPos+"px)"}, { duration: (10000+(slots*500)), complete: function(){
limit++; //console.log(limit);
if(limit == 4){
Change the subjected function to
$('#slot'+(slots+1)).animate( { backgroundPosition:"(0px "+bgPos+"px)"}, { duration: (1+(slots*1)), complete: function(){
limit++; //console.log(limit);
if(limit == 4){
once done , slot timers and duration will be ultra quick.
Press Ctrl + S and click on Start / Try Again and see the results : ) Cool huh ?
Now tinker with some innocent looking functions for your experiment : ] and enjoy.
Check this For loop and especially check for #slot values and value of i , also, some crazy things can be done by changing the pixel values
if(buttonState == 'Try Again' || buttonState == 'Please wait...'){
var i=1;
for(i=1;i<=4;i++)
$('#slot'+i).css('background-position','0px 0px');
}
Or Look for this function
$.post('process-slot.php',{ session_id : session_id},function(json){
var slot_result = slot_result_desc = ''; var limit = slots = 1;
Now again, I wont be divulging much here : P , you can modify completely the way the slot generator works and generate according to your whims : ] Work your way out.
PS : I did went into the site looking for coupons by being a Dominicon but the coupons there are just pathetic and almost same for all the traits like lazycon/freebicon etc.
Back to Cybernating.
Unique one my friend.
ReplyDeleteanybdy,,,,, found it working???
ReplyDeleteI am not able to edit scripts in chrome. Can you please tell me how to do it?
ReplyDeletekindly explain how to save the javascript after changing and how to apply the changes effectively. Ctrl+S not working or maybe i dont understand it properly.
ReplyDeleteThanks in Advance
Harsh
hey can u help me i don't know js really, but wanna have a jackpot what should i change?
ReplyDeleteYeah, You can edit to play it for fun ! But you can't get the slot to generate a jackpot.
ReplyDeleteIt is not working....dude.::))
ReplyDeleteWon't really help because the result is generated by process-slot.php
ReplyDeleteOur slot.js is only trying to fetch the values and prepare the UI. So this can just manipulate UI, not actual results.
But of course, we can modify slot.js and keep doing brute force on it till we win :P
Awesome!! I found it too. :-) I love the chrome's javascript console.
ReplyDeletehow to edit duration values
ReplyDeletehow to edit duration values
ReplyDelete