Conversation
|
Hey! This is an awesome request :) I have a couple of questions though -
In the case that the c2 profile blocks a message, do you think it'd be a good idea to record that somewhere so that if an operator needs to go back and troubleshoot why they're not getting callbacks, they can easily see what's been blocked. |
|
Hm, my initial idea was to just go for specific IPs. However, it should be strait forward to change it to blocks/networks using As for the blocked messages... Not sure. The Idea was not to spam the operator 😄 But it might be useful. Any suggestion where to log to? |
|
ah yeah, i'd suggest expanding it to allow CIDR notation checks just in case. I find that if people are using redirectors in front of the http profile, then they typically restrict the connections at the redirector level; but if there's no redirector, then you might not know the very specific IP you'll be getting your callback from, so client CIDR ranges would be necessary. Yeah, i get not wanting to spam the operator. That's why the new UI collapses those messages and just increases the count associated with them. I want to still inform the user in some way, even if we end up making it a flag in the config. |
|
Ok, so now there is the additional parameter Should there still be logging when the server is started? |
Wenn exposing this profile to the internet I always get scanned and thus get a lot of errors in mythic (as everything gets forwarded to mythic).
Errors like this:
This change allows you to whitelist requests based on IP and/or Path.
No filter:
{ "allowed_ips": [], "get_uri":"/<uri:path>", "post_uri":"/<uri:path>", }Filter on default Paths and the IP of googles DNS:
{ "allowed_ips": ["8.8.8.8"], "get_uri":"/index", "post_uri":"/data", }