mirror of
https://github.com/hak5/nano-tetra-modules.git
synced 2025-10-29 16:58:09 +00:00
DWall: Update binary and fix Start/Stop functionality.
This commit resolves #73.
This commit is contained in:
@@ -33,13 +33,13 @@ class DWall extends Module
|
|||||||
private function disable()
|
private function disable()
|
||||||
{
|
{
|
||||||
exec("killall http_sniffer");
|
exec("killall http_sniffer");
|
||||||
exec("kill \$(ps | grep DWall | head -n1 | awk '{print $1}')");
|
exec("kill \$(ps -aux | grep DWall | head -n1 | awk '{print $2}')");
|
||||||
$this->response = array("success" => true);
|
$this->response = array("success" => true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getStatus()
|
private function getStatus()
|
||||||
{
|
{
|
||||||
if (trim(exec("ps -w | grep [D]Wall.py")) != "" && trim(exec("ps -w | grep [h]ttp_sniffer")) != "") {
|
if (trim(exec("ps -aux | grep [D]Wall.py")) != "" && trim(exec("ps -aux| grep [h]ttp_sniffer")) != "") {
|
||||||
$this->response = array("running" => true);
|
$this->response = array("running" => true);
|
||||||
} else {
|
} else {
|
||||||
$this->response = array("running" => false);
|
$this->response = array("running" => false);
|
||||||
|
|||||||
Binary file not shown.
@@ -6,5 +6,5 @@
|
|||||||
"tetra"
|
"tetra"
|
||||||
],
|
],
|
||||||
"title": "DWall",
|
"title": "DWall",
|
||||||
"version": "1.2"
|
"version": "1.3"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user