Rose debug info
---------------

Ключ для avreg на 100 каналов

<?php 
  
exec(«ifconfig -a >eth.out»); 
  
$str1=’’; 
$str2=«HWaddr»; 
  
$ff=fopen(«eth.out»,’r’); 
$str1=fgets($ff); 
fclose($ff); 
  
$mac=substr(str_replace(’ ’,’’,str_replace($str2,’’,strstr($str1,$str2))),0,17); 
$mac=$mac . ’-64:64:64:64’; 
$salt=’$1$e4_Z3G-x

 
; 
$key2 = crypt($mac,$salt); 
  
$key2=str_replace($salt,’’,$key2); 
  
$ff=fopen(«avreg-v5»,’w’); 
fputs($ff,«key_ver5_part1=».$mac.«\n»); 
fputs($ff,«key_ver5_part2=».$key2.«\n»); 
  
fclose($ff); 
?>

 

Поделиться
Отправить
 202   2021   avreg   linux   ubuntu