Пример #1
0
<?
include "../../config/config.php";
include "_info_.php";
include "../../login_check.php";
include "../../functions.php";

include "includes/options_config.php";

// Checking POST & GET variables...
if ($regex == 1) {
    regex_standard($_POST["newdata"], "msg.php", $regex_extra);
    regex_standard($_GET["logfile"], "msg.php", $regex_extra);
    regex_standard($_GET["action"], "msg.php", $regex_extra);
    regex_standard($_GET["tempname"], "msg.php", $regex_extra);
    regex_standard($_POST["proxy"], "msg.php", $regex_extra);
}

$newdata = $_POST['newdata'];
$logfile = $_GET["logfile"];
$action = $_GET["action"];
$tempname = $_GET["tempname"];
$proxy = $_POST["proxy"];

// DELETE LOG
if ($logfile != "" and $action == "delete") {
    $exec = "$bin_rm ".$mod_logs_history.$logfile.".log";
    exec_fruitywifi($exec);
}

// SET MODE
Пример #2
0
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/ 
?>
<?
//include "../login_check.php";
include "../../../config/config.php";
include "../_info_.php";
include "../../../functions.php";

// Checking POST & GET variables...
if ($regex == 1) {
    regex_standard($_GET["service"], "../msg.php", $regex_extra);
    regex_standard($_GET["file"], "../msg.php", $regex_extra);
    regex_standard($_GET["action"], "../msg.php", $regex_extra);
    regex_standard($_GET["page"], "../msg.php", $regex_extra);
    regex_standard($io_action, "../msg.php", $regex_extra);
}

$service = $_GET['service'];
$action = $_GET['action'];
$page = $_GET['page'];
$install = $_GET['install'];

if($service == "dnsspoof") {
    if ($action == "start") {
        // COPY LOG
        $exec = "$bin_cp $mod_logs $mod_logs_history/".gmdate("Ymd-H-i-s").".log";
        //exec("$bin_danger \"$exec\"", $dump); //DEPRECATED
	exec_fruitywifi($exec);
	
        $exec = "$bin_echo '' > $mod_logs";
Пример #3
0
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
?>
<!DOCTYPE html>
<?php 
include "../functions.php";
// Checking POST & GET variables...
if ($regex == 1) {
    regex_standard($_GET["module"], "../msg.php", $regex_extra);
}
$module = $_GET['module'];
?>
<m-eta http-equiv="refresh" content="1; url=install.php?module=<?php 
echo $module;
?>
">
<script src="js/jquery.js"></script>
<script src="js/jquery-ui.js"></script>
<link rel="stylesheet" href="css/jquery-ui.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="../style.css" />

<div class="rounded-top" align="left"> &nbsp; <b>Installing...</b> </div>
<div id="log" class="module-content" style="font-family: courier; overflow: auto; height:500px;"></div>
Пример #4
0
    //},5000);
}

</script>

<br>

<div style="b-order:1px dotted; w-idth: 410px; display:inline-block; vertical-align: top;">

<?
include "functions.php";

// Checking POST & GET variables...
if ($regex == 1) {
    regex_standard($_GET['service'], "msg.php", $regex_extra);
    regex_standard($_GET['action'], "msg.php", $regex_extra);
}
$service = $_GET['service'];
$action = $_GET['action'];

?>

<?

function addDivs($service, $alias, $edit, $path, $mod_logs_panel)
{
    if ($mod_logs_panel == "disabled") {
        $visibility = "visibility:hidden;";
    } else {
        $visibility = "";
    }
Пример #5
0
<br>

<?php 
include "../../login_check.php";
include "../../config/config.php";
include "_info_.php";
include "../../functions.php";
// Checking POST & GET variables...
if ($regex == 1) {
    regex_standard($_POST["newdata"], "msg.php", $regex_extra);
    regex_standard($_GET["logfile"], "msg.php", $regex_extra);
    regex_standard($_GET["action"], "msg.php", $regex_extra);
    regex_standard($_POST["service"], "msg.php", $regex_extra);
    regex_standard($_POST["macaddress"], "msg.php", $regex_extra);
    regex_standard($_POST["ss_iface"], "msg.php", $regex_extra);
}
$newdata = $_POST['newdata'];
$logfile = $_GET["logfile"];
$action = $_GET["action"];
$tempname = $_GET["tempname"];
$service = $_POST["service"];
$macaddress = $_POST["macaddress"];
$check_time = $_POST["check_time"];
$ss_iface = $_POST["ss_iface"];
// DELETE LOG
if ($logfile != "" and $action == "delete") {
    $exec = "{$bin_rm} " . $mod_logs_history . $logfile . ".log";
    exec_fruitywifi($exec);
}
// SET MODE
Пример #6
0
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
//include "../_info_.php";
include "../config/config.php";
include "../functions.php";
//$bin_danger = "/usr/share/fruitywifi/bin/danger"; //DEPRECATED
// Checking POST & GET variables...
if ($regex == 1) {
    regex_standard($_POST['type'], "../msg.php", $regex_extra);
    regex_standard($_POST['action'], "../msg.php", $regex_extra);
    regex_standard($_POST['mod_name'], "../msg.php", $regex_extra);
}
$type = $_POST['type'];
$action = $_POST['action'];
$newdata = html_entity_decode(trim($_POST["newdata"]));
$newdata = base64_encode($newdata);
$mod_name = $_POST['mod_name'];
// ngrep options
if ($type == "save_show" and $mod_name != "") {
    if ($action != "checked") {
        $exec = "/bin/sed -i 's/^\\\$mod_panel=.*/\\\$mod_panel=\\\"show\\\";/g' {$mod_name}/_info_.php";
        //exec("$bin_danger \"" . $exec . "\"", $output); //DEPRECATED
        exec_fruitywifi($exec);
    } else {
        $exec = "/bin/sed -i 's/^\\\$mod_panel=.*/\\\$mod_panel=\\\"\\\";/g' {$mod_name}/_info_.php";
        //exec("$bin_danger \"" . $exec . "\"", $output); //DEPRECATED
Пример #7
0
	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
include "../../../config/config.php";
include "../_info_.php";
include "../../../login_check.php";
include "../../../functions.php";
include "options_config.php";
// Checking POST & GET variables...
if ($regex == 1) {
    regex_standard($_POST['type'], "../../../msg.php", $regex_extra);
}
$type = $_POST['type'];
$io_in_iface = $_POST['io_in_iface'];
$io_in_ip = $_POST['io_in_ip'];
$hostapd_ssid = $_POST['hostapd_ssid'];
$hostapd_wpa_passphrase = $_POST['hostapd_wpa_passphrase'];
$hostapd_secure = $_POST['hostapd_secure'];
$io_mode = $_POST["io_mode"];
$ap_mode = $_POST["ap_mode"];
$io_in_iface = $_POST["io_in_iface"];
$io_in_set = $_POST["io_in_set"];
$io_in_ip = $_POST["io_in_ip"];
$io_in_mask = $_POST["io_in_mask"];
$io_in_gw = $_POST["io_in_gw"];
$io_out_iface = $_POST["io_out_iface"];
Пример #8
0
    regex_standard($_POST["iface"], "msg.php", $regex_extra);
    regex_standard($_POST["io_out_iface"], "msg.php", $regex_extra);
    regex_standard($_POST["io_in_iface"], "msg.php", $regex_extra);
    regex_standard($_POST["iface_supplicant"], "msg.php", $regex_extra);
    regex_standard($_POST["newSSID"], "msg.php", $regex_extra);
    regex_standard($_POST["hostapd_secure"], "msg.php", $regex_extra);
    regex_standard($_POST["hostapd_wpa_passphrase"], "msg.php", $regex_extra);
    regex_standard($_POST["supplicant_ssid"], "msg.php", $regex_extra);
    regex_standard($_POST["supplicant_psk"], "msg.php", $regex_extra);
    regex_standard($_POST["pass_old"], "msg.php", $regex_extra);
    regex_standard($_POST["pass_new"], "msg.php", $regex_extra);
    regex_standard($_POST["pass_new_repeat"], "msg.php", $regex_extra);
    regex_standard($_GET["service"], "msg.php", $regex_extra);
    regex_standard($_GET["action"], "msg.php", $regex_extra);
    //regex_standard($_POST["in_out_mode"], "msg.php", $regex_extra);
    regex_standard($_POST["api_token"], "msg.php", $regex_extra);
}
$filename = $_POST['filename'];
$newdata = $_POST['newdata'];
/*
if ($newdata != "") { $newdata = ereg_replace(13,  "", $newdata);
    $fw = fopen($filename, 'w') or die('Could not open file.');
    $fb = fwrite($fw,stripslashes($newdata)) or die('Could not write to file');
    fclose($fw);
    $fileMessage = $strings["config-updated"]." " . $filename . "<br /><br />";
} 
*/
?>


<?php 
Пример #9
0
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
// nmcli dev wifi connect 'iPhone' password 'test.123456' name nmcli_raspberry_wifi // CREATE
// nmcli -n d disconnect iface wlan0 // DISCONNECT
// nmcli --nocheck d |grep -iEe 'wlan0.+disconnected' // CHECK connection
include "../login_check.php";
include "../config/config.php";
include "../functions.php";
// Checking POST & GET variables...
if ($regex == 1) {
    regex_standard($_GET["service"], "../msg.php", $regex_extra);
    regex_standard($_GET["file"], "../msg.php", $regex_extra);
    regex_standard($_GET["action"], "../msg.php", $regex_extra);
    regex_standard($iface_supplicant, "../msg.php", $regex_extra);
    regex_standard($supplicant_ssid, "../msg.php", $regex_extra);
    regex_standard($supplicant_psk, "../msg.php", $regex_extra);
}
$service = $_GET['service'];
$action = $_GET['action'];
$page = $_GET['page'];
if ($service == "supplicant") {
    if ($action == "start") {
        $exec = "/usr/bin/killall dhclient";
        exec("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"");
        $exec = "/usr/bin/killall wpa_supplicant";
        exec("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"");
        $exec = "/sbin/ifconfig {$iface_supplicant} down";
        exec("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"");
        #$exec = "/usr/bin/macchanger -A $iface_supplicant";
        #system("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"" );
        $exec = "/sbin/ifconfig {$iface_supplicant} up";
Пример #10
0
<?
include "../../../config/config.php";
include "../_info_.php";
include "../../../login_check.php";
include "../../../functions.php";

include "options_config.php";

// Checking POST & GET variables...
if ($regex == 1) {
    regex_standard($_GET["service"], "../msg.php", $regex_extra);
    regex_standard($_GET["file"], "../msg.php", $regex_extra);
    regex_standard($_GET["action"], "../msg.php", $regex_extra);
    regex_standard($_GET["install"], "../msg.php", $regex_extra);
	regex_standard($_GET["plugin"], "../msg.php", $regex_extra);
	regex_standard($_POST["upload"], "../msg.php", $regex_extra);
}

$service = $_GET['service'];
$action = $_GET['action'];
$page = $_GET['page'];
$install = $_GET['install'];
$plugin = $_GET['plugin'];
$upload = $_POST['upload'];

if($service != "") {
    if ($action == "start") {
        // COPY LOG
		$exec = "$bin_mv $mod_logs $mod_logs_history/".gmdate("Ymd-H-i-s").".log";
		exec_fruitywifi($exec);
        
Пример #11
0
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
include "../login_check.php";
include "../config/config.php";
include "../functions.php";
// Checking POST & GET variables...
if ($regex == 1) {
    regex_standard($_GET["service"], "../msg.php", $regex_extra);
    regex_standard($_GET["action"], "../msg.php", $regex_extra);
    regex_standard($iface_wifi, "../msg.php", $regex_extra);
    regex_standard($iface_internet, "../msg.php", $regex_extra);
}
#echo $iface_internet;
#echo $iface_wifi;
$service = $_GET['service'];
$action = $_GET['action'];
$bin_danger = "/usr/share/FruityWifi/bin/danger";
$bin_killall = "/usr/bin/killall";
#sed -i 's/interface=.*/interface=wlan0/g' /usr/share/FruityWifi/conf/dnsmasq.conf
if ($service == "wireless") {
    if ($action == "start") {
        //$internet_interface="eth0";
        //$ap_interface="wlan0";
        //Verifies if karma-hostapd is installed
        /*
        if (file_exists("/usr/sbin/karma-hostapd")) {
Пример #12
0
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
include "../../../login_check.php";
include "../../../config/config.php";
include "../_info_.php";
include "../../../functions.php";
// Checking POST & GET variables...
if ($regex == 1) {
    regex_standard($_GET["service"], "../msg.php", $regex_extra);
    regex_standard($_GET["action"], "../msg.php", $regex_extra);
    regex_standard($_GET["page"], "../msg.php", $regex_extra);
    regex_standard($_GET["install"], "../msg.php", $regex_extra);
    regex_standard($_GET["worker"], "../msg.php", $regex_extra);
}
$service = $_GET['service'];
$action = $_GET['action'];
$page = $_GET['page'];
$install = $_GET['install'];
$worker = $_GET['worker'];
function setHostapdOption($option, $value, $hostapd_config_file)
{
    global $bin_sed;
    $is_present = exec("grep -iEe '^#{$option}=' {$hostapd_config_file}");
    if ($is_present != "") {
        $exec = "{$bin_sed} -i 's/#{$option}=.*/{$option}={$value}/g' {$hostapd_config_file}";
        exec_fruitywifi($exec);
    } else {
        $is_present = exec("grep -iEe '^{$option}=' {$hostapd_config_file}");
Пример #13
0
	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
include "../../../config/config.php";
include "../_info_.php";
include "../../../login_check.php";
include "../../../functions.php";
include "options_config.php";
// Checking POST & GET variables...
if ($regex == 1) {
    regex_standard($_POST['type'], "../../../msg.php", $regex_extra);
    regex_standard($_POST['bluepand_mac'], "../../../msg.php", $regex_extra);
    regex_standard($_POST['bluepand_keypass'], "../../../msg.php", $regex_extra);
}
$type = $_POST['type'];
$bluepand_mac = $_POST["bluepand_mac"];
$bluepand_keypass = $_POST["bluepand_keypass"];
if ($type == "settings") {
    $exec = "/bin/sed -i 's/bluepand_mac.*/bluepand_mac = \\\"" . $bluepand_mac . "\\\";/g' options_config.php";
    $output = exec_fruitywifi($exec);
    $exec = "/bin/sed -i 's/bluepand_keypass.*/bluepand_keypass = \\\"" . $bluepand_keypass . "\\\";/g' options_config.php";
    $output = exec_fruitywifi($exec);
    header('Location: ../index.php?tab=0');
    exit;
}
header('Location: ../index.php');
Пример #14
0
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
include "../../../login_check.php";
include "../../../config/config.php";
include "../_info_.php";
include "../../../functions.php";
// Checking POST & GET variables...
if ($regex == 1) {
    regex_standard($_GET["service"], "../msg.php", $regex_extra);
    regex_standard($_GET["action"], "../msg.php", $regex_extra);
    regex_standard($_GET["page"], "../msg.php", $regex_extra);
    regex_standard($_GET["install"], "../msg.php", $regex_extra);
}
$service = $_GET['service'];
$action = $_GET['action'];
$page = $_GET['page'];
$install = $_GET['install'];
if ($service != "") {
    if ($action == "start") {
        // COPY LOG
        if (0 < filesize($mod_logs)) {
            $exec = "{$bin_cp} {$mod_logs} {$mod_logs_history}/" . gmdate("Ymd-H-i-s") . ".log";
            //exec("$bin_danger \"$exec\"" ); //DEPRECATED
            exec_fruitywifi($exec);
            $exec = "{$bin_echo} '' > {$mod_logs}";
            //exec("$bin_danger \"$exec\"" ); //DEPRECATED
            exec_fruitywifi($exec);
Пример #15
0
include "../menu.php";
?>

<br>

<?php 
include "../../login_check.php";
include "../../config/config.php";
include "_info_.php";
include "../../functions.php";
// Checking POST & GET variables...
if ($regex == 1) {
    regex_standard($_POST["newdata"], "msg.php", $regex_extra);
    regex_standard($_GET["logfile"], "msg.php", $regex_extra);
    regex_standard($_GET["action"], "msg.php", $regex_extra);
    regex_standard($_POST["service"], "msg.php", $regex_extra);
}
$newdata = $_POST['newdata'];
$logfile = $_GET["logfile"];
$action = $_GET["action"];
$tempname = $_GET["tempname"];
$service = $_POST["service"];
// DELETE LOG
if ($logfile != "" and $action == "delete") {
    $exec = "{$bin_rm} " . $mod_logs_history . $logfile . ".log";
    //exec("$bin_danger \"$exec\"", $dump); //DEPRECATED
    exec_fruitywifi($exec);
}
?>

<div class="rounded-top" align="left"> &nbsp; <b><?php 
Пример #16
0
<?php

include "../config/config.php";
include "../functions.php";
// Checking POST & GET variables...
if ($regex == 1) {
    regex_standard($_GET["page"], "../msg.php", $regex_extra);
    regex_standard($_GET["wait"], "../msg.php", $regex_extra);
}
$page = $_GET["page"];
$wait = $_GET["wait"];
if ($page == "") {
    $page = "../msg.php";
}
if ($wait == "") {
    $wait = 1;
}
?>
<html>
<head>
    <meta http-equiv="refresh" c-ontent="<?php 
echo $wait;
?>
; url=./<?php 
echo $page;
?>
/">
</head>
<body bgcolor="black" text="white">

<style>
Пример #17
0
<?
include "../../../login_check.php";
include "../../../config/config.php";
include "../_info_.php";
include "../../../functions.php";

include "options_config.php";

// Checking POST & GET variables...
if ($regex == 1) {
	regex_standard($_POST['type'], "../../../msg.php", $regex_extra);
	regex_standard($_POST['action'], "../../../msg.php", $regex_extra);
	regex_standard($_GET['mod_action'], "../../../msg.php", $regex_extra);
	regex_standard($_GET['mod_service'], "../../../msg.php", $regex_extra);
	regex_standard($_GET['meterpreter_host'], "../../../msg.php", $regex_extra);
	regex_standard($_GET['meterpreter_port'], "../../../msg.php", $regex_extra);
}

$type = $_POST['type'];
$action = $_POST['action'];
$mod_action = $_GET['mod_action'];
$mod_service = $_GET['mod_service'];
$meterpreter_host = $_POST["meterpreter_host"];
$meterpreter_port = $_POST["meterpreter_port"];

// meterpreter settings
if ($type == "settings") {

    $exec = "/bin/sed -i 's/^\\\$meterpreter_host.*/\\\$meterpreter_host = \\\"".$meterpreter_host."\\\";/g' ../_info_.php";
    //exec("$bin_danger \"" . $exec . "\"", $output); //DEPRECATED
    $output = exec_fruitywifi($exec);
Пример #18
0
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
include "../login_check.php";
include "../config/config.php";
include "../functions.php";
// Checking POST & GET variables [regex]...
if ($regex == 1) {
    regex_standard($_POST["iface"], "../msg.php", $regex_extra);
    regex_standard($_POST["iface_internet"], "../msg.php", $regex_extra);
    regex_standard($_POST["iface_wifi"], "../msg.php", $regex_extra);
    regex_standard($_POST["iface_wifi_extra"], "../msg.php", $regex_extra);
    regex_standard($_POST["wifi_supplicant"], "../msg.php", $regex_extra);
}
if (isset($_POST["iface"]) and $_POST["iface"] == "internet") {
    $exec = "/bin/sed -i 's/iface_internet=.*/iface_internet=\\\"" . $_POST["iface_internet"] . "\\\";/g' ../config/config.php";
    exec("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"");
}
if (isset($_POST["iface"]) and $_POST["iface"] == "wifi") {
    $exec = "/bin/sed -i 's/iface_wifi=.*/iface_wifi=\\\"" . $_POST["iface_wifi"] . "\\\";/g' ../config/config.php";
    exec("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"");
    // replace interface in hostapd.conf and hostapd-secure.conf
    $exec = "/bin/sed -i 's/^interface=.*/interface=" . $_POST["iface_wifi"] . "/g' /usr/share/FruityWifi/conf/hostapd.conf";
    exec("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"");
    $exec = "/bin/sed -i 's/^interface=.*/interface=" . $_POST["iface_wifi"] . "/g' /usr/share/FruityWifi/conf/hostapd-secure.conf";
    exec("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"");
    $exec = "/bin/sed -i 's/interface=.*/interface=" . $_POST["iface_wifi"] . "/g' /usr/share/FruityWifi/conf/dnsmasq.conf";
    exec("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"");
Пример #19
0
    Copyright (C) 2013-2016 xtr4nge [_AT_] gmail.com

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
include "../../../login_check.php";
include "../../../config/config.php";
include "../_info_.php";
include "../../../functions.php";
// Checking POST & GET variables...
if ($regex == 1) {
    regex_standard($_POST['ap_ht_capab'], "../../../msg.php", $regex_extra);
}
$ap_ht_capab = $_POST['ap_ht_capab'];
if ($ap_ht_capab != "") {
    $exec = "{$bin_sed} -i 's/ap_ht_capab=.*/ap_ht_capab=\\\"" . $ap_ht_capab . "\\\";/g' ../_info_.php";
    exec_fruitywifi($exec);
    header("Location: ../index.php?tab=4");
    exit;
}
header('Location: ../index.php');
Пример #20
0
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
include "../login_check.php";
include "../config/config.php";
include "../functions.php";
// Checking POST & GET variables...
if ($regex == 1) {
    regex_standard($_GET["file"], "../msg.php", $regex_extra);
    regex_standard($_GET["action"], "../msg.php", $regex_extra);
    regex_standard($_GET["page"], "../msg.php", $regex_extra);
    regex_standard($iface_wifi, "../msg.php", $regex_extra);
}
$service = $_GET['service'];
$action = $_GET['action'];
$page = $_GET['page'];
if ($service == "dnsspoof") {
    if ($action == "start") {
        // COPY LOG
        $exec = "cp ../logs/dnsspoof.log ../modules/dnsspoof/includes/logs/" . gmdate("Ymd-H-i-s") . ".log";
        exec("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"", $dump);
        $exec = "echo '' > ../logs/dnsspoof.log";
        exec("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"");
        $exec = "/usr/sbin/dnsspoof -i {$iface_wifi} -f /usr/share/FruityWifi/conf/spoofhost.conf > /dev/null 2> /usr/share/FruityWifi/logs/dnsspoof.log &";
        exec("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"");
    } else {
        if ($action == "stop") {
Пример #21
0
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
include "../../../functions.php";
$regex_extra = $regex_extra . "/";
// Checking POST & GET variables [regex]...
if ($regex == 1) {
    regex_standard($_POST["api"], "../../../msg.php", $regex_extra);
    regex_standard($_GET["api"], "../../../msg.php", $regex_extra);
    regex_standard($_POST["token"], "../../../msg.php", $regex_extra);
    regex_standard($_GET["token"], "../../../msg.php", $regex_extra);
}
if (isset($_GET["token"])) {
    $token = $_GET["token"];
} else {
    include "../../../login_check.php";
    include "../../../config/config.php";
    $token = $api_token;
}
require "ws.php";
$ws = new WebServiceExtendedPlus($token);
$ws->login();
$api = $_GET["api"];
$api = explode("/", $api);
// SCAN RECON
if (sizeof($api) == 3 and $api[1] == "scan" and $api[2] == "recon") {
Пример #22
0
*/
?>
<meta http-equiv="refresh" content="5">
<?php 
include "../login_check.php";
include "../config/config.php";
include "../functions.php";
$mod_path = "/usr/share/FruityWifi/www/modules/sslstrip/";
if (file_exists("{$mod_path}/_info_.php")) {
    include "{$mod_path}/_info_.php";
}
// Checking POST & GET variables...
if ($regex == 1) {
    regex_standard($_GET["service"], "../msg.php", $regex_extra);
    regex_standard($_GET["file"], "../msg.php", $regex_extra);
    regex_standard($_GET["action"], "../msg.php", $regex_extra);
}
$service = $_GET['service'];
$action = $_GET['action'];
$page = $_GET['page'];
if ($service == "sslstrip") {
    if ($action == "start") {
        // COPY LOG
        $exec = "cp ../logs/sslstrip.log ../modules/sslstrip/includes/logs/sslstrip-" . gmdate("Ymd-H-i-s") . ".log";
        exec("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"");
        $exec = "/sbin/iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 10000";
        exec("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"");
        //$exec = "/usr/bin/sslstrip -a -s -l 10000 -w ../logs/sslstrip.log > /dev/null 2 &";
        if ($mod_sslstrip_inject == "1" and $mod_sslstrip_tamperer == "0") {
            $exec = "/usr/bin/FruityWifi-sslstrip -a -s -l 10000 -w ../logs/sslstrip.log -i {$mod_path}/includes/inject.txt > /dev/null 2 &";
        } else {
Пример #23
0
<? include "../menu.php"; ?>

<br>

<?
include "../../config/config.php";
include "_info_.php";
include "../../login_check.php";
include "../../functions.php";

// Checking POST & GET variables...
if ($regex == 1) {
    regex_standard($_POST["newdata"], "msg.php", $regex_extra);
    regex_standard($_GET["logfile"], "msg.php", $regex_extra);
    regex_standard($_GET["action"], "msg.php", $regex_extra);
    regex_standard($_GET["tempname"], "msg.php", $regex_extra);
}

$newdata = $_POST['newdata'];
$logfile = $_GET["logfile"];
$action = $_GET["action"];
$tempname = $_GET["tempname"];

// DELETE LOG
if ($logfile != "" and $action == "delete") {
    $exec = "$bin_rm ".$mod_logs_history.$logfile.".log";
    exec_fruitywifi($exec);
}

?>
Пример #24
0
?>
<?
include "../login_check.php";
include "../config/config.php";
include "../functions.php";

//$bin_danger = "/usr/share/fruitywifi/bin/danger"; //DEPRECATED

// Checking POST & GET variables [regex]...
if ($regex == 1) {
    regex_standard($_POST["iface"], "../msg.php", $regex_extra);
    regex_standard($_POST["io_out_iface"], "../msg.php", $regex_extra);
    regex_standard($_POST["io_in_iface"], "../msg.php", $regex_extra);
    regex_standard($_POST["io_in_iface_extra"], "../msg.php", $regex_extra);
    regex_standard($_POST["wifi_supplicant"], "../msg.php", $regex_extra);
    regex_standard($_POST["ap_mode"], "../msg.php", $regex_extra);
}


// ------------ IN | OUT (START) -------------
if(isset($_POST["io_mode"])){
    $exec = "/bin/sed -i 's/io_mode=.*/io_mode=\\\"".$_POST["io_mode"]."\\\";/g' ../config/config.php";
    //exec("$bin_danger \"" . $exec . "\"" ); //DEPRECATED
    exec_fruitywifi($exec);
}

if(isset($_POST["ap_mode"])){
    $exec = "/bin/sed -i 's/ap_mode=.*/ap_mode=\\\"".$_POST["ap_mode"]."\\\";/g' ../config/config.php";
    //exec("$bin_danger \"" . $exec . "\"" ); //DEPRECATED
    exec_fruitywifi($exec);
    
Пример #25
0
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
include "../login_check.php";
include "../config/config.php";
include "../functions.php";
// Checking POST & GET variables...
if ($regex == 1) {
    regex_standard($_GET["service"], "../msg.php", $regex_extra);
    regex_standard($_GET["action"], "../msg.php", $regex_extra);
    regex_standard($io_in_iface, "../msg.php", $regex_extra);
    regex_standard($io_out_iface, "../msg.php", $regex_extra);
}
#echo $io_out_iface;
#echo $io_in_iface;
$service = $_GET['service'];
$action = $_GET['action'];
$bin_danger = "/usr/share/fruitywifi/bin/danger";
$bin_killall = "/usr/bin/killall";
$bin_ifconfig = "/sbin/ifconfig";
$bin_iptables = "/sbin/iptables";
$bin_dnsmasq = "/usr/sbin/dnsmasq";
$bin_sed = "/bin/sed";
$bin_echo = "/bin/echo";
$bin_rm = "/bin/rm";
function flushIptables()
{
Пример #26
0
//include "../login_check.php";
include "../../../config/config.php";
include "../_info_.php";
include "../../../functions.php";

include "options_config.php";

// Checking POST & GET variables...
if ($regex == 1) {
	regex_standard($_POST['type'], "../../../msg.php", $regex_extra);
	regex_standard($_POST['tempname'], "../../../msg.php", $regex_extra);
	regex_standard($_POST['action'], "../../../msg.php", $regex_extra);
	regex_standard($_GET['mod_action'], "../../../msg.php", $regex_extra);
	regex_standard($_GET['mod_service'], "../../../msg.php", $regex_extra);
	regex_standard($_POST['new_rename'], "../../../msg.php", $regex_extra);
	regex_standard($_POST['new_rename_file'], "../../../msg.php", $regex_extra);
}

$type = $_POST['type'];
$tempname = $_POST['tempname'];
$action = $_POST['action'];
$mod_action = $_GET['mod_action'];
$mod_service = $_GET['mod_service'];
$newdata = html_entity_decode(trim($_POST["newdata"]));
$newdata = base64_encode($newdata);
$new_rename = $_POST["new_rename"];
$new_rename_file = $_POST["new_rename_file"];

// ngrep options
if ($type == "opt_responder") {
Пример #27
0
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
include "../login_check.php";
include "../config/config.php";
include "../functions.php";
// Checking POST & GET variables...
if ($regex == 1) {
    regex_standard($_POST["service"], "../msg.php", $regex_extra);
    regex_standard($_POST["action"], "../msg.php", $regex_extra);
    regex_standard($_POST["page"], "../msg.php", $regex_extra);
}
$service = $_POST["service"];
$service = str_replace("mod_", "", $service);
$action = $_POST["action"];
$page = $_POST["page"];
/*
function execCurl($url) {
    $post_data = 'user=admin&pass=admin';
    $post_data = "";
    $agent = "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100105 Shiretoko/3.5.7";
    //$login_url = "$protocol://localhost$web_path/login.php";
    $login_url = "$protocol://localhost:8000/login.php";
    
    $ch = curl_init();