merlin icon indicating copy to clipboard operation
merlin copied to clipboard

Feature Request: REST API and Agent Status

Open dlmyb opened this issue 8 years ago • 4 comments

it seems that agent ID is similar to UUID.If agent program restarts and reconnects server, the agent will send another ID to the server which is different than before, and the server will store two agent id from the same agent. this situation always happens on some Windows PCs. Consider using some time-invariant ID, like agent macaddr?

dlmyb avatar Dec 30 '17 14:12 dlmyb

My concern is that there will be a collision if there are multiple instances of the agent running on a single host. A good example would be multiple users on the same terminal server. I'm also a fan of "two is one and one is none" methodology when dropping agents on a box during a pen test. Alternatively, we can hard code an agent ID at compile time if you think that would be useful? Does this information influence your concern?

Sent with GitHawk

Ne0nd0g avatar Dec 30 '17 17:12 Ne0nd0g

emmm…actually, could server automatically label some agents offline which do not response server ping requests? I am more concerned about managing agent table on the server easily, cause I think Merlin could be used on IOT devices.

dlmyb avatar Dec 31 '17 18:12 dlmyb

The server can't ping the agents. The agents initiate contact. The agent info command show you the last time an agent checked in though. However, I could mark an agent as stale if it hasn't checked in within the specified sleep interval? Merlin can 100% be run on IoT devices. I've run one on an ARM device.

Sent with GitHawk

Ne0nd0g avatar Jan 01 '18 03:01 Ne0nd0g

sounds nice. It would be better if Merlin server could provide things like Restful interfaces to obtain agent data and send commands.

dlmyb avatar Jan 01 '18 03:01 dlmyb

a gRPC interface was added in https://github.com/Ne0nd0g/merlin/commit/e80c47a7e441e39615d54368b871d004b3b698d3 to create similar functionality. Closing this issue.

Ne0nd0g avatar Nov 09 '23 13:11 Ne0nd0g