ESET NOD32モニタリング

多数のオフィスがあり、それぞれにESET NOD32があり、通信用のOpenVPNがあるとします。 この場合、各オフィスにはライセンスがインストールされ、更新をダウンロードするコンピューターが1台あり、他のウイルス対策ソフトウェアはそこから更新をダウンロードします。 ライセンスをインストールすると、HTTP経由のアップデートが利用可能になります(この場合、設定でポート8081を指定します)。



この方法の本質は、NOD32ウイルス対策のupdate.verファイルをダウンロードすることです

組み込みのHTTPサーバー経由で更新を配布します。 書かれた実装

php + gdで。 エラーの場合、エラーのデコードが表示されます。



いずれにせよ、ESET Remote Administrator( ERA )とは何かを確認してください-既製のソリューションを使用したほうがよい場合もあります(お金の場合)。





フォントterminal6.gdfを使用しました。これはインターネットで簡単に見つけることができます。 もう1つの重要な注意事項として、ESET HTTP Serverサービスが実行されている必要があります。



Webサーバー上のフォルダーには、次のファイルが必要です。

index.php:

<?php if (isset($_GET['host'])) $host = $_GET['host']; $url = "/update.ver"; $text = ""; if ($fp = fsockopen($host, 8081, $errno, $errstr, 20)) { //  ,   $out = "GET $url HTTP/1.0\r\n"; $out .= "Host: $host\r\n"; $out .= "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)\r\n"; $out .= "Accept: */*:\r\n"; $out .= "Pragma: no-cache\r\n"; $out .= "Cache-Control: no-cache\r\n"; $out .= "Connection: close\r\n\r\n"; fputs($fp, $out); //     $content = ''; while(!feof($fp)) { stream_set_timeout($fp, 10); $content .= fgets($fp, 4096); $status = socket_get_status($fp); if ($status['timed_out']) break; } fclose($fp); //    // \d    $pattern = '/version=(\\d\\d\\d\\d)\ \((\\d\\d\\d\\d\\d\\d\\d\\d)\)/'; preg_match_all($pattern, $content, $matches, PREG_OFFSET_CAPTURE); $count = count($matches[0]); if (!$count) { //     -    $pattern = '/versionid=(\\d\\d)(\\d\\d)/'; preg_match_all($pattern, $content, $matches, PREG_OFFSET_CAPTURE); $count =count($matches[0]); } //       $ar = array(); for ($i=0;$i<$count;$i++) $ar[$i] = strval($matches[1][$i][0])."-".strval($matches[2][$i][0]); //    ,     rsort($ar); $text = $ar[0]; } else $text= "$errstr ($errno)"; //  ,     $font = imageloadfont('fonts/terminal6.gdf'); $fontWidth = imagefontwidth($font); $fontHeight = imagefontheight($font); $im = imagecreate(strlen($text) * $fontWidth, $fontHeight); $bgColor = imagecolorallocate($im, 255, 255, 255); $fgColor = imagecolorallocate($im, 0, 0, 255); imagestring($im, $font, 0, 0, $text, $fgColor); header('Content-Type: image/png'); imagepng($im); imagedestroy($im); ?>
      
      







.htaccess

AddHandler application/x-httpd-php .png









ufa.png:

 <? $host="192.168.2.250"; require_once "index.php"; ?>
      
      







krasnodar.png:

 <? $host="192.168.93.250"; require_once "index.php"; ?>
      
      







および地域のその他の.pngファイル



自分用に、別のファイル(別のサーバーに保存できます)を作成しました。このファイルには、写真にHTMLを挿入し、ライセンスの有効期限とライセンス数を追加しました。 とてもきれいに見えます。



All Articles