/dev/null 2>&1 &"); mwexec("/usr/local/bin/nmap -oX /usr/local/www/packages/strikeback/reports/".$_GET[target].".xml -vv -sS -sU -sY -O ".$_GET[target]); echo " \n"; } if (count($_POST)>0) { conf_mount_rw(); $ent = array(); if ($_POST['enable'] == 1) { //echo "enabled"; $config['installedpackages']['strikeback_settings']['config'][0]['enable'] = 1; mwexec("/usr/bin/sed -i -e 's/iplog_enable=\"NO\"/iplog_enable=\"YES\"/g' /usr/local/etc/rc.d/iplog"); mwexec("rm /usr/local/etc/rc.d/iplog-e"); mwexec("/usr/local/etc/rc.d/iplog start"); mwexec("touch /usr/local/www/packages/strikeback/ENABLED"); } else { //echo "disabled"; $config['installedpackages']['strikeback_settings']['config'][0]['enable'] = 0; mwexec("/usr/bin/sed -i -e 's/iplog_enable=\"YES\"/iplog_enable=\"NO\"/g' /usr/local/etc/rc.d/iplog"); mwexec("rm /usr/local/etc/rc.d/iplog-e"); mwexec("/usr/local/etc/rc.d/iplog stop"); mwexec("rm /usr/local/www/packages/strikeback/ENABLED"); } //write_config(); //services_dnsmasq_configure(); sleep(1); $savemsg_cb = "strikeback settings have been saved/updated. "; conf_mount_ro(); } ?>