mirror of
https://github.com/hak5/nano-tetra-modules.git
synced 2025-10-29 16:58:09 +00:00
Update Modules for 2.6.0+ (Wave 1) (#71)
* Misc: Ignore JetBrains IDE files * Modules: Update Modules for 2.6.0 (1) * SiteSurvey: Actually install mdk3 dependency. * Modules: Bump version numbers for updated modules
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
<?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 Responder extends Module
|
||||
{
|
||||
public function route()
|
||||
@@ -56,9 +53,9 @@ class Responder extends Module
|
||||
}
|
||||
}
|
||||
|
||||
protected function checkDependency($dependencyName)
|
||||
protected function checkDeps($dependencyName)
|
||||
{
|
||||
return ((exec("which {$dependencyName}") == '' ? false : true) && ($this->uciGet("responder.module.installed")));
|
||||
return ($this->checkDependency($dependencyName) && ($this->uciGet("responder.module.installed")));
|
||||
}
|
||||
|
||||
protected function checkRunning($processName)
|
||||
@@ -79,7 +76,7 @@ class Responder extends Module
|
||||
|
||||
private function handleDependencies()
|
||||
{
|
||||
if (!$this->checkDependency("python")) {
|
||||
if (!$this->checkDeps("python")) {
|
||||
$this->execBackground("/pineapple/modules/Responder/scripts/dependencies.sh install ".$this->request->destination);
|
||||
$this->response = array('success' => true);
|
||||
} else {
|
||||
@@ -131,7 +128,7 @@ class Responder extends Module
|
||||
private function refreshStatus()
|
||||
{
|
||||
if (!file_exists('/tmp/Responder.progress')) {
|
||||
if (!$this->checkDependency("python")) {
|
||||
if (!$this->checkDeps("python")) {
|
||||
$installed = false;
|
||||
$install = "Not installed";
|
||||
$installLabel = "danger";
|
||||
@@ -186,7 +183,7 @@ class Responder extends Module
|
||||
|
||||
private function refreshOutput()
|
||||
{
|
||||
if ($this->checkDependency("python")) {
|
||||
if ($this->checkDeps("python")) {
|
||||
if ($this->checkRunning("Responder.py")) {
|
||||
if (file_exists("/pineapple/modules/Responder/dep/responder/logs/Responder-Session.log")) {
|
||||
if ($this->request->filter != "") {
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
"tetra"
|
||||
],
|
||||
"title": "Responder",
|
||||
"version": "1.1"
|
||||
"version": "1.2"
|
||||
}
|
||||
@@ -1,9 +1,6 @@
|
||||
#!/bin/sh
|
||||
#2015 - Whistle Master
|
||||
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/sd/lib:/sd/usr/lib
|
||||
export PATH=$PATH:/sd/usr/bin:/sd/usr/sbin
|
||||
|
||||
MYTIME=`date +%s`
|
||||
MYINTERFACE=`uci get responder.autostart.interface`
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
#!/bin/sh
|
||||
#2015 - Whistle Master
|
||||
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/sd/lib:/sd/usr/lib
|
||||
export PATH=$PATH:/sd/usr/bin:/sd/usr/sbin
|
||||
|
||||
[[ -f /tmp/Responder.progress ]] && {
|
||||
exit 0
|
||||
}
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
#!/bin/sh
|
||||
#2015 - Whistle Master
|
||||
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/sd/lib:/sd/usr/lib
|
||||
export PATH=$PATH:/sd/usr/bin:/sd/usr/sbin
|
||||
|
||||
MYTIME=`date +%s`
|
||||
MYINTERFACE=`uci get responder.run.interface`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user