death-code/templates/index.html

63 lines
5.3 KiB
HTML
Raw Normal View History

2021-02-23 13:14:29 -08:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Death Code</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- water.css -->
<style>
body{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.4;max-width:800px;margin:20px auto;padding:0 10px;color:#dbdbdb;background:#202b38;text-rendering:optimizeLegibility}button,input,textarea{transition:background-color .1s linear,border-color .1s linear,color .1s linear,box-shadow .1s linear,transform .1s ease}h1{font-size:2.2em;margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:12px}h1,h2,h3,h4,h5,h6,strong{color:#fff}b,h1,h2,h3,h4,h5,h6,strong,th{font-weight:600}blockquote{border-left:4px solid rgba(0,150,191,.67);margin:1.5em 0;padding:.5em 1em;font-style:italic}blockquote>footer{margin-top:10px;font-style:normal}address,blockquote cite{font-style:normal}a[href^=mailto]:before{content:"📧 "}a[href^=tel]:before{content:"📞 "}a[href^=sms]:before{content:"💬 "}button,input[type=button],input[type=checkbox],input[type=submit]{cursor:pointer}input:not([type=checkbox]):not([type=radio]),select{display:block}button,input,select,textarea{color:#fff;background-color:#161f27;font-family:inherit;font-size:inherit;margin-right:6px;margin-bottom:6px;padding:10px;border:none;border-radius:6px;outline:none}button,input:not([type=checkbox]):not([type=radio]),select,textarea{-webkit-appearance:none}textarea{margin-right:0;width:100%;box-sizing:border-box;resize:vertical}button,input[type=button],input[type=submit]{padding-right:30px;padding-left:30px}button:hover,input[type=button]:hover,input[type=submit]:hover{background:#324759}button:focus,input:focus,select:focus,textarea:focus{box-shadow:0 0 0 2px rgba(0,150,191,.67)}button:active,input[type=button]:active,input[type=checkbox]:active,input[type=radio]:active,input[type=submit]:active{transform:translateY(2px)}button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:.5}::-webkit-input-placeholder{color:#a9a9a9}:-ms-input-placeholder{color:#a9a9a9}::-ms-input-placeholder{color:#a9a9a9}::placeholder{color:#a9a9a9}a{text-decoration:none;color:#41adff}a:hover{text-decoration:underline}code,kbd{background:#161f27;color:#ffbe85;padding:5px;border-radius:6px}pre>code{padding:10px;display:block;overflow-x:auto}img{max-width:100%}hr{border:none;border-top:1px solid #dbdbdb}table{border-collapse:collapse;margin-bottom:10px;width:100%}td,th{padding:6px;text-align:left}th{border-bottom:1px solid #dbdbdb}tbody tr:nth-child(2n){background-color:#161f27}::-webkit-scrollbar{height:10px;width:10px}::-webkit-scrollbar-track{background:#161f27;border-radius:6px}::-webkit-scrollbar-thumb{background:#324759;border-radius:6px}::-webkit-scrollbar-thumb:hover{background:#415c73}
input:not([type="checkbox"]):not([type="radio"]), select {
display: initial;
}
</style>
</head>
<body>
<h1>Death Code</h1>
<hr />
<p>The polynomial is degree {{ polynomial.degree }}, so you'll need at least {{ polynomial.degree + 1 }} points to find it</p>
<form action="/" method="POST">
{% for i in range(polynomial.degree + 1) %}
<div>
<input required type="number" name="x{{i+1}}" placeholder="x{{i+1}}">
<input required type="number" name="y{{i+1}}" placeholder="y{{i+1}}">
</div>
{% endfor %}
<div style="padding: 5px 0">
<img src="data:image/png;base64, {{ captcha_png }}" />
</div>
<input required type="text" name="captcha-solution">
<input type="hidden" name="captcha-id" value="{{ captcha_id }}">
<button type="submit">Validate</button>
</form>
2021-02-23 16:52:58 -08:00
<p>Once you get the value of f(0), go to {{ domain }}/f(0)</p>
2021-02-23 13:14:29 -08:00
<hr />
<p>Here's resources with more information (for now, just contact info for others with a coordinate). Password should've been given to you</p>
<ul>
<li><a target="_blank" rel="noopener noreferrer" href="https://nextcloud.andrewkdinh.com/s/ADmFKLCZgdycRH8">Nextcloud</a></li>
<li><a target="_blank" rel="noopener noreferrer" href="https://nextcloud.abhikahuja.com/s/TajPLXWLEkPQq6y">Abhik Ahuja's Nextcloud</a></li>
<li>
<details>
<summary><a target="_blank" rel="noopener noreferrer" href="https://mega.nz/folder/r44kgQCA">MEGA</a></summary>
<p>Decryption key: <code>echo "U2FsdGVkX1/fG6A2L6D50C2kCsrMw/sVdrjxJF7SfLy5z/92gR3So4LXBm8CYl3K"|openssl base64 -d|openssl enc -d -pbkdf2 -aes-256-cbc -k "PASSWORD_HERE"</code></p>
</details>
</li>
</ul>
<hr />
<p>Some other tools to do <a target="_blank" rel="noopener noreferrer" href="https://en.wikipedia.org/wiki/Polynomial_interpolation">Lagrange/polynomial interpolation</a>:</p>
<ul>
<li><a target="_blank" rel="noopener noreferrer" href="https://tools.timodenk.com/polynomial-interpolation">Timo Denk</a></li>
<li><a target="_blank" rel="noopener noreferrer" href="https://www.dcode.fr/lagrange-interpolating-polynomial">dCode</a></li>
<li><a target="_blank" rel="noopener noreferrer" href="https://www.wolframalpha.com/input/?i=interpolating+polynomial+calculator">WolframAlpha</a></li>
<li><a target="_blank" rel="noopener noreferrer" href="https://planetcalc.com/8692/">PlanetCalc</a></li>
</ul>
</body>
</html>