birdman3131

Untitled

Feb 17th, 2015
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.46 KB | None | 0 0
  1.  
  2. <!DOCTYPE html>
  3. <!-- the following line is required for our script to run in IE -->
  4. <!-- saved from url=(0023)https://www.dropbox.com -->
  5. <html>
  6. <head>
  7.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  8.     <script type="text/javascript">
  9.         (function () {
  10.             "use strict";
  11.             function join_nonce(b, c) {
  12.                 if (c.length !== b.length || (c.length % 2) !== 0) {
  13.                     // Invalid inputs; Return empty string.
  14.                     return null;
  15.                 }
  16.  
  17.                 // hex-decode and xor
  18.                 var a = '';
  19.                 for (var i = 0; i !== c.length; i += 2) {
  20.                     a += String.fromCharCode(parseInt(c.slice(i, i + 2), 16) ^ parseInt(b.slice(i, i + 2), 16));
  21.                 }
  22.                 return a;
  23.             }
  24.             function go() {
  25.                 var b_parts = window.location.hash.substr(1).split('-');
  26.                 // Clear the URI fragment, so that we don't try to re-use the
  27.                 // nonce if the user presses 'Back'.
  28.                 window.location.hash = '';
  29.                 var inputs = document.getElementsByName('n');
  30.                 var broken = false;
  31.                 for (var i = 0; i < inputs.length; i++) {
  32.                    var input = inputs.item(i);
  33.                    var b = b_parts[i];
  34.                    var c = input.getAttribute('data-nonce-c');
  35.                    var n = join_nonce(b, c);
  36.                    if (n === null) {
  37.                        broken = true;
  38.                        n = '';
  39.                    }
  40.                    input.setAttribute('value', n);
  41.                }
  42.                if (broken) {
  43.                    // If any of the nonces are broken, don't send any.
  44.                    for (var i = 0; i < inputs.length; i++) {
  45.                        inputs.item(i).setAttribute('value', '');
  46.                    }
  47.                }
  48.                document.desktop_login.submit();
  49.                setTimeout(function() { window.location = unescape("%68%74%74%70%73%3A%2F%2F%77%77%77%2E%64%72%6F%70%62%6F%78%2E%63%6F%6D%2F%68%6F%6D%65"); }, 30000);
  50.            }
  51.            window.onload = go;
  52.        })();
  53.    </script>
  54.     <style type="text/css">
  55.         div.center {
  56.             text-align: center;
  57.             margin: 40px 0;
  58.         }
  59.         img {
  60.             margin: auto;
  61.         }
  62.         body {
  63.             font-family: Sans-Serif;
  64.             font-size: 14pt;
  65.             padding: 80px 0;
  66.         }
  67.     </style>
  68.     <title>Dropbox</title>
  69. </head>
  70. <body>
  71. <form name="desktop_login" action="https://www.dropbox.com/desktop_login" method="post">
  72.     <input type="hidden" name="buildno" value="Dropbox-win-3.2.6">
  73. <input type="hidden" name="u" value="home">
  74. <input type="hidden" name="c" value="">
  75.  
  76.                 <input type="hidden" name="i" value="##########">
  77.                 <input type="hidden" name="n" value="" data-nonce-c="######################################################################################">
  78.                
  79.     <noscript>
  80.         <div class="center">
  81.             <meta id="meta-refresh" http-equiv="refresh" content="2;URL=https://www.dropbox.com/login?cont=%2F%68%6F%6D%65">
  82.             <p>Dropbox can't log you in automatically because your browser has scripts disabled.</p>
  83.             <a href="https://www.dropbox.com/login?cont=%2F%68%6F%6D%65">Sign in manually</a>
  84.         </div>
  85.     </noscript>
  86. </form>
  87. </body>
  88. </html>
Advertisement
Add Comment
Please, Sign In to add comment