Enumeration System [PHP] Rahman Surya Praja Selasa, 26 April 2011 No Comment

Program Enumeration System menggunakan bahasa pemrograman PHP,

[Server Info]
Operating system info (uname), Server software,
Current owner of this file,File owner's user ID,File owner's group ID,
Current available disk space (GB),Current directory 
,User Agent





<?php
echo "<font color=\"red\">";
echo "<civ align='left'><b>ENUMERATION YOUR SYSTEM</b></div><br>";
echo "<font color=\"green\"><h3>Server Info</h3></font>";
echo "<b>Operating system info (uname)</b> - " . php_uname() . "<br>";
echo "<b>Server software</b> - " . $_SERVER['SERVER_SOFTWARE'] . "<br>";
echo "<b>Current owner of this file</b> - " . get_current_user() . "<br>";
echo "<b>File owner's user ID</b> - " . getmyuid() . "<br>";
echo "<b>File owner's group ID</b> - " . getmygid() . "<br>";

echo "<b>Current available disk space (GB)</b> - ";
if (preg_match("/Win/", php_uname())) {
 echo (disk_free_space("C:") / 1024000000) . " out of " . (disk_total_space("C:") / 1024000000) . "<br>";
} else {
 echo (disk_free_space("/") / 1024000000) . " out of " . (disk_total_space("/") / 1024000000) . "<br>";
}

echo "<b>Current directory</b> - " . getcwd() . "<br>";

echo "<font color=\"green\"><h3>Your Info</h3></font>";
echo "<b>IP Address</b> - " . $_SERVER['REMOTE_ADDR'] . "<br>";
echo "<b>Hostname</b> - " . gethostbyaddr($_SERVER['REMOTE_ADDR']) . "<br>";
echo "<b>User Agent</b> - " . $_SERVER['HTTP_USER_AGENT'] . "<br>";
?>
by Jillur Rahman

Jillur Rahman is a Web designers. He enjoys to make blogger templates. He always try to make modern and 3D looking Templates. You can by his templates from Themeforest.

Follow him @ Twitter | Facebook | Google Plus

No Comment

Terima Kasih Sudah berkunjung!! Di Mohon Untuk Meninggalkan Komen, untuk mempererat silaturahmi.... ^_^