Merge branch 'ent-8521-wmic-incompatible-con-nueva-politica-de-seguridad-de-windows' into 'develop'

Ent 8521 wmic incompatible con nueva politica de seguridad de windows

See merge request artica/pandorafms!4812
This commit is contained in:
Daniel Rodriguez 2022-04-27 08:30:08 +00:00
commit 2be4e13a9c
8 changed files with 11 additions and 4 deletions

2
pandora_server/.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
*.exe filter=lfs diff=lfs merge=lfs -text
pandorawmic filter=lfs diff=lfs merge=lfs -text

View File

@ -1 +0,0 @@
../lib/PandoraFMS

Binary file not shown.

View File

@ -256,6 +256,10 @@ wmi_timeout 7
wmi_threads 1
# WMI client binary (wmic by default).
#wmi_client pandorawmic
# recon_threads. Each thread will scan a different scantask.
recon_threads 1

View File

@ -213,6 +213,10 @@ wmi_timeout 10
wmi_threads 2
# WMI client binary (wmic by default).
#wmi_client pandorawmic.exe
# recon_threads. Each thread will scan a different scantask.
recon_threads 2

View File

@ -53,7 +53,7 @@ sub new ($$;$) {
return undef unless $config->{'wmiserver'} == 1;
# Check for a WMI client
if (system ($config->{'wmi_client'} . " >$DEVNULL 2>&1") >> 8 != 1) {
if (system ($config->{'wmi_client'} . " >$DEVNULL 2>&1") >> 8 == 127) {
logger ($config, ' [E] ' . $config->{'wmi_client'} . " not found. " . $config->{'rb_product_name'} . " WMI Server needs a DCOM/WMI client.", 1);
print_message ($config, ' [E] ' . $config->{'wmi_client'} . " not found. " . $config->{'rb_product_name'} . " WMI Server needs a DCOM/WMI client.", 1);
return undef;

View File

@ -31,8 +31,6 @@ install () {
cp -R util /usr/share/pandora_server
echo "Rebuilding links /usr/local/bin -> /usr/bin"
#rm /usr/local/bin/pandora_server 2> /dev/null
#rm /usr/local/bin/pandora_exec 2> /dev/null
ln -s /usr/local/bin/pandora_server /usr/bin/pandora_server 2> /dev/null
ln -s /usr/local/bin/pandora_exec /usr/bin/pandora_exec 2> /dev/null