-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoken.php
More file actions
41 lines (32 loc) · 1.4 KB
/
token.php
File metadata and controls
41 lines (32 loc) · 1.4 KB
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
<?php
# © 2021 Avishkar Patil DO NOT EDIT ANYTHING TO KEEP RUNNING
# Here I Put Token which Available Publicly I Recommended Use Your Own Token Here
# For Suppport @Avishkarpatil at Telegram or proavipatil@gmail.com
$jctBase = "cutibeau2ic";
$ssoToken = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1bmlxdWUiOiIyYWFhYjRkOS1jN2QwLTRlZDctODYxYy1jODkxMGZlODI1NGQiLCJ1c2VyVHlwZSI6IlJJTHBlcnNvbiIsImF1dGhMZXZlbCI6IjQwIiwiZGV2aWNlSWQiOiI4ODAyNjZhY2I1NDcyYmJjYWYwZTY0ZWE2YmE0NWE2ZDM1ZTAxNzVkZWQ2NTk4OTIwNGM0NDRhNzlhN2U3MWM4MDA0YWVkNTJlMDgyYWYzN2JkYjk1NGJiNTYxYjM3YmMxOWViOWMzNWMwZmI2MWFjOWVlZjE2ZjM3OTMwOWExNiIsImp0aSI6IjU2ZTRlYzNiLWE2ZTMtNDZlMi1iZjliLTI2ZGNiYmZmNTBkMSIsImlhdCI6MTYyOTkwNDYxOX0.CTwbS9TPkuODFE21mXfMYmSzsYT34jYql6SInWPHpR0"; #Change This with your SSOTOKEN
function tokformat($str)
{
$str= base64_encode(md5($str,true));
return str_replace("\n","",str_replace("\r","",str_replace("/","_",str_replace("+","-",str_replace("=","",$str)))));
}
function generateJct($st, $pxe)
{
global $jctBase;
return trim(tokformat($jctBase . $st . $pxe));
}
function generatePxe() {
return time() + 6000000;
}
function generateSt() {
global $ssoToken;
return tokformat($ssoToken);
}
function generateToken() {
$st = generateSt();
$pxe = generatePxe();
$jct = generateJct($st, $pxe);
return "?jct=" . $jct . "&pxe=" . $pxe . "&st=" . $st;
}
# © 2021 Avishkar Patil DO NOT EDIT ANYTHING TO KEEP RUNNING
echo generateToken();
?>