• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP exec_fruitywifi函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中exec_fruitywifi函数的典型用法代码示例。如果您正苦于以下问题:PHP exec_fruitywifi函数的具体用法?PHP exec_fruitywifi怎么用?PHP exec_fruitywifi使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了exec_fruitywifi函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: copyLogsHistory

function copyLogsHistory()
{
    global $bin_cp;
    global $bin_mv;
    global $mod_logs;
    global $mod_logs_history;
    global $bin_echo;
    if (0 < filesize($mod_logs)) {
        $exec = "{$bin_cp} {$mod_logs} {$mod_logs_history}/" . gmdate("Ymd-H-i-s") . ".log";
        exec_fruitywifi($exec);
        $exec = "{$bin_echo} '' > {$mod_logs}";
        //exec_fruitywifi($exec);
    }
}
开发者ID:xtr4nge,项目名称:module_wifirecon,代码行数:14,代码来源:module_action.php


示例2: stop_iface

function stop_iface($iface, $ip, $gw)
{
    $bin_danger = "/usr/share/fruitywifi/bin/danger";
    // START MONITOR MODE (mon0)
    $iface_mon0 = exec("/sbin/ifconfig |grep 'wlan0mon|mon0'");
    //if ($iface_mon0 != "") {
    $exec = "/usr/bin/sudo /sbin/ifconfig {$iface} 0.0.0.0";
    //exec("$bin_danger \"" . $exec . "\"", $output); //DEPRECATED
    exec_fruitywifi($exec);
    //}
}
开发者ID:c0mix,项目名称:FruityWifi,代码行数:11,代码来源:functions.php


示例3: exec_fruitywifi

        $exec = "/bin/sed -i 's/opt_responder\\[\\\"".$tmp[$i]."\\\"\\]\\[0\\].*/opt_responder\\[\\\"".$tmp[$i]."\\\"\\]\\[0\\] = 0;/g' options_config.php";
        //exec("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"", $output); //DEPRECATED
        $output = exec_fruitywifi($exec);
        
        $exec = "/bin/sed -i 's/^".$tmp[$i].".*/".$tmp[$i]." = Off/g' Responder-master/Responder.conf";
        //exec("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"", $output); //DEPRECATED
        $output = exec_fruitywifi($exec);
        
    }

    $tmp = $_POST["options"];
    for ($i=0; $i< count($tmp); $i++) {
        
        $exec = "/bin/sed -i 's/opt_responder\\[\\\"".$tmp[$i]."\\\"\\]\\[0\\].*/opt_responder\\[\\\"".$tmp[$i]."\\\"\\]\\[0\\] = 1;/g' options_config.php";
        //exec("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"", $output); //DEPRECATED
        exec_fruitywifi($exec);
        
        $exec = "/bin/sed -i 's/^".$tmp[$i].".*/".$tmp[$i]." = On/g' Responder-master/Responder.conf";
        //exec("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"", $output); //DEPRECATED
        exec_fruitywifi($exec);
        
    }

    header('Location: ../index.php?tab=1');
    exit;

}

header('Location: ../index.php');

?>
开发者ID:AnguisCaptor,项目名称:module_autostart,代码行数:31,代码来源:save.php


示例4: exec_fruitywifi

    $exec = "{$bin_rm} " . $mod_logs_history . $logfile . ".log";
    exec_fruitywifi($exec);
}
// SET MODE
if ($_POST["change_iface"] == "1") {
    $mod_iface = $ss_iface;
    $exec = "/bin/sed -i 's/mod_iface.*/mod_iface = \\\"" . $mod_iface . "\\\";/g' _info_.php";
    $output = exec_fruitywifi($exec);
}
if ($_POST["change_macaddress"] == "1") {
    $ss_mode = $service;
    $exec = "/bin/sed -i 's/ss_macaddress.*/ss_macaddress = \\\"" . $macaddress . "\\\";/g' _info_.php";
    $output = exec_fruitywifi($exec);
    $ss_macaddress = $macaddress;
    $exec = "/bin/sed -i 's/ss_time.*/ss_time = \\\"" . $check_time . "\\\";/g' _info_.php";
    $output = exec_fruitywifi($exec);
    $ss_time = $check_time;
}
?>

<div class="rounded-top" align="left"> &nbsp; <b><?php 
echo $mod_alias;
?>
</b> </div>
<div class="rounded-bottom">

    &nbsp; version <?php 
echo $mod_version;
?>
<br>
    <?php 
开发者ID:xtr4nge,项目名称:module_openvpn,代码行数:31,代码来源:index.php


示例5: cleanTAP

function cleanTAP()
{
    global $tap1_iface;
    global $tap2_iface;
    global $bin_ifconfig;
    global $tap2_set;
    // CLEAN
    $exec = "/etc/init.d/dhcpcd stop";
    exec_fruitywifi($exec);
    killRegex("dhcpcd.+{$tap2_iface}");
    $exec = "{$bin_ifconfig} {$tap1_iface} down";
    exec_fruitywifi($exec);
    $exec = "{$bin_ifconfig} {$tap1_iface} 0.0.0.0";
    exec_fruitywifi($exec);
    if ($tap2_set != "3") {
        // TAP2 SET: CURRENT
        $exec = "{$bin_ifconfig} {$tap2_iface} down";
        exec_fruitywifi($exec);
        $exec = "{$bin_ifconfig} {$tap2_iface} 0.0.0.0";
        exec_fruitywifi($exec);
    }
}
开发者ID:xtr4nge,项目名称:module_tapper,代码行数:22,代码来源:module_action.php


示例6: killRegex

function killRegex($regex)
{
    $exec = "ps aux|grep -E '{$regex}' | grep -v grep | awk '{print \$2}'";
    exec($exec, $output);
    if (count($output) > 0) {
        $exec = "kill " . $output[0];
        exec_fruitywifi($exec);
    }
}
开发者ID:Floppynator,项目名称:FruityWifi,代码行数:9,代码来源:status_wireless.php


示例7: checkPool

function checkPool()
{
    $filename = '/usr/share/fruitywifi/conf/pool-station.conf';
    if (!file_exists($filename)) {
        $exec = "touch {$filename}";
        exec_fruitywifi($exec);
    }
    $filename = '/usr/share/fruitywifi/conf/pool-ssid.conf';
    if (!file_exists($filename)) {
        $exec = "touch {$filename}";
        exec_fruitywifi($exec);
    }
    $filename = '/usr/share/fruitywifi/conf/ssid.conf';
    if (!file_exists($filename)) {
        $exec = "touch {$filename}";
        exec_fruitywifi($exec);
    }
}
开发者ID:xtr4nge,项目名称:module_ap,代码行数:18,代码来源:module_action.php


示例8: copyLogsHistory

function copyLogsHistory() {
	
	global $bin_cp;
	global $bin_mv;
	global $mod_logs;
	global $mod_logs_history;
	global $bin_echo;
	
	if ( 0 < filesize( $mod_logs ) ) {
		$exec = "$bin_cp $mod_logs $mod_logs_history/".gmdate("Ymd-H-i-s").".log";
		exec_fruitywifi($exec);
		
		$exec = "$bin_echo '' > $mod_logs";
		exec_fruitywifi($exec);
	}
}
开发者ID:vaginessa,项目名称:module_ap,代码行数:16,代码来源:module_action.php


示例9: setConfigModule

 public function setConfigModule($module, $param, $value)
 {
     //include_once "functions.php";
     $exec = "/bin/sed -i 's/{$param}=.*/{$param}=\\\"" . $value . "\\\";/g' /usr/share/fruitywifi/www/modules/{$module}/_info_.php";
     exec_fruitywifi($exec);
     echo json_encode($value);
 }
开发者ID:xtr4nge,项目名称:module_api,代码行数:7,代码来源:ws.php


示例10: getScanStation

 public function getScanStation()
 {
     include "functions.php";
     include "../../../config/config.php";
     $data = open_file("/usr/share/fruitywifi/logs/dhcp.leases");
     $out = explode("\n", $data);
     $leases = [];
     for ($i = 0; $i < count($out); $i++) {
         $temp = explode(" ", $out[$i]);
         $leases[$temp[1]] = array($temp[2], $temp[3]);
     }
     unset($out);
     unset($data);
     $exec = "iw dev {$io_in_iface} station dump | sed -e 's/^\\t/|/g' | tr '\\n' ' ' | sed -e 's/Sta/\\nSta/g' | tr '\\t' ' '";
     $out = exec_fruitywifi($exec);
     $output = [];
     for ($i = 0; $i < count($out); $i++) {
         $station = [];
         $temp = explode("|", $out[$i]);
         if ($temp[0] != "") {
             foreach ($temp as &$value) {
                 unset($sub);
                 if (strpos($value, 'Station ') !== false) {
                     $value = str_replace("Station ", "", $value);
                     $value = explode(" ", $value);
                     $mac = $value[0];
                     $value = "station: " . $value[0];
                     $key_mac = $value[0];
                 }
                 $sub = explode(": ", $value);
                 //$station[] = $sub;
                 //$station[] = array($sub[0] => $sub[1]);
                 $station[$sub[0]] = $sub[1];
             }
             if (array_key_exists($mac, $leases)) {
                 //$station[] = array("ip" => $leases[$mac][0]);
                 //$station[] = array("hostname" => $leases[$mac][1]);
                 $station["ip"] = $leases[$mac][0];
                 $station["hostname"] = $leases[$mac][1];
             } else {
                 //$station[] = array("ip" => "");
                 //$station[] = array("hostname" => "");
                 $station["ip"] = "";
                 $station["hostname"] = "";
             }
             //$output[] = $station;
             $output[] = $station;
         }
     }
     echo json_encode($output);
 }
开发者ID:xtr4nge,项目名称:module_ap,代码行数:51,代码来源:ws.php


示例11: fopen

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/ 
?>
<?php 
include "../_info_.php";
$type = $_POST['type'];
$newdata = $_POST['newdata'];
if ($type == "logs") {
    $filename = $mod_logs;
    $fh = fopen($filename, "r");
    //or die("Could not open file.");
    $data = fread($fh, filesize($filename));
    //or die("Could not read file.");
    fclose($fh);
    $dump = explode("\n", $data);
    //$dump = implode("\n",array_reverse($data_array));
    echo json_encode(array_reverse($dump));
}
if ($type == "inject") {
    if ($newdata != "") {
        $newdata = ereg_replace(13, "", $newdata);
        $exec = "/bin/echo '{$newdata}' > /usr/share/fruitywifi/www/modules/sslstrip/includes/inject.txt";
        //exec("/usr/share/fruitywifi/bin/danger \"" . $exec . "\"", $output); //DEPRECATED
        $output = exec_fruitywifi($exec);
    }
    $exec = "cat /usr/share/fruitywifi/www/modules/sslstrip/includes/inject.txt";
    //exec("/usr/share/fruitywifi/bin/danger \"" . $exec . "\"", $dump); //DEPRECATED
    $dump = exec_fruitywifi($exec);
    echo json_encode($dump);
}
开发者ID:vaginessa,项目名称:module_meterpreter,代码行数:31,代码来源:ajax.php



注:本文中的exec_fruitywifi函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP exec_header_redirect函数代码示例发布时间:2022-05-15
下一篇:
PHP exec_filter函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap