<?php
php
/**
* insim_mst()
*
* @param string Destination IP.
* @param int Destination port.
* @param int Source port.
* @param string Admin password.
* @param string MST message.
*/
function insim_mst($ip, $port, $fromport, $admin, $msg) {
$socket = fsockopen("udp://" . $ip, $port);
fwrite($socket, "ISI\0" . pack("Scc", $fromport, 0, 0) . str_pad($admin, 16, "\0"));
fwrite($socket, "MST\0" . str_pad(substr($msg, 0, 64), 64, "\0"));
fwrite($socket, "ISC\0" . pack("i", 0));
fclose($socket);
}
insim_mst("127.0.0.1", "29999", "30000", "adminpass", "/welcome=file.txt");
?>
A bit of dibloink i guess, maybe some flibble too, but it does work.