This repository has been archived by the owner on Feb 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 126
/
login.php
126 lines (102 loc) · 3.43 KB
/
login.php
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
112
113
114
115
116
117
118
119
120
121
122
<?php
// DO NO EDIT ANYTHING TO WORK PORPELY
// © @AvishkarPatil | https://github.com/avipatilpro
if ($_SERVER['REQUEST_METHOD'] == 'POST'){
$u = $_POST['email'];
if(strpos($u, "@") !== false) {
$user = $u;
} else {
$user = "+91".$u;
}
$pass = $_POST['pass'];
}
$headers = array(
'Content-Type:application/json',
'x-api-key: l7xx938b6684ee9e4bbe8831a9a682b8e19f',
'app-name: RJIL_JioTV'
);
$username = $user;
$password = $pass;
$payload = array(
'identifier' => "$username",
'password' => "$password",
'rememberUser' => 'T',
'upgradeAuth' => 'Y',
'returnSessionDetails' => 'T',
'deviceInfo' => array(
'consumptionDeviceName' => 'samsung SM-G930F',
'info' => array(
'type' => 'android',
'platform' => array(
'name' => 'SM-G930F',
'version' => '5.1.1'
),
'androidId' => '3022048329094879'
)
)
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.jio.com/v3/dip/user/unpw/verify');
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
curl_setopt($ch, CURLOPT_USERAGENT, 'Dalvik/2.1.0 (Linux; U; Android 5.1.1; SM-G930F Build/LMY48Z)');
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_AUTOREFERER, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_ENCODING, 'UTF-8');
curl_setopt($ch, CURLOPT_TIMEOUT, 20);
$result = curl_exec($ch);
curl_close($ch);
$j = json_decode($result, true);
$k = $j["ssoToken"];
if ($k != "")
{
file_put_contents("data/auth.json", $result);
$succ = "Login Successful !";
}
?>
<html>
<head>
<link rel="stylesheet" href="data/css/login.css"/>
<title>JioTV Login | Avishkar Patil </title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="author" content="Avishkar Patil">
<meta name="copyright" content="This Created by Avishkar Patil">
<link rel="shortcut icon" type="image/x-icon" href="https://i.ibb.co/37fVLxB/f4027915ec9335046755d489a14472f2.png">
<meta name="robots" content="all" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
</head>
<body>
<div class="container">
<div class="screen">
<div class="screen__content">
<form class="login" action="<?php $_PHP_SELF ?>" method="POST">
<div class="login__field">
<i class="login__icon fas fa-user"></i>
<input type="text" class="login__input" placeholder="Jio Number / Email" name="email">
</div>
<div class="login__field">
<i class="login__icon fas fa-lock"></i>
<input type="password" class="login__input" placeholder="Password" name="pass">
</div>
<button class="button login__submit" type="submit">
<span class="button__text">Log In Now</span>
<i class="button__icon fas fa-chevron-right"></i>
</button>
</form>
<div class="social-login">
<h3>JioTV Login</h3>
</div>
<div class="logsucc"><b></b><?php echo $succ;?></b></div>
</div>
<div class="screen__background">
<span class="screen__background__shape screen__background__shape3"></span>
<span class="screen__background__shape screen__background__shape2"></span>
<span class="screen__background__shape screen__background__shape1"></span>
</div>
</div>
</div>
</body>
</html>