CSanchezAustin
-
Posts
2 -
Joined
-
Last visited
Posts posted by CSanchezAustin
-
-
I am trying to implement a choke point in an OpenVPN post_auth plugin. My criterial will be whether or not a client machine has any flags (see attachment). If they do I will deny access.
This will be a python plugin for OpenVPN and it needs to access APIs (REST is preferred). How can this be accomplished?
ESET CLI C++ API for Linux
in ESET PROTECT On-prem (Remote Management)
Posted
in case anyone is interested, I translated the example Windows cli wrapper for the ESET API to Linux.
Compile and runs as follows. Note: All 3 shared libraries need to be in the same directory as the executable that get created. Limitation on how ESET created their shared libraries.
g++ -c -g -o esetapi_cli.o esetapi_cli.cpp && g++ esetapi_cli.o -L/usr/local/lib -ldl -o esetapi
Source: esetapi_cli.cpp
Example messages:
{"Era.ServerApi.StartRequest":{}} {"Era.ServerApi.CreateConnectionRequest":{"host":"192.168.2.10","port":2223}} {"Era.ServerApi.VerifyUserResponse":{"VerifyResult":true}} {"Era.Common.NetworkMessage.ConsoleApi.SessionManagement.RpcAuthLoginRequest" : {"username":"CHANGEME", "password":"CHANGEME", "isDomainUser":false, "locale":"en-US"}} {"Era.ServerApi.IsConnectionAliveRequest":{}} {"Era.Common.NetworkMessage.ConsoleApi.Dashboards.RpcGetDashboardsRequest":{}} # Get information about the root group (All) {"Era.Common.NetworkMessage.ConsoleApi.Groups.RpcGetStaticGroupRequest": {"groupUuid": {"uuid": "00000000-0000-0000-7001-000000000001"}}} {"Era.ServerApi.CloseConnectionRequest":{}} {"Era.ServerApi.StopRequest":{}}