-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
26 lines (19 loc) · 750 Bytes
/
index.php
File metadata and controls
26 lines (19 loc) · 750 Bytes
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
$urx0="https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=AIzaSyDluKZPdsuwxICZvjKi43I7KLLgAHGtovU";
$datax0='{
"email": "'.$randomemail.'",
"password": "123456qwerty",
"returnSecureToken": true
}';
$headers0[]="content-type: application/json";
$headers0[]='X-Forwarded-For: '.$ip.'';
$ch1 = curl_init();
curl_setopt($ch1, CURLOPT_URL,$urx0);curl_setopt($ch1, CURLOPT_HEADER,0);
curl_setopt($ch1, CURLOPT_POST,0);
curl_setopt($ch1, CURLOPT_POSTFIELDS,$datax0);
curl_setopt($ch1, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch1, CURLOPT_HTTPHEADER,$headers0);
curl_setopt($ch1, CURLOPT_SSL_VERIFYPEER, false);
echo $one80=curl_exec($ch1);
$json80=json_decode($one80,true);
$tok=$json80["idToken"];
$uid=$json80["localId"];