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){
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){
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');
}
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;
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.
0 comments:
Post a Comment