- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.php
More file actions
Latest commit
23 lines (19 loc) · 645 Bytes
/
Copy pathapi.php
File metadata and controls
23 lines (19 loc) · 645 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?PHP
#New Improved API System
if(!isset($_GET['user'])){ $user = crypt(time()); }
else{ $user = escapeshellcmd($_GET['user']); }
$key = escapeshellcmd($_GET['key']);
$host = escapeshellcmd($_GET['host']);
$port = escapeshellcmd($_GET['port']);
$time = escapeshellcmd($_GET['time']);
$method = escapeshellcmd($_GET['method']);
$key = "1234";
echo"Info Set<br>";
if($method == "stop"){
echoexec('perl client.pl "'.$_GET['user'].' stop'.'"');
echo"Stopped";
} else{
echoexec('perl client.pl "'.$_GET['user'].''.$_GET['method'].''.$_GET['host'].''.$_GET['port'].''.$_GET['time'].'"');
echo"Sent; Ran ''";
}
?>