Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2014
    Location
    India
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post A tough Javascript cracking

    Code:
    Solve For Makkhi

    I find it tough however. But manually I have come up with a way for this challenge:

    Code:
    First I inspect the element

    I then find this line of code which when the "->" (arrow) is triggered, triggers the values of the fields and increments it by one thereby hitting you with a word, the loop would go from 0 to 197, any way to automate this?

    The challenge is here:

    Code:
    http://www.kernelinsights.com/SolveForMakkhi
    I just need a working dynamic/static script which solves this. Also, here is how you do it (the manual):

    Code:
    https://www.youtube.com/watch?v=RLFuH_iHwxg&html5=1
    Need a automated script, also, in

    Code:
     http://www.kernelinsights.com/Makkhi/js/puzzle.js
    Code:
    function sendData(in_data,dest_url) {
    var req_send = $.ajax({
    url: dest_url,
    type: 'POST',
    contentType: 'application/json',
    data: in_data,
    dataType: 'json'
    });
    return req_send;
    
    };
    sending data=in_data
    and

    Code:
    req_phrase = sendData(JSON.stringify({'q':q_val}),'/phrase');
    means you are sending trim text that is entered in textarea

    and on response if success then you call this function:

    Code:
    function munchPhrase(data) {
    
    if (data['i']){
    typeAns(data['m']);
    $('#riddle').remove();
    $('#nBut').remove();
    $('#askr').remove();
    }
    else {
    typeAns("Sorry, that isn't it.");
    }
    
    }
    so until you send i=true nothing going to happen.
    and if i=true
    then typeAns(data['m']); will be called
    which is just add data by $('#answr').append(wordArray[i] + ' ');
    that you sent in e.g. m="yes right"
    "yes right" will be displayed.

    Finally it means you never got a data of user who answered the question.

  • #2
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,981
    Thanks
    56
    Thanked 557 Times in 554 Posts
    sorry, what was the question?

  • #3
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,082
    Thanks
    203
    Thanked 2,542 Times in 2,520 Posts
    I think there is a language problem here. But I have the idea that he is asking us to crack the coding of a puzzle. I think that is contrary to the forum rules.
    Last edited by Philip M; 07-23-2014 at 06:39 PM.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •