DWall: Update binary and fix Start/Stop functionality.

This commit resolves #73.
pull/76/head
Foxtrot 2019-09-03 17:05:20 +01:00
parent e676793328
commit b45e52ccf1
3 changed files with 3 additions and 3 deletions

View File

@ -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);

Binary file not shown.

View File

@ -6,5 +6,5 @@
"tetra"
],
"title": "DWall",
"version": "1.2"
"version": "1.3"
}