Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # cat make_account.sh
- #!/bin/sh
- # Similar to build-key, but protect the private key
- # with a password.
- export KEY_EXPIRE="365"
- export EASY_RSA="${EASY_RSA:-.}"
- "$EASY_RSA/pkitool" --pass $*
- # cat script.exp|grep -v \#
- if {$force_conservative} {
- set send_slow {1 .1}
- proc send {ignore arg} {
- sleep .1
- exp_send -s -- $arg
- }
- }
- set username [lrange $argv 0 0]
- set password [lrange $argv 1 1]
- stty echo
- set timeout -1
- spawn ./make_account.sh $username
- match_max 100000
- expect "*rase*"
- send -- "$password\r"
- expect "*rase*"
- send -- "$password\r"
- expect eof
- #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement