Created
March 16, 2018 10:38
-
-
Save KINGSABRI/cf45e054d91ff8821acd99561c42c9d2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env crystal | |
# | |
# Author: KING SABRI | @KINGSABRI | |
# Description: Base64 encoding all characters in a given payload | |
# Requirements: None | |
# | |
require "json" | |
require "base64" | |
json = JSON.parse(ARGV[0]) | |
payload = json["payload"] | |
kwargs = json["kwargs"] | |
json["payload"] = Base64.encode(payload) | |
print json.to_json | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment