Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. ```bash
  2. #!/bin/bash
  3.  
  4. function __base64 {
  5. if [ "$1x" == "x" ]; then
  6. return
  7. fi
  8.  
  9. phpCommand="echo base64_encode(file_get_contents('$1'));"
  10. php -r "$phpCommand" | pbcopy
  11. }
  12.  
  13. __base64 $@
  14. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement