Constole icon indicating copy to clipboard operation
Constole copied to clipboard

Use consul to discover new targets

Open pierresouchay opened this issue 5 years ago • 2 comments

Instead of providing a list of targets, it would be possible to find other targets using Consul discovery to find all vulnerable targets ;)

pierresouchay avatar Apr 17 '20 21:04 pierresouchay

Yeah, I'd like that. What's the preferred way now? Shodan etc?

djhashh avatar Sep 12 '20 12:09 djhashh

  1. Call /v1/agent/members on the target => will give your the list of agents in the same cluster in a JSON, in this list, identify servers (the instances having Tag.role == 'consul'), you can now iterate on all agents of the current cluster
  2. On servers, call /v1/agent/members?wan server target to get the other cluster(s), then retry step 1 on new targets in other clusters :-)

pierresouchay avatar Sep 12 '20 13:09 pierresouchay