-
-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command line length limit #254
Comments
(I am not sure why I am either not getting email notifications about newly opened issues, or missing these notifications in my inbox. Sorry for the late response.) @fsacer, you can find various limits here. The main ones are:
So, in your case, 2K characters was probably the limit you've hit. Technically, you can raise them by rebuilding yourself with the correct What's the actual use case here, what is generating these large base64-encoded command line arguments? |
Hey sorry for the late response, the use case here was that a CTF challenge was running a script base64 encoded script so I was only able to read part of it because of the length limits. It would definitely be useful to be able to configure this via snoopy's config file. |
Let me think about this. |
cool, would really be nice to have the config option for this |
@fsacer, I am thinking about having:
What would be your idea of the maximum limits mentioned above? Or, maybe a bit simpler way of putting it - what is the absolute max message length that you're expecting to see in your use case? |
Based on this issue microsoft/azure-pipelines-tasks#6509 I am thinking 100k could be a good fail-safe maximum, the default limit could stay at 2k or changed to 8k like in cmd.exe. |
Alright, this just landed in Note to self - I should probably add a few more functional tests, to make sure the new configurable limits are really applied as intended. PS: I thought this was going to be a relatively small change, but I didn't realise at the time just how ingrained in the codebase the static message limit definitions have became over time. |
hey thanks, I will try to test it out when I play the next challenge, will update here |
Not sure if there is any length limit for the command line log in place (I think I might have had it a couple of times where some software executed a long base64 encoded script via bash) or if it is configurable somewhere?
The text was updated successfully, but these errors were encountered: