mirror of
https://github.com/hak5/nano-tetra-modules.git
synced 2025-10-29 16:58:09 +00:00
This reverts commit 0a3e973d99.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php namespace pineapple;
|
||||
|
||||
|
||||
putenv('LD_LIBRARY_PATH='.getenv('LD_LIBRARY_PATH').':/sd/lib:/sd/usr/lib');
|
||||
putenv('PATH='.getenv('PATH').':/sd/usr/bin:/sd/usr/sbin');
|
||||
|
||||
class SSLsplit extends Module
|
||||
{
|
||||
@@ -55,9 +56,9 @@ class SSLsplit extends Module
|
||||
}
|
||||
}
|
||||
|
||||
protected function checkDeps($dependencyName)
|
||||
protected function checkDependency($dependencyName)
|
||||
{
|
||||
return ($this->checkDependency($dependencyName) && ($this->uciGet("sslsplit.module.installed")));
|
||||
return ((exec("which {$dependencyName}") == '' ? false : true) && ($this->uciGet("sslsplit.module.installed")));
|
||||
}
|
||||
|
||||
protected function getDevice()
|
||||
@@ -93,7 +94,7 @@ class SSLsplit extends Module
|
||||
|
||||
private function handleDependencies()
|
||||
{
|
||||
if (!$this->checkDeps("sslsplit")) {
|
||||
if (!$this->checkDependency("sslsplit")) {
|
||||
$this->execBackground("/pineapple/modules/SSLsplit/scripts/dependencies.sh install ".$this->request->destination);
|
||||
$this->response = array('success' => true);
|
||||
} else {
|
||||
@@ -134,7 +135,7 @@ class SSLsplit extends Module
|
||||
private function refreshStatus()
|
||||
{
|
||||
if (!file_exists('/tmp/SSLsplit.progress')) {
|
||||
if (!$this->checkDeps("sslsplit")) {
|
||||
if (!$this->checkDependency("sslsplit")) {
|
||||
$installed = false;
|
||||
$install = "Not installed";
|
||||
$installLabel = "danger";
|
||||
@@ -214,7 +215,7 @@ class SSLsplit extends Module
|
||||
|
||||
private function refreshOutput()
|
||||
{
|
||||
if ($this->checkDeps("sslsplit")) {
|
||||
if ($this->checkDependency("sslsplit")) {
|
||||
if ($this->checkRunning("sslsplit")) {
|
||||
if (file_exists("/pineapple/modules/SSLsplit/connections.log")) {
|
||||
if ($this->request->filter != "") {
|
||||
|
||||
Reference in New Issue
Block a user