Files
beef/include/check_install.inc.php
wade@bindshell.net 3b8add44e1 <? changed to <php and some minor changes
git-svn-id: https://beef.googlecode.com/svn/trunk@21 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
2010-04-07 11:22:37 +00:00

25 lines
649 B
PHP

<?php
// Copyright (c) 2006-2010, Wade Alcorn
// All Rights Reserved
// wade@bindshell.net - http://www.bindshell.net
require_once("filter.inc.php");
if(!file_exists('../include/config.inc.php')
&& !file_exists('../../include/config.inc.php')
&& !file_exists('../../../include/config.inc.php')) {
$install_url = "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
if(valid_url_without_query($install_url)) {
echo "<script>location.href = '" . $install_url . "..'</script>";
echo '<li><a href="..">Configure BeEF</a></li>';
} else {
echo 'Install and configure BeEF first';
}
exit(0);
}
?>