Pandora FMS Community

Help with local agent modules :: Access Denied :: getreg

mjohnson · 31 ago 2014, 6:39 · 3 mensajes · 53 visitas

  1. Inicio del debate

    Please help, new user here - and so far so good - but I've hit a wall configuring the local windows agent. I have some modules that need to read from the registry but they do not display in the console. Using debug, I was able to figure out that something was happening during execution [EvtOpenPublisherMetadata error: 2], which lead me begin troubleshooting by attempting to execute the application getreg from cmd but this failed. The application executes but is unable to access registry data (returning access is denied), even when run as an administrator. I am able to query the registry from cmd.exe using reg query without issue. Here's some example: module_begin module_name SEP :: Malware Detected module_group System Security module_type generic_data_string module_exec getreg LM "SOFTWARESymantecSymantec Endpoint ProtectionCurrentVersionpublic-opstate" Infected module_description Has Malware been detected on this system module_timeout 10000 module_end Note: this topic was first discussed on the Pandora FMS group on LinkedIn, where Sancho has been so kind to lend advice. https://www.linkedin.com/groups/Help-local-agent-modules-Access-2720642.S.5911263799918227460?view=&gid=2720642&item=5911263799918227460&type=member&commentID=discussion%3A5911263799918227460%3Agroup%3A2720642&trk=hb\_ntf\_COMMENTED\_ON\_GROUP\_DISCUSSION\_YOU\_CREATED#commentID\_discussion%3A5911263799918227460%3Agroup%3A2720642

  2. hi, running the service as an administrator and try the command by hand to see that result gives. a greeting

  3. Thanks for your reply smartin. Yeah, I have already tried that but, running the agent service as local admin, did not correct the issue, nor did running it from cmd.exe. I was, however, able to create a number of batch files containing the query in the form of: reg query ... as demonstrated below. It seems that Access is Denied when querying the registry and event logs using the provided utilities ??? It would be nice if I was able to use the provided utils instead of having to create batch files but it is a workaround because it appears that I'll need to use script calls to wevutil in order to parse event logs. @ECHO OFF REM Query the registry to determine Symantec Endpoint Protection AV is running for /f "tokens=3" %%a in ('reg query "HKEY_LOCAL_MACHINESOFTWARESymantecSymantec Endpoint ProtectionCurrentVersionpublic-opstate" /v "ASRunningStatus" /reg:64 ^| find /i "ASRunningStatus"') do set /a status=%%a + 0 @echo %status% /* AND */ @ECHO OFF REM Query the registry to determine installed version of Symantec Endpoint Protection for /f "tokens=3" %%a in ('reg query "HKEY_LOCAL_MACHINESOFTWARESymantecSymantec Endpoint ProtectionCurrentVersionpublic-opstate" /v "DeployRunningVersion" /reg:64') do set version=%%a @echo %version%

Entra en tu cuenta para publicar.