diff --git a/DWall/api/module.php b/DWall/api/module.php index 4403c41..271f69f 100644 --- a/DWall/api/module.php +++ b/DWall/api/module.php @@ -33,13 +33,13 @@ class DWall extends Module private function disable() { 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); } 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); } else { $this->response = array("running" => false); diff --git a/DWall/assets/http_sniffer b/DWall/assets/http_sniffer index 579b6a8..42a3cc2 100755 Binary files a/DWall/assets/http_sniffer and b/DWall/assets/http_sniffer differ diff --git a/DWall/module.info b/DWall/module.info index 66c83d4..3c929de 100644 --- a/DWall/module.info +++ b/DWall/module.info @@ -6,5 +6,5 @@ "tetra" ], "title": "DWall", - "version": "1.2" + "version": "1.3" } \ No newline at end of file