Skip to content
Snippets Groups Projects
Commit 7cbbbc6e authored by root's avatar root
Browse files

oprava, je dobre tam mit i ten type aby bylo videt jakej bordel to vlastne je

(navic tam pak leze osklive null ve zmensovanem vypisu)
parent 19a260eb
No related branches found
No related tags found
No related merge requests found
...@@ -4,14 +4,15 @@ include("db.php"); ...@@ -4,14 +4,15 @@ include("db.php");
$q = "SELECT $q = "SELECT
hostname, hostname,
service, service,
type,
MAX(received) as last_received, MAX(received) as last_received,
COUNT(*) as count COUNT(*) as count
FROM events FROM events
WHERE WHERE
detected > '2012-08-01' and detected > '2012-08-01' and
type NOT IN ('portscan', 'bruteforce', 'probe', 'spam','phishing', 'botnet_c_c', 'dos', 'malware', 'copyright','webattack', 'test', 'other') type NOT IN ('portscan', 'bruteforce', 'probe', 'spam','phishing', 'botnet_c_c', 'dos', 'malware', 'copyright','webattack', 'test', 'other')
GROUP BY hostname, service;"; GROUP BY hostname, service, type;";
$res = mysql_query($q, $db); $res = mysql_query($q, $db);
if (mysql_num_rows($res) == 0) { die("nodata");} if (mysql_num_rows($res) == 0) { die("nodata");}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment