Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $loginurl); curl_setopt($ch, CURLOPT_POST, 1 ); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie.txt"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($ch); $file = time().'.txt'; // view the page for debugging $fh = fopen($file,'w'); fwrite($fh,$result); fclose($fh); $info = curl_getinfo($ch); $curlError = curl_error($ch); preg_match('/id=(.*)?&pass=(.*)?">/', $result, $links); $id = $links; $pass = $links;