JSFiddle - React, Tailwind, and code Playground
by codyA
HTML
<title>CA : FMovies.se regkey value decoder</title>
<h1>reqkey Cookie Value <font color="#f0f060">JSF Decoder v2</font></h1>
<h2>Open the Plex log : com.plexapp.plugins.fmoviesplus.log</h2>
<h2>Copy text between : ===TOKEN START=== ... ===TOKEN END===</h2>
<br/>
<textarea placeholder="Paste your code here!" id="code" style="width:100%;max-height:200px"></textarea>
<input type="submit" id="byBtn" onclick="decode()" value="Decode" />
CSS
@import 'https://fonts.googleapis.com/css?family=Open+Sans:300';
* {
margin: 0;
padding: 0;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
padding: 20px;
text-align: left;
font-family: Lato;
color: #fff;
background: #52B3D9;
font-family: 'Open Sans', sans-serif;
text-align: center;
}
h1 {
font-weight: 300;
font-size: 40px;
text-transform: uppercase;
text-align: center;
margin: 20px 0;
}
textarea {
display: block;
clear: both;
margin-bottom: 10px;
border-radius: 7px;
padding: 15px 10px;
font-size: 14px;
outline: none;
border: none;
background-color: #34495E;
color: #fff;
-moz-transition: all 0.2s ease-in;
-o-transition: all 0.2s ease-in;
-webkit-transition: all 0.2s ease-in;
transition: all 0.2s ease-in;
}
input {
margin: 0 auto;
position: relative;
vertical-align: top;
width: 150px;
height: 60px;
padding: 0;
font-size: 22px;
font-weight: 300;
color: white;
text-align: center;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
background: #2980b9;
border: 0;
border-bottom: 2px solid #2475ab;
cursor: pointer;
-webkit-box-shadow: inset 0 -2px #2475ab;
box-shadow: inset 0 -2px #2475ab;
}
input:active {
top: 1px;
outline: none;
-webkit-box-shadow: none;
box-shadow: none;
}
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
color: #fff;
font-size: 20px;
font-weight: 300;
text-transform: uppercase;
}
input::-moz-placeholder,
textarea::-moz-placeholder {
color: #fff;
font-size: 20px;
font-weight: 300;
text-transform: uppercase;
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
color: #fff;
font-size: 20px;
font-weight: 300;
text-transform: uppercase;
box-shadow: none;
-webkit-appearance: none;
}
textarea:hover {
background-color: #22313F;
color: #f2f2f2;
}
textarea:focus {
background-color: #1a252f;
color: #fff;
}
textarea {
height: 550px;
}
JavaScript
function decode() {
var code = document.getElementById('code');
xyz(code);
}
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
var ccc = 0;
function makeid()
{
var text = "";
text = possible.charAt(ccc);
ccc += 1
return text;
}
function xyz(code) {
txt = code.value;
if (txt.indexOf('-') > -1) {
code.value = 'DO NOT INCLUDE THE TIMESTAMP TEXT\n\nExample (dont include with token): 2017-05-08 03:15:58,865 (2540) : INFO (logkit:16) -\n\nONLY THE TOKEN (THE FOLLOWING TYPE)\n\nKGZ1bmN0aW9uKCl7dmFyIGc9bmV3IERhdGUoKSxhPSIiLHg9ZnVuY3Rpb24ocSl7YSs9U3RyaW5nLmZyb21DaGFyQ29kZShxKTt9LGY9KCEhW10rW10pWyshIVtdXSsoW11bW11dK1tdKVshK1tdKyEhW10rISFbXV0rW11bKCFbXStbXSlbIStbXSshIVtdKyEhW11dKyhbXSt7fSlbKyEhW11dKyghIVtdK1tdKVsrISFbXV0rKCEhW10rW10pWytbXV1dWyhbXSt7fSlbIStbXSshIVtdKyEhW10rISFbXSshIVtdXSsoW10re30pWyshIVtdXSsoW11bW11dK1tdKVsrISFbXV0rKCFbXStbXSlbIStbX......';
return;
}
txt = atob(txt);
var txt2 = "";
for (var i=0; i<txt.length; i++) {
if (txt.charCodeAt(i) <= 127) {
txt2 += txt.charAt(i);
} else {
var re = new RegExp(txt.charAt(i), 'g');
txt = txt.replace(re, makeid());
txt2 += txt.charAt(i);
}
}
code.value = txt2.trim();
code.value = code.value.slice(1, -1);
code.value = 'var jssuckit="";'+code.value+'; jssuckit = document.cookie;'
code.value = code.value.replace('function(', 'function xy(').replace('}(','}xy(');
try {
code.value = eval(code.value);
var txt = code.value.split(';');
var txt2 = "";
for (var i=0; i<txt.length; i++) {
if (txt[i].indexOf('reqkey') > -1 && txt[i].length >= 15) {
txt2b = txt[i] +';';
}
}
txt2 = txt2b;
code.value = txt2;
} catch(err) {
code.value = 'This code could not be solved. Please Reset Cookie and try again with a different token dump.';
console.log(err.message);
}
}