public
Created

dbxlz7mhc2.html (see https://aur.archlinux.org/packages/dropbox/ for relevant discussion)

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
 
<!DOCTYPE html>
<!-- the following line is required for our script to run in IE -->
<!-- saved from url=(0023)https://www.dropbox.com -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript">
(function () {
"use strict";
function go() {
var c = '<86 hex chars long hash>';
var b = window.location.hash.substr(1);
window.location.hash = '';
var a = '';
if (c.length !== b.length || (c.length % 2) !== 0) {
a = '**' + c; // XXX - See note2 above
} else {
// hex-decode and xor
for (var i = 0; i !== c.length; i += 2) {
a += String.fromCharCode(parseInt(c.slice(i, i + 2), 16) ^ parseInt(b.slice(i, i + 2), 16));
}
}
var n = document.getElementById('n');
n.setAttribute('value', a);
document.desktop_login.submit();
setTimeout(function() { window.location = "https://www.dropbox.com/home"; }, 30000);
}
window.onload = go;
})();
</script>
<style type="text/css">
div.center {
text-align: center;
margin: 40px 0;
}
img {
margin: auto;
}
body {
font-family: Sans-Serif;
font-size: 14pt;
padding: 80px 0;
}
</style>
<title>Dropbox</title>
</head>
<body>
<form name="desktop_login" action="https://www.dropbox.com/desktop_login" method="post">
<input type="hidden" name="i" value="321487158">
<input id='n' type="hidden" name="n" value="">
<input type="hidden" name="u" value="home">
<input type="hidden" name="c" value="">
<noscript>
<div class="center">
<meta id="meta-refresh" http-equiv="refresh" content="2;URL='https://www.dropbox.com/login?cont=/home'">
<p>Dropbox cannot log you in automatically because your browser has scripts disabled.</p>
<a href="https://www.dropbox.com/login?cont=/home">Sign in manually</a>
</div>
</noscript>
</form>
</body>
</html>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.