improsec / calderaToAttire

7 stars 3 forks source link

Fall back to unencoded commands as this is the newer default for Caldera #5

Closed ajpc500 closed 3 months ago

ajpc500 commented 3 months ago

Based on this commit, Caldera no longer base64 encodes command output by default.

This fix catches a failed base64 decode and just uses the raw command value. This could be replaced entirely if backwards compatibility isn't a concern.

improg00n commented 3 months ago

Thank you for the commit. I went with giving up on backwards compatibility as i figured it might break some new stuff depending on if regular commands could also be base64 decoded. Thus, for people using this for older versions, they will have to base64 decode themselves.

Best Regards