Updates!!!
- Product buying
- Inventory
- MUS
Okay, so the mus. Is I believe, very secure.. why is it secure?
- The port is hidden
- When you send a packet to the mus socket, you must have login credentials, example;
Code:
?username=Quack&password=testing1&type=hotelalert&data=:D
I wrote a basic script for it to connect as well..
So far, you can only send hotel alerts via website ;D
PHP Code:
<?php
$host = "127.0.0.1";
$port = 3467;
$stringofdata = "login ".$_GET['username']." ".$_GET['password']." type ".$_GET['type']." ".$_GET['data'];
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP) or die("Could not create socket\n");
socket_connect($socket, $host, $port) or die("Could not connect to server on port: ".$port);
$len = strlen($stringofdata);
socket_send($socket, $stringofdata, $len, 0);
socket_close($socket);
?>