-
Notifications
You must be signed in to change notification settings - Fork 0
/
qrtr.html
111 lines (108 loc) · 3.21 KB
/
qrtr.html
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Payload Decoder</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
background-color: #f0f0f0;
}
.container {
width: 80%;
max-width: 1200px;
margin-top: 20px;
padding: 20px;
background-color: white;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 5px;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
.form-group textarea,
.form-group input {
width: 100%;
padding: 10px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
}
.form-group textarea {
height: 200px;
}
.form-group input[type="submit"] {
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
}
.form-group input[type="submit"]:hover {
background-color: #45a049;
}
.result {
margin-top: 20px;
white-space: pre-wrap;
word-wrap: break-word;
background-color: #f9f9f9;
padding: 10px;
border-radius: 5px;
border: 1px solid #ccc;
}
</style>
</head>
<body>
<div class="container">
<h1>Payload Decoder</h1>
<form id="decodeForm">
<div class="form-group">
<label for="payload">Payload:</label>
<textarea id="payload" name="payload"></textarea>
</div>
<div class="form-group">
<label for="jsr_cookie">Cookie:</label>
<input type="text" id="jsr_cookie" name="jsr_cookie">
</div>
<div class="form-group">
<input type="submit" value="Decode">
</div>
</form>
<div class="result" id="result"></div>
</div>
<script>
document.getElementById('decodeForm').addEventListener('submit', function(event) {
event.preventDefault();
const payload = JSON.parse(document.getElementById('payload').value);
const jsr_cookie = document.getElementById('jsr_cookie').value;
const data = { payload, jsr_cookie };
fetch('https://xf4.ru/q', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(data)
})
.then(response => response.json())
.then(result => {
document.getElementById('result').textContent = JSON.stringify(result, null, 2);
})
.catch(error => {
console.error('Error:', error);
document.getElementById('result').textContent = 'Error decoding payload.';
});
});
</script>
</body>
</html>