1 |
diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/createlinks smeserver-clamav-unofficial-sigs-0.1.0/createlinks |
diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/createlinks smeserver-clamav-unofficial-sigs-0.1.0/createlinks |
2 |
--- smeserver-clamav-unofficial-sigs-0.1.0.old/createlinks 2015-06-10 03:32:04.000000000 -0400 |
--- smeserver-clamav-unofficial-sigs-0.1.0.old/createlinks 2015-06-10 03:32:04.000000000 -0400 |
3 |
+++ smeserver-clamav-unofficial-sigs-0.1.0/createlinks 2022-06-13 22:22:14.397000000 -0400 |
+++ smeserver-clamav-unofficial-sigs-0.1.0/createlinks 2022-06-13 23:44:03.640000000 -0400 |
4 |
@@ -2,4 +2,15 @@ |
@@ -2,4 +2,15 @@ |
5 |
|
|
6 |
use esmith::Build::CreateLinks qw(:all); |
use esmith::Build::CreateLinks qw(:all); |
16 |
+event_link("systemd-reload", $event, "89"); |
+event_link("systemd-reload", $event, "89"); |
17 |
+event_link("clamav-unofficial-sigs-folders", $event, "55"); |
+event_link("clamav-unofficial-sigs-folders", $event, "55"); |
18 |
+#use esmith::Build::Backup qw(:all); |
+#use esmith::Build::Backup qw(:all); |
19 |
+#backup_includes("clamav-unofficial-sigs", qw(/etc/clamav-unofficial-sigs/master.conf /etc/clamav-unofficial-sigs/user.conf /var/lib/clamav-unofficial-sigs/)); |
+backup_includes("clamav-unofficial-sigs", qw(/etc/clamav-unofficial-sigs/master.conf /etc/clamav-unofficial-sigs/user.conf /var/lib/clamav-unofficial-sigs/)); |
20 |
+ |
+ |
21 |
diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb |
diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb |
22 |
--- smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb 2015-06-10 03:32:04.000000000 -0400 |
--- smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb 2015-06-10 03:32:04.000000000 -0400 |
339 |
+ |
+ |
340 |
diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases |
diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases |
341 |
--- smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases 1969-12-31 19:00:00.000000000 -0500 |
--- smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases 1969-12-31 19:00:00.000000000 -0500 |
342 |
+++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases 2022-06-13 22:05:17.066000000 -0400 |
+++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases 2022-06-13 23:27:29.208000000 -0400 |
343 |
@@ -0,0 +1,47 @@ |
@@ -0,0 +1,104 @@ |
344 |
|
+{ |
345 |
|
+ |
346 |
|
+my %db = $DB->get('clamav-unofficial-sigs')->props; |
347 |
|
+ |
348 |
|
+my @ss = (); |
349 |
|
+my @si = (); |
350 |
|
+my @mbl = (); |
351 |
|
+ |
352 |
|
+if ((${'clamav-unofficial-sigs'}{'status'} || 'disabled') eq 'enabled'){ |
353 |
|
+ while (my ($param,$value) = each(%db)){ |
354 |
|
+ if ($value eq 'ss'){ |
355 |
|
+ push @ss, $param; |
356 |
|
+ } |
357 |
|
+ elsif ($value eq 'si'){ |
358 |
|
+ push @si, $param; |
359 |
|
+ } |
360 |
|
+ elsif ($value eq 'mbl'){ |
361 |
|
+ push @mbl, $param; |
362 |
|
+ } |
363 |
|
+ } |
364 |
|
+# $OUT .= "ss_dbs=\"\n " . join("\n ", @ss) . "\n\"\n" if (scalar @ss > 0); |
365 |
|
+# $OUT .= "si_dbs=\"\n " . join("\n ", @si) . "\n\"\n" if (scalar @si > 0); |
366 |
|
+# $OUT .= "mbl_dbs=\"\n " . join("\n ", @mbl) . "\n\"\n" if (scalar @mbl > 0); |
367 |
|
+} |
368 |
|
+$OUT ="\n"; |
369 |
|
+} |
370 |
+# securiteinfo |
+# securiteinfo |
371 |
+securiteinfo_premium={((${'clamav-unofficial-sigs'}{'securiteinfo_premium'}|| "no" ) eq '"yes"' )? "yes" : '"no"' } |
+securiteinfo_premium={((${'clamav-unofficial-sigs'}{'securiteinfo_premium'}|| "no" ) eq '"yes"' )? "yes" : '"no"' } |
372 |
+securiteinfo_authorisation_signature={my $key=${'clamav-unofficial-sigs'}{'securiteinfo_authorisation_signature'}|| 'YOUR-SIGNATURE-NUMBER'; $OUT="\"$key\""; } |
+securiteinfo_authorisation_signature={my $key=${'clamav-unofficial-sigs'}{'securiteinfo_authorisation_signature'}|| 'YOUR-SIGNATURE-NUMBER'; $OUT="\"$key\""; } |
398 |
+# Yara-Rule Project, automatically disabled if clamav is older than 0.100 and enable_yararules is disabled |
+# Yara-Rule Project, automatically disabled if clamav is older than 0.100 and enable_yararules is disabled |
399 |
+yararulesproject_enabled={((${'clamav-unofficial-sigs'}{'yararulesproject_enabled'} || "yes") eq "yes") ? "\"yes\"" : "\"no\"";} |
+yararulesproject_enabled={((${'clamav-unofficial-sigs'}{'yararulesproject_enabled'} || "yes") eq "yes") ? "\"yes\"" : "\"no\"";} |
400 |
+ |
+ |
401 |
|
+#Enables yararules in the various databases, automatically |
402 |
|
+enable_yararules={((${'clamav-unofficial-sigs'}{'enable_yararules'} || "no") eq "yes") ? "\"yes\"" : "\"no\"";} |
403 |
|
+ |
404 |
|
+ |
405 |
|
+# valid rating: LOW, MEDIUM, HIGH, DISABLE |
406 |
|
+{ |
407 |
|
+my $defaultDBR = (( ${'clamav-unofficial-sigs'}{'default_dbs_rating'} || "NOP") ~~ ['LOW', 'MEDIUM', 'HIGH', 'DISABLE']) ? ${'clamav-unofficial-sigs'}{'default_dbs_rating'} : 'MEDIUM' ; |
408 |
|
+ |
409 |
|
+$OUT .= "default_dbs_rating=\"$defaultDBR\"\n"; |
410 |
|
+ |
411 |
|
+$OUT .= "# Per Database |
412 |
|
+# These ratings will override the global rating for the specific database |
413 |
|
+# valid ratings: LOW | MEDIUM | HIGH | DISABLE\n"; |
414 |
|
+ |
415 |
|
+my $lmd = (( ${'clamav-unofficial-sigs'}{'linuxmalwaredetect_dbs_rating'} || "NOP") ~~ ['LOW', 'MEDIUM', 'HIGH', 'DISABLE']) ? ${'clamav-unofficial-sigs'}{'linuxmalwaredetect_dbs_rating'} : 'NOP' ; |
416 |
|
+$OUT .= "linuxmalwaredetect_dbs_rating=\"$lmd\"\n" unless $lmd eq 'NOP'; |
417 |
|
+my $ss = (( ${'clamav-unofficial-sigs'}{'sanesecurity_dbs_rating'} || "NOP") ~~ ['LOW', 'MEDIUM', 'HIGH', 'DISABLE']) ? ${'clamav-unofficial-sigs'}{'sanesecurity_dbs_rating'} : 'NOP' ; |
418 |
|
+$OUT .= "sanesecurity_dbs_rating=\"$ss\"\n" unless $ss eq 'NOP'; |
419 |
|
+my $si = (( ${'clamav-unofficial-sigs'}{'securiteinfo_dbs_rating'} || "NOP") ~~ ['LOW', 'MEDIUM', 'HIGH', 'DISABLE']) ? ${'clamav-unofficial-sigs'}{'securiteinfo_dbs_rating'} : 'NOP' ; |
420 |
|
+$OUT .= "securiteinfo_dbs_rating=\"$si\"\n" unless $si eq 'NOP'; |
421 |
|
+my $uhd = (( ${'clamav-unofficial-sigs'}{'urlhaus_dbs_rating'} || "NOP") ~~ ['LOW', 'MEDIUM', 'HIGH', 'DISABLE']) ? ${'clamav-unofficial-sigs'}{'urlhaus_dbs_rating'} : 'NOP' ; |
422 |
|
+$OUT .= "urlhaus_dbs_rating=\"$uhd\"\n" unless $uhd eq 'NOP'; |
423 |
|
+my $yrp = (( ${'clamav-unofficial-sigs'}{'yararulesproject_dbs_rating'} || "NOP") ~~ ['LOW', 'MEDIUM', 'HIGH', 'DISABLE']) ? ${'clamav-unofficial-sigs'}{'yararulesproject_dbs_rating'} : 'NOP' ; |
424 |
|
+$OUT .= "yararulesproject_dbs_rating=\"$yrp\"\n" unless $yrp eq 'NOP'; |
425 |
|
+ |
426 |
|
+} |
427 |
|
+ |
428 |
|
+# ======================== |
429 |
|
+# Additional Databases |
430 |
|
+# ======================== |
431 |
+{ |
+{ |
432 |
+return "# additional disabled\n" unless ((${'clamav-unofficial-sigs'}{'additional_enabled'} || "yes") eq "yes"); |
+return "# additional disabled\n" unless ((${'clamav-unofficial-sigs'}{'additional_enabled'} || "yes") eq "yes"); |
433 |
+ |
+ |
442 |
+$OUT .= ") #END ADDITIONAL DATABASES |
+$OUT .= ") #END ADDITIONAL DATABASES |
443 |
+"; |
+"; |
444 |
+ |
+ |
445 |
|
+#TODO |
446 |
+ |
+ |
447 |
+} |
+} |
448 |
diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/045Frequencies smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/045Frequencies |
diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/045Frequencies smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/045Frequencies |