L
L
Lorem Ipsum2014-07-25 14:08:52
JavaScript
Lorem Ipsum, 2014-07-25 14:08:52

How to find out how cookies are set in JavaScript script?

Hello. For example, there is such a code, if you look through a sniffer, then when the recaptcha_ajax script is requested, it occurs with cookies that simply did not exist. How to find out where cookies come from if the whole script is obfuscated?
Demo Link: https://www.google.com/recaptcha/demo/ajax

<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>reCAPTCHA</title>
<style type="text/css">
      body {
        font-family: Helvetica, sans-serif;
        color: #000000;
        font-size: 12px;
        border: none;
        background-color: transparent;
      }
    </style></head>
<body>
<form method="POST" action="">

<script type="text/javascript" src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>
<script type="text/javascript">
          function showRecaptcha() {
            Recaptcha.create("6Ld4iQsAAAAAAM3nfX_K0vXaUudl2Gk0lpTF3REf", 'captchadiv', {
              
              
              
                tabindex: 1,
                theme: "clean",
                callback: Recaptcha.focus_response_field
            });
          }
        </script>
<div id="captchadiv"></div>
<input type="button" value="Click Me" onclick="showRecaptcha();">
<table cellspacing="0" cellpadding="4" border="0" style="font-family: Helvetica, sans-serif; color: #000000; font-size: 12px;"><tr><td><div><input type="submit" name="Button1" value="Submit"></div></td></tr></table></form></body></html>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Baumgertner, 2014-07-26
@alexbaum

I looked at the code at http://jsbeautifier.org, it looks like the cookie is not set in js.
Perhaps with get https://www.google.com/recaptcha/api/js/recaptcha_...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question