Skip to content
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

Add Base64 Format for Log Output #236

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

phra
Copy link

@phra phra commented Oct 30, 2019

Enables /base64:on option to log command, eg:

log mimi /base64:on
coffee
exit

With this option enabled, the log file will be in UTF16LE+BASE64 format.

The written file will be:

VQBzAGkAbgBnACAAJwBtAGkAbQBpACcAIABmAG8AcgAgAGwAbwBnAGYAaQBsAGUAIAA6ACAATwBLAAoACgBtAGkAbQBpAGsAYQB0AHoAIAAjACAAYwBvAGYAZgBlAGUACgAKACAAIAAgACAAKAAgACgACgAgACAAIAAgACAAKQAgACkACgAgACAALgBfAF8AXwBfAF8AXwAuAAoAIAAgAHwAIAAgACAAIAAgACAAfABdAAoAIAAgAFwAIAAgACAAIAAgACAALwAKACAAIAAgAGAALQAtAC0ALQAnAAoACgBtAGkAbQBpAGsAYQB0AHoAIAAjACAAZQB4AGkAdAAKAEIAeQBlACEACgA=

that can be easily converted back as shown in the following cyberchef:

https://gchq.github.io/CyberChef/#recipe=From_Base64('A-Za-z0-9%2B/%3D',true)Decode_text('UTF-16LE%20(1200)')&input=VlFCekFHa0FiZ0JuQUNBQUp3QnRBR2tBYlFCcEFDY0FJQUJtQUc4QWNnQWdBR3dBYndCbkFHWUFhUUJzQUdVQUlBQTZBQ0FBVHdCTEFBb0FDZ0J0QUdrQWJRQnBBR3NBWVFCMEFIb0FJQUFqQUNBQVl3QnZBR1lBWmdCbEFHVUFDZ0FLQUNBQUlBQWdBQ0FBS0FBZ0FDZ0FDZ0FnQUNBQUlBQWdBQ0FBS1FBZ0FDa0FDZ0FnQUNBQUxnQmZBRjhBWHdCZkFGOEFYd0F1QUFvQUlBQWdBSHdBSUFBZ0FDQUFJQUFnQUNBQWZBQmRBQW9BSUFBZ0FGd0FJQUFnQUNBQUlBQWdBQ0FBTHdBS0FDQUFJQUFnQUdBQUxRQXRBQzBBTFFBbkFBb0FDZ0J0QUdrQWJRQnBBR3NBWVFCMEFIb0FJQUFqQUNBQVpRQjRBR2tBZEFBS0FFSUFlUUJsQUNFQUNnQT0

will fix #235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add base64 log output
1 participant