Guest User

Untitled

a guest
Mar 24th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #!/usr/bin/env crystal
  2. #
  3. # Author: KING SABRI | @KINGSABRI
  4. # Description: Base64 encoding all characters in a given payload
  5. # Requirements: None
  6. #
  7. require "json"
  8. require "base64"
  9.  
  10. json = JSON.parse(ARGV[0])
  11. payload = json["payload"]
  12. kwargs = json["kwargs"]
  13.  
  14. json["payload"] = Base64.encode(payload)
  15.  
  16. print json.to_json
Add Comment
Please, Sign In to add comment