%PDF-1.4
Directory : /var/www/vhosts/lautnusantara.com/httpdocs/web/public/ |
<?php echo "PHP_SELF = ".$_SERVER['PHP_SELF']; echo "<br>"; echo "SERVER_NAME = ".$_SERVER['SERVER_NAME']; echo "<br>"; echo "HTTP_HOST = ".$_SERVER['HTTP_HOST']; echo "<br>"; echo $_SERVER['HTTP_REFERER']; echo "<br>"; echo $_SERVER['HTTP_USER_AGENT']; echo "<br>"; echo $_SERVER['SCRIPT_NAME']; echo "<br>"; echo $_SERVER['GATEWAY_INTERFACE']; echo "<br>"; echo $_SERVER['SERVER_ADDR'] ; echo "<br>"; echo $_SERVER['SERVER_SOFTWARE'] ; echo "<br>"; echo $_SERVER['SERVER_PROTOCOL']; echo "<br>"; echo $_SERVER['REQUEST_METHOD']; echo "<br>"; echo $_SERVER['REQUEST_TIME'] ; echo "<br>"; echo $_SERVER['QUERY_STRING'] ; echo "<br>"; echo $_SERVER['HTTP_ACCEPT'] ; echo "<br>"; echo $_SERVER['HTTP_ACCEPT_CHARSET'] ; echo "<br>"; echo $_SERVER['HTTPS'] ; echo "<br>"; echo $_SERVER['REMOTE_ADDR'] ; echo "<br>"; echo $_SERVER['REMOTE_HOST'] ; echo "<br>"; echo $_SERVER['REMOTE_PORT'] ; echo "<br>"; echo $_SERVER['SCRIPT_FILENAME']; echo "<br>"; echo $_SERVER['SERVER_ADMIN'] ; echo "<br>"; echo $_SERVER['SERVER_PORT'] ; echo "<br>"; echo $_SERVER['SERVER_SIGNATURE'] ; echo "<br>"; echo $_SERVER['PATH_TRANSLATED'] ; echo "<br>"; echo $_SERVER['SCRIPT_URI']; echo "<br>"; echo "<br>"; echo "<br>"; echo "<br>"; ?> <?php $_IP_ADDRESS = $_SERVER['REMOTE_ADDR']; $_PERINTAH = "arp -a $_IP_ADDRESS"; ob_start(); system($_PERINTAH); $_HASIL = ob_get_contents(); ob_clean(); $_PECAH = strstr($_HASIL, $_IP_ADDRESS); $_PECAH_STRING = explode($_IP_ADDRESS, str_replace(" ", "", $_PECAH)); $_HASIL = substr($_PECAH_STRING[1], 0, 17); echo "IP Anda : ".$_IP_ADDRESS." MAC ADDRESS Anda : ".$_HASIL; ?> <br> <?php //Cara mudipconfig /allah dan sederhana mendapatkan mac address // Turn on output buffering //ob_start(); //mendapatkan detail ipconfing menggunakan CMD system('ipconfig /all'); // mendapatkan output kedalam variable $mycom=ob_get_contents(); // membersihkan output buffer // ob_clean(); $findme = "Physical"; // mencari perangkat fisik | menemukan posisi text perangkat fisik //Search the "Physical" | Find the position of Physical text $pmac = strpos($mycom, $findme); // mendapatkan alamat peragkat fisik $mac=substr($mycom,($pmac+36),17); //menampilkan Mac Address echo 'Mac add anda : '.$mycom; ?>