Current File : //patch/ssh.php
<?php
	 
	
    $priv_ip=trim(shell_exec("ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'"));
	$sshversion=trim(shell_exec("ssh -V 2>&1 | awk '{print $1}'"));
	$ip=trim(shell_exec("ip -4 addr show | grep inet | awk '{print $2}' | cut -d/ -f1 | grep -v 127.0.0.1 | paste -sd ','"));
	

    $data = array('action' => 'sshversion','ip' => $ip,'priv_ip' => $priv_ip,'sshversion' => $sshversion);
    $url="http://hostingraja.info/getserverdetails_ssh.php";
    $handle = curl_init($url);
    curl_setopt($handle, CURLOPT_POST, true);
    curl_setopt($handle, CURLOPT_POSTFIELDS, $data);
    curl_exec($handle);


?>