Guest User

Untitled

a guest
Jan 20th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [[ $1 == "" ]]; then
  4. echo "Search for vanity keys - Usage : ./vanity.sh STRING"
  5. exit 1
  6. fi
  7.  
  8. echo "Finding keys containing : $@"
  9.  
  10. flag = true
  11. while true; do
  12. output=$(cleos create key --to-console)
  13. pub=$(cut -d ' ' -f 5 <<< "${output//[$'\r\n']}")
  14.  
  15. for i in $@
  16. do
  17. if [[ $pub =~ .*$i.* ]]; then
  18. echo $output
  19. break 2
  20. fi
  21. done
  22. done
Add Comment
Please, Sign In to add comment